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() |
java.util.List |
getModelRefs() |
protected java.util.List |
getNodes(org.alfresco.service.cmr.repository.StoreRef storeRef,
RepositoryLocation repositoryLocation,
org.alfresco.service.namespace.QName nodeType) |
void |
init()
Initialise - after bootstrap of schema and tenant admin service
|
void |
initMessages() |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
void |
onDictionaryInit() |
void |
onDisableTenant() |
void |
onEnableTenant() |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
register()
Register
|
protected org.alfresco.service.cmr.repository.NodeRef |
resolveQNamePath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
java.lang.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 |
setRepositoryMessagesLocations(java.util.List repositoryLocations)
Set the repository messages (resource bundle) locations
|
void |
setRepositoryModelsLocations(java.util.List 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
- public void setContentService(ContentService contentService)
contentService
- the content servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic 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(java.util.List repositoryLocations)
repositoryModelsLocations
- list of the repository models locationspublic void setRepositoryMessagesLocations(java.util.List 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 onDictionaryInit()
onDictionaryInit
in interface org.alfresco.repo.dictionary.DictionaryListener
public void afterDictionaryInit()
afterDictionaryInit
in interface org.alfresco.repo.dictionary.DictionaryListener
public void afterDictionaryDestroy()
afterDictionaryDestroy
in interface org.alfresco.repo.dictionary.DictionaryListener
public void initMessages()
initMessages
in interface MessageDeployer
public java.util.List getModelRefs()
protected java.util.List 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, java.lang.String[] pathPrefixQNameStrings)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.