本文整理汇总了Java中org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.setMessageService方法的典型用法代码示例。如果您正苦于以下问题:Java DictionaryRepositoryBootstrap.setMessageService方法的具体用法?Java DictionaryRepositoryBootstrap.setMessageService怎么用?Java DictionaryRepositoryBootstrap.setMessageService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap
的用法示例。
在下文中一共展示了DictionaryRepositoryBootstrap.setMessageService方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}