本文整理汇总了Java中org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap类的典型用法代码示例。如果您正苦于以下问题:Java DictionaryRepositoryBootstrap类的具体用法?Java DictionaryRepositoryBootstrap怎么用?Java DictionaryRepositoryBootstrap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DictionaryRepositoryBootstrap类属于org.alfresco.repo.dictionary包,在下文中一共展示了DictionaryRepositoryBootstrap类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUpBootstrap
import org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap; //导入依赖的package包/类
/**
* Bootstraps the model from custom store
*/
private void setUpBootstrap()
{
bootstrap = new DictionaryRepositoryBootstrap();
bootstrap.setContentService(CONTENT_SERVICE);
bootstrap.setDictionaryDAO(DICTIONARY_DAO);
bootstrap.setTransactionService(TRANSACTION_SERVICE);
bootstrap.setTenantAdminService(TENANT_ADMIN_SERVICE);
bootstrap.setNodeService(NODE_SERVICE);
bootstrap.setNamespaceService(NAMESPACE_SERVICE);
bootstrap.setMessageService(MESSAGE_SERVICE);
bootstrap.setPolicyComponent(POLICY_COMPONENT);
RepositoryLocation location = new RepositoryLocation();
location.setStoreProtocol(storeRef.getProtocol());
location.setStoreId(storeRef.getIdentifier());
location.setQueryLanguage(RepositoryLocation.LANGUAGE_PATH);
// NOTE: we are not setting the path for now .. in doing so we are searching the root node only
List<RepositoryLocation> locations = new ArrayList<RepositoryLocation>();
locations.add(location);
bootstrap.setRepositoryModelsLocations(locations);
// register with dictionary service
bootstrap.register();
}
示例2: getDictionaryRepositoryBootstrap
import org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap; //导入依赖的package包/类
/**
* Gets the dictionary repository bootstrap instance
*
* @return The dictionary repository bootstrap instance
*/
protected DictionaryRepositoryBootstrap getDictionaryRepositoryBootstrap()
{
return this.dictionaryRepositoryBootstrap;
}
示例3: setDictionaryRepositoryBootstrap
import org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap; //导入依赖的package包/类
/**
* Sets the dictionary repository bootstrap instance
*
* @param dictionaryRepositoryBootstrap The dictionary repository bootstrap instance
*/
public void setDictionaryRepositoryBootstrap(DictionaryRepositoryBootstrap dictionaryRepositoryBootstrap)
{
this.dictionaryRepositoryBootstrap = dictionaryRepositoryBootstrap;
}