Package org.alfresco.repo.dictionary
Class DictionaryBootstrap
- java.lang.Object
-
- org.alfresco.repo.dictionary.DictionaryBootstrap
-
- All Implemented Interfaces:
DictionaryListener
public class DictionaryBootstrap extends Object implements DictionaryListener
Bootstrap Dictionary DAO with pre-defined models & message resources (from classpath)- Author:
- David Caruana, janv
-
-
Constructor Summary
Constructors Constructor Description DictionaryBootstrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterDictionaryDestroy()Callback once dictionary destroy is complete (executed in the current tenant context)voidafterDictionaryInit()Callback once dictionary initialisation is complete (executed in the current tenant context)voidbootstrap()Bootstrap the Dictionary - register and populatevoidonDictionaryInit()Callback for (re-)initialising the Dictionary caches (executed in the current tenant context)voidsetDictionaryDAO(DictionaryDAO dictionaryDAO)Sets the Dictionary DAOvoidsetGlobalProperties(Properties globalProperties)Sets the global propertiesvoidsetLabels(List<String> labels)Sets the initial list of models to bootstrap withvoidsetModels(List<String> modelResources)Sets the initial list of models to bootstrap withvoidsetTenantService(TenantService tenantService)Sets the Tenant Service
-
-
-
Method Detail
-
setDictionaryDAO
public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
Sets the Dictionary DAO- Parameters:
dictionaryDAO- DictionaryDAO
-
setTenantService
public void setTenantService(TenantService tenantService)
Sets the Tenant Service- Parameters:
tenantService- TenantService
-
setGlobalProperties
public void setGlobalProperties(Properties globalProperties)
Sets the global properties- Parameters:
globalProperties-
-
setModels
public void setModels(List<String> modelResources)
Sets the initial list of models to bootstrap with- Parameters:
modelResources- the model names
-
setLabels
public void setLabels(List<String> labels)
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:DictionaryListenerCallback for (re-)initialising the Dictionary caches (executed in the current tenant context)- Specified by:
onDictionaryInitin interfaceDictionaryListener
-
afterDictionaryInit
public void afterDictionaryInit()
Description copied from interface:DictionaryListenerCallback once dictionary initialisation is complete (executed in the current tenant context)- Specified by:
afterDictionaryInitin interfaceDictionaryListener
-
afterDictionaryDestroy
public void afterDictionaryDestroy()
Description copied from interface:DictionaryListenerCallback once dictionary destroy is complete (executed in the current tenant context)- Specified by:
afterDictionaryDestroyin interfaceDictionaryListener
-
-