Package org.alfresco.repo.content
Interface ContentStoreCaps
public interface ContentStoreCaps
ContentStore capabilities. Allows us to avoid performing
instanceof
questions
which can become a problem when certain proxies or subsystems are in use.
See ACE-2682 (tenant creation failure) for motivation.
- Author:
- Matt Ward
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ContentStore cast to a TenantDeployer if the underlying instance is of that type.Returns the ContentStore cast to a TenantRoutingContentStore if the underlying instance is of that type.
-
Method Details
-
getTenantRoutingContentStore
TenantDeployer getTenantRoutingContentStore()Returns the ContentStore cast to a TenantRoutingContentStore if the underlying instance is of that type. Returns null otherwise.Note, the actual return type is a TenantDeployer (supertype of TenantRoutingContentStore) since the data model has no knowledge of that subtype. This interface may need to move to a different project.
- Returns:
- TenantRoutingContentStore
-
getTenantDeployer
TenantDeployer getTenantDeployer()Returns the ContentStore cast to a TenantDeployer if the underlying instance is of that type. Returns null otherwise.- Returns:
- TenantDeployer
-