当前位置: 首页>>代码示例>>Java>>正文


Java DictionaryRepositoryBootstrap类代码示例

本文整理汇总了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();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:30,代码来源:ScriptNodeTest.java

示例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;
}
 
开发者ID:Alfresco,项目名称:records-management-old,代码行数:10,代码来源:RecordsManagementAdminBase.java

示例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;
}
 
开发者ID:Alfresco,项目名称:records-management-old,代码行数:10,代码来源:RecordsManagementAdminBase.java


注:本文中的org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。