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, setStoresCache
protected 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.ApplicationContextAware
org.springframework.beans.BeansException
public void setTransactionService(TransactionService transactionService)
public String getRootLocation()
getRootLocation
in interface org.alfresco.repo.content.ContentStore
getRootLocation
in interface TenantRoutingContentStore
getRootLocation
in class AbstractRoutingContentStore
protected org.alfresco.repo.content.ContentStore selectWriteStore(org.alfresco.repo.content.ContentContext ctx)
AbstractRoutingContentStore
selectWriteStore
in class AbstractRoutingContentStore
ctx
- the context to use to make the choicepublic List<org.alfresco.repo.content.ContentStore> getAllStores()
getAllStores
in class AbstractRoutingContentStore
public void init()
init
in interface org.alfresco.repo.tenant.TenantDeployer
public void destroy()
destroy
in interface org.alfresco.repo.tenant.TenantDeployer
public void onEnableTenant()
onEnableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void onDisableTenant()
onDisableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public long getSpaceFree()
getSpaceFree
in interface org.alfresco.repo.content.ContentStore
getSpaceFree
in class AbstractRoutingContentStore
public long getSpaceTotal()
getSpaceTotal
in interface org.alfresco.repo.content.ContentStore
getSpaceTotal
in class AbstractRoutingContentStore
protected abstract org.alfresco.repo.content.ContentStore initContentStore(org.springframework.context.ApplicationContext ctx, String contentRoot)
Copyright © 2005–2017 Alfresco Software. All rights reserved.