public abstract class AbstractTenantRoutingContentStore extends AbstractRoutingContentStore implements org.springframework.context.ApplicationContextAware, TenantRoutingContentStore
ContentStore.ContentUrlHandlerNEW_CONTENT_CONTEXT, PROTOCOL_DELIMITER| Constructor and Description |
|---|
AbstractTenantRoutingContentStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
java.util.List |
getAllStores() |
java.lang.String |
getRootLocation()
Get the location where the store is rooted.
|
void |
init() |
protected abstract ContentStore |
initContentStore(org.springframework.context.ApplicationContext ctx,
java.lang.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(java.lang.String defaultRootDirectory) |
void |
setSingletonCache(org.alfresco.repo.cache.SimpleCache singletonCache) |
void |
setTenantAdminDAO(TenantAdminDAO tenantAdminDAO) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
delete, exists, getReader, getSpaceFree, getSpaceTotal, getSpaceUsed, getTotalSize, getUrls, getUrls, getWriter, getWriter, isContentUrlSupported, isWriteSupported, setStoresCachepublic void setRootLocation(java.lang.String defaultRootDirectory)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setTenantAdminDAO(TenantAdminDAO tenantAdminDAO)
public void setSingletonCache(org.alfresco.repo.cache.SimpleCache singletonCache)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic java.lang.String getRootLocation()
ContentStoregetRootLocation in interface ContentStoregetRootLocation in class AbstractRoutingContentStoreprotected ContentStore selectWriteStore(ContentContext ctx)
AbstractRoutingContentStoreselectWriteStore in class AbstractRoutingContentStorectx - the context to use to make the choicepublic java.util.List 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.TenantDeployerprotected abstract ContentStore initContentStore(org.springframework.context.ApplicationContext ctx, java.lang.String contentRoot)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.