public class DictionaryRepositoryBootstrap extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements TenantDeployer, DictionaryListener, MessageDeployer
| Constructor and Description |
|---|
DictionaryRepositoryBootstrap() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDictionaryDestroy() |
void |
afterDictionaryInit() |
M2Model |
createM2Model(NodeRef nodeRef)
Create a M2Model from a dictionary model node
|
void |
destroy() |
List<NodeRef> |
getModelRefs() |
protected List<NodeRef> |
getNodes(StoreRef storeRef,
RepositoryLocation repositoryLocation,
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 NodeRef |
resolveQNamePath(NodeRef rootNodeRef,
String[] pathPrefixQNameStrings) |
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setDictionaryDAO(DictionaryDAO dictionaryDAO)
Sets the Dictionary DAO
|
void |
setMessageService(MessageService messageService)
Set the message service
|
void |
setNamespaceService(NamespaceService namespaceService)
Set the namespace service
|
void |
setNodeService(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(DictionaryDAO dictionaryDAO)
dictionaryDAO - DictionaryDAOpublic void setContentService(ContentService contentService)
contentService - the content servicepublic void setNodeService(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(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 TenantDeployerpublic void destroy()
destroy in interface TenantDeployerpublic void notifyDynamicModelLoaded(org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.DynamicModelInfo entry)
public void initMessages()
initMessages in interface MessageDeployerprotected List<NodeRef> getNodes(StoreRef storeRef, RepositoryLocation repositoryLocation, QName nodeType)
public M2Model createM2Model(NodeRef nodeRef)
nodeRef - the dictionary model node referenceprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanpublic void onEnableTenant()
onEnableTenant in interface TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface TenantDeployerpublic void register()
protected void unregister()
protected NodeRef resolveQNamePath(NodeRef rootNodeRef, String[] pathPrefixQNameStrings)
public void onDictionaryInit()
onDictionaryInit in interface DictionaryListenerpublic void afterDictionaryDestroy()
afterDictionaryDestroy in interface DictionaryListenerpublic void afterDictionaryInit()
afterDictionaryInit in interface DictionaryListenerCopyright © 2005–2021 Alfresco Software. All rights reserved.