org.alfresco.repo.dictionary
Class DictionaryBootstrap

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

public class DictionaryBootstrap
extends java.lang.Object
implements DictionaryDeployer

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


Constructor Summary
DictionaryBootstrap()
           
 
Method Summary
 void bootstrap()
          Bootstrap the Dictionary - register and populate
 void initDictionary()
          Populate the Dictionary
 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

Specified by:
register in interface DictionaryDeployer

initDictionary

public void initDictionary()
Populate the Dictionary

Specified by:
initDictionary in interface DictionaryDeployer


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