public class DictionaryRepositoryBootstrap extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements org.alfresco.repo.tenant.TenantDeployer, org.alfresco.repo.dictionary.DictionaryListener, MessageDeployer
Constructor and Description |
---|
DictionaryRepositoryBootstrap() |
Modifier and Type | Method and Description |
---|---|
void |
afterDictionaryDestroy() |
void |
afterDictionaryInit() |
org.alfresco.repo.dictionary.M2Model |
createM2Model(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Create a M2Model from a dictionary model node
|
void |
destroy() |
List<org.alfresco.service.cmr.repository.NodeRef> |
getModelRefs() |
protected List<org.alfresco.service.cmr.repository.NodeRef> |
getNodes(org.alfresco.service.cmr.repository.StoreRef storeRef,
RepositoryLocation repositoryLocation,
org.alfresco.service.namespace.QName nodeType) |
PolicyComponent |
getPolicyComponent() |
void |
init()
Initialise - after bootstrap of schema and tenant admin service
|
void |
initMessages() |
void |
notifyDynamicModelLoaded(org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.DynamicModelInfo entry) |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
onDictionaryInit()
Initialise the dictionary, ensuring that a transaction is available
|
void |
onDisableTenant() |
void |
onEnableTenant() |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
register()
Register listeners
|
protected org.alfresco.service.cmr.repository.NodeRef |
resolveQNamePath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
String[] pathPrefixQNameStrings) |
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Sets the Dictionary DAO
|
void |
setMessageService(MessageService messageService)
Set the message service
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Set the namespace service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setRepositoryMessagesLocations(List<RepositoryLocation> repositoryLocations)
Set the repository messages (resource bundle) locations
|
void |
setRepositoryModelsLocations(List<RepositoryLocation> repositoryLocations)
Set the repository models locations
|
void |
setTenantAdminService(TenantAdminService tenantAdminService)
Set the tenant admin service
|
void |
setTransactionService(TransactionService transactionService)
Set the transaction service
|
protected void |
unregister()
Unregister
|
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
dictionaryDAO
- DictionaryDAOpublic void setContentService(ContentService contentService)
contentService
- the content servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic PolicyComponent getPolicyComponent()
public void setPolicyComponent(PolicyComponent policyComponent)
public void setTenantAdminService(TenantAdminService tenantAdminService)
tenantAdminService
- the tenant admin servicepublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- the namespace servicepublic void setMessageService(MessageService messageService)
messageService
- the message servicepublic void setTransactionService(TransactionService transactionService)
transactionService
- the transaction servicepublic void setRepositoryModelsLocations(List<RepositoryLocation> repositoryLocations)
repositoryLocations
- list of the repository models locationspublic void setRepositoryMessagesLocations(List<RepositoryLocation> repositoryLocations)
repositoryLocations
- list of the repository messages locationspublic void init()
init
in interface org.alfresco.repo.tenant.TenantDeployer
public void destroy()
destroy
in interface org.alfresco.repo.tenant.TenantDeployer
public void notifyDynamicModelLoaded(org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.DynamicModelInfo entry)
public void initMessages()
initMessages
in interface MessageDeployer
public List<org.alfresco.service.cmr.repository.NodeRef> getModelRefs()
protected List<org.alfresco.service.cmr.repository.NodeRef> getNodes(org.alfresco.service.cmr.repository.StoreRef storeRef, RepositoryLocation repositoryLocation, org.alfresco.service.namespace.QName nodeType)
public org.alfresco.repo.dictionary.M2Model createM2Model(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the dictionary model node referenceprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public void onEnableTenant()
onEnableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void onDisableTenant()
onDisableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void register()
protected void unregister()
protected org.alfresco.service.cmr.repository.NodeRef resolveQNamePath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef, String[] pathPrefixQNameStrings)
public void onDictionaryInit()
onDictionaryInit
in interface org.alfresco.repo.dictionary.DictionaryListener
public void afterDictionaryDestroy()
afterDictionaryDestroy
in interface org.alfresco.repo.dictionary.DictionaryListener
public void afterDictionaryInit()
afterDictionaryInit
in interface org.alfresco.repo.dictionary.DictionaryListener
Copyright © 2005–2017 Alfresco Software. All rights reserved.