org.alfresco.repo.content
Class TenantRoutingFileContentStore
java.lang.Object
org.alfresco.repo.content.AbstractRoutingContentStore
org.alfresco.repo.content.TenantRoutingFileContentStore
- All Implemented Interfaces:
- ContentStore, TenantDeployer
public class TenantRoutingFileContentStore
- extends AbstractRoutingContentStore
- implements TenantDeployer
Content Store that supports tenant routing, if multi-tenancy is enabled.
Note: Need to initialise before the dictionary service, in the case that models are dynamically loaded for the tenant.
Methods inherited from class org.alfresco.repo.content.AbstractRoutingContentStore |
delete, exists, getReader, getRootLocation, getTotalSize, getUrls, getUrls, getWriter, getWriter, isContentUrlSupported, isWriteSupported, setStoresCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TenantRoutingFileContentStore
public TenantRoutingFileContentStore()
setDefaultRootDir
public void setDefaultRootDir(java.lang.String defaultRootDirectory)
setTenantService
public void setTenantService(TenantService tenantService)
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Sets the application event publisher.
- Parameters:
applicationEventPublisher
- the new application event publisher
selectWriteStore
protected ContentStore selectWriteStore(ContentContext ctx)
- Description copied from class:
AbstractRoutingContentStore
- Get a content store based on the context provided. The applicability of the
context and even the types of context allowed are up to the implementation, but
normally there should be a fallback case for when the parameters are not adequate
to make a decision.
- Specified by:
selectWriteStore
in class AbstractRoutingContentStore
- Parameters:
ctx
- the context to use to make the choice
- Returns:
- Returns the store most appropriate for the given context and
never null
getAllStores
public java.util.List getAllStores()
- Specified by:
getAllStores
in class AbstractRoutingContentStore
- Returns:
- Returns a list of all possible stores available for reading or writing
init
public void init()
- Specified by:
init
in interface TenantDeployer
destroy
public void destroy()
- Specified by:
destroy
in interface TenantDeployer
onEnableTenant
public void onEnableTenant()
- Specified by:
onEnableTenant
in interface TenantDeployer
onDisableTenant
public void onDisableTenant()
- Specified by:
onDisableTenant
in interface TenantDeployer
getDefaultRootDir
public java.lang.String getDefaultRootDir()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.