org.alfresco.repo.dictionary
Class DictionaryBootstrap

java.lang.Object
  extended by org.alfresco.repo.dictionary.DictionaryBootstrap
All Implemented Interfaces:
DictionaryListener

public class DictionaryBootstrap
extends java.lang.Object
implements DictionaryListener

Bootstrap Dictionary DAO with pre-defined models & message resources (from classpath)


Constructor Summary
DictionaryBootstrap()
           
 
Method Summary
 void afterDictionaryDestroy()
           
 void afterDictionaryInit()
           
 void bootstrap()
          Bootstrap the Dictionary - register and populate
 void onDictionaryInit()
           
 void register()
          Register with the Dictionary
 void setDictionaryDAO(DictionaryDAO dictionaryDAO)
          Sets the Dictionary DAO
 void setLabels(java.util.List labels)
          Sets the initial list of models to bootstrap with
 void setModels(java.util.List modelResources)
          Sets the initial list of models to bootstrap with
 void setTenantService(TenantService tenantService)
          Sets the Tenant Service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryBootstrap

public DictionaryBootstrap()
Method Detail

setDictionaryDAO

public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
Sets the Dictionary DAO

Parameters:
dictionaryDAO -

setTenantService

public void setTenantService(TenantService tenantService)
Sets the Tenant Service

Parameters:
tenantService -

setModels

public void setModels(java.util.List modelResources)
Sets the initial list of models to bootstrap with

Parameters:
modelResources - the model names

setLabels

public void setLabels(java.util.List labels)
Sets the initial list of models to bootstrap with

Parameters:
modelResources - the model names

bootstrap

public void bootstrap()
Bootstrap the Dictionary - register and populate


register

public void register()
Register with the Dictionary


onDictionaryInit

public void onDictionaryInit()
Specified by:
onDictionaryInit in interface DictionaryListener

afterDictionaryInit

public void afterDictionaryInit()
Specified by:
afterDictionaryInit in interface DictionaryListener

afterDictionaryDestroy

public void afterDictionaryDestroy()
Specified by:
afterDictionaryDestroy in interface DictionaryListener


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.