Package org.alfresco.repo.dictionary
Class DictionaryBootstrap
java.lang.Object
org.alfresco.repo.dictionary.DictionaryBootstrap
- All Implemented Interfaces:
DictionaryListener
Bootstrap Dictionary DAO with pre-defined models & message resources (from classpath)
- Author:
- David Caruana, janv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback once dictionary destroy is complete (executed in the current tenant context)void
Callback once dictionary initialisation is complete (executed in the current tenant context)void
Bootstrap the Dictionary - register and populatevoid
Callback for (re-)initialising the Dictionary caches (executed in the current tenant context)void
setDictionaryDAO
(DictionaryDAO dictionaryDAO) Sets the Dictionary DAOvoid
setGlobalProperties
(Properties globalProperties) Sets the global propertiesvoid
Sets the initial list of models to bootstrap withvoid
Sets the initial list of models to bootstrap withvoid
setTenantService
(TenantService tenantService) Sets the Tenant Service
-
Constructor Details
-
DictionaryBootstrap
public DictionaryBootstrap()
-
-
Method Details
-
setDictionaryDAO
Sets the Dictionary DAO- Parameters:
dictionaryDAO
- DictionaryDAO
-
setTenantService
Sets the Tenant Service- Parameters:
tenantService
- TenantService
-
setGlobalProperties
Sets the global properties- Parameters:
globalProperties
-
-
setModels
Sets the initial list of models to bootstrap with- Parameters:
modelResources
- the model names
-
setLabels
Sets the initial list of models to bootstrap with- Parameters:
labels
- the labels
-
bootstrap
public void bootstrap()Bootstrap the Dictionary - register and populate -
onDictionaryInit
public void onDictionaryInit()Description copied from interface:DictionaryListener
Callback for (re-)initialising the Dictionary caches (executed in the current tenant context)- Specified by:
onDictionaryInit
in interfaceDictionaryListener
-
afterDictionaryInit
public void afterDictionaryInit()Description copied from interface:DictionaryListener
Callback once dictionary initialisation is complete (executed in the current tenant context)- Specified by:
afterDictionaryInit
in interfaceDictionaryListener
-
afterDictionaryDestroy
public void afterDictionaryDestroy()Description copied from interface:DictionaryListener
Callback once dictionary destroy is complete (executed in the current tenant context)- Specified by:
afterDictionaryDestroy
in interfaceDictionaryListener
-