public abstract class AbstractTenantRoutingContentStore extends AbstractRoutingContentStore implements org.springframework.context.ApplicationContextAware, TenantRoutingContentStore
| Modifier and Type | Field and Description |
|---|---|
protected TenantService |
tenantService |
NEW_CONTENT_CONTEXT, PROTOCOL_DELIMITER| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTenantRoutingContentStore()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
List<ContentStore> |
getAllStores() |
String |
getRootLocation() |
long |
getSpaceFree() |
long |
getSpaceTotal() |
void |
init() |
protected abstract ContentStore |
initContentStore(org.springframework.context.ApplicationContext ctx,
String contentRoot) |
void |
onDisableTenant() |
void |
onEnableTenant() |
protected ContentStore |
selectWriteStore(ContentContext ctx)
Get a content store based on the context provided.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setRootLocation(String defaultRootDirectory) |
void |
setTenantAdminDAO(TenantAdminDAO tenantAdminDAO) |
void |
setTenantService(TenantService tenantService) |
void |
setTransactionService(TransactionService transactionService) |
delete, exists, getReader, getWriter, getWriter, isContentUrlSupported, isWriteSupported, setStoresCacheprotected TenantService tenantService
protected AbstractTenantRoutingContentStore()
public void setRootLocation(String defaultRootDirectory)
public void setTenantService(TenantService tenantService)
public void setTenantAdminDAO(TenantAdminDAO tenantAdminDAO)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setTransactionService(TransactionService transactionService)
public String getRootLocation()
getRootLocation in interface ContentStoregetRootLocation in interface TenantRoutingContentStoregetRootLocation in class AbstractRoutingContentStoreprotected ContentStore selectWriteStore(ContentContext ctx)
AbstractRoutingContentStoreselectWriteStore in class AbstractRoutingContentStorectx - the context to use to make the choicepublic List<ContentStore> getAllStores()
getAllStores in class AbstractRoutingContentStorepublic void init()
init in interface TenantDeployerpublic void destroy()
destroy in interface TenantDeployerpublic void onEnableTenant()
onEnableTenant in interface TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface TenantDeployerpublic long getSpaceFree()
getSpaceFree in interface ContentStoregetSpaceFree in class AbstractRoutingContentStorepublic long getSpaceTotal()
getSpaceTotal in interface ContentStoregetSpaceTotal in class AbstractRoutingContentStoreprotected abstract ContentStore initContentStore(org.springframework.context.ApplicationContext ctx, String contentRoot)
Copyright © 2005–2020 Alfresco Software. All rights reserved.