public abstract class AbstractTenantRoutingContentStore extends AbstractRoutingContentStore implements org.springframework.context.ApplicationContextAware, TenantRoutingContentStore
ContentStore.ContentUrlHandler| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.repo.tenant.TenantService |
tenantService |
NEW_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.
|
long |
getSpaceFree()
Calcualates the remaing free space in the underlying store.
|
long |
getSpaceTotal()
Calculates the total storage space of the underlying store.
|
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, 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 interface TenantRoutingContentStoregetRootLocation 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.TenantDeployerpublic long getSpaceFree()
ContentStoreNOTE: For efficiency, some implementations may provide a guess.
Implementations should focus on calculating a size value quickly, rather than accurately.
getSpaceFree in interface ContentStoregetSpaceFree in class AbstractRoutingContentStorepublic long getSpaceTotal()
ContentStoreNOTE: For efficiency, some implementations may provide a guess.
Implementations should focus on calculating a size value quickly, rather than accurately.
getSpaceTotal in interface ContentStoregetSpaceTotal in class AbstractRoutingContentStoreprotected abstract ContentStore initContentStore(org.springframework.context.ApplicationContext ctx, java.lang.String contentRoot)
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.