public abstract class AbstractTenantRoutingContentStore extends AbstractRoutingContentStore implements org.springframework.context.ApplicationContextAware, TenantRoutingContentStore
| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.repo.tenant.TenantService |
tenantService |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTenantRoutingContentStore()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
List<org.alfresco.repo.content.ContentStore> |
getAllStores() |
String |
getRootLocation() |
long |
getSpaceFree() |
long |
getSpaceTotal() |
void |
init() |
protected abstract org.alfresco.repo.content.ContentStore |
initContentStore(org.springframework.context.ApplicationContext ctx,
String contentRoot) |
void |
onDisableTenant() |
void |
onEnableTenant() |
protected org.alfresco.repo.content.ContentStore |
selectWriteStore(org.alfresco.repo.content.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(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setTransactionService(TransactionService transactionService) |
delete, exists, getReader, getWriter, getWriter, isContentUrlSupported, isWriteSupported, setStoresCacheprotected AbstractTenantRoutingContentStore()
public void setRootLocation(String defaultRootDirectory)
public void setTenantService(org.alfresco.repo.tenant.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 org.alfresco.repo.content.ContentStoregetRootLocation in interface TenantRoutingContentStoregetRootLocation in class AbstractRoutingContentStoreprotected org.alfresco.repo.content.ContentStore selectWriteStore(org.alfresco.repo.content.ContentContext ctx)
AbstractRoutingContentStoreselectWriteStore in class AbstractRoutingContentStorectx - the context to use to make the choicepublic List<org.alfresco.repo.content.ContentStore> getAllStores()
getAllStores in class AbstractRoutingContentStorepublic void init()
init in interface org.alfresco.repo.tenant.TenantDeployerpublic void destroy()
destroy in interface org.alfresco.repo.tenant.TenantDeployerpublic void onEnableTenant()
onEnableTenant in interface org.alfresco.repo.tenant.TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface org.alfresco.repo.tenant.TenantDeployerpublic long getSpaceFree()
getSpaceFree in interface org.alfresco.repo.content.ContentStoregetSpaceFree in class AbstractRoutingContentStorepublic long getSpaceTotal()
getSpaceTotal in interface org.alfresco.repo.content.ContentStoregetSpaceTotal in class AbstractRoutingContentStoreprotected abstract org.alfresco.repo.content.ContentStore initContentStore(org.springframework.context.ApplicationContext ctx,
String contentRoot)
Copyright © 2005–2018 Alfresco Software. All rights reserved.