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


Java CMISAbstractDictionaryService类代码示例

本文整理汇总了Java中org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService的典型用法代码示例。如果您正苦于以下问题:Java CMISAbstractDictionaryService类的具体用法?Java CMISAbstractDictionaryService怎么用?Java CMISAbstractDictionaryService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CMISAbstractDictionaryService类属于org.alfresco.opencmis.dictionary包,在下文中一共展示了CMISAbstractDictionaryService类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addTypeTestDataModel

import org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService; //导入依赖的package包/类
private void addTypeTestDataModel()
{
    // load in the test model
    ClassLoader cl = BaseNodeServiceTest.class.getClassLoader();
    InputStream modelStream = cl.getResourceAsStream("org/alfresco/cmis/search/CMIS-query-test-model.xml");
    assertNotNull(modelStream);
    M2Model model = M2Model.createModel(modelStream);
    dictionaryDAO.putModel(model);

    ((CMISAbstractDictionaryService) cmisDictionaryService).afterDictionaryDestroy();
    ((CMISAbstractDictionaryService) cmisDictionaryService).afterDictionaryInit();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:13,代码来源:OpenCmisQueryTest.java

示例2: constructDictionaries

import org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService; //导入依赖的package包/类
/**
 * Constructs a dictionary by default.
 * 
 * @param qnameFilter QNameFilter
 * @param namespaceDAO NamespaceDAO
 * @param dictionaryService DictionaryComponent
 * @param dictionaryDAO DictionaryDAO
 * @return Map
 */
public static Map<DictionaryKey,CMISAbstractDictionaryService> constructDictionaries(QNameFilter qnameFilter, NamespaceDAO namespaceDAO,
		DictionaryComponent dictionaryService, DictionaryDAO dictionaryDAO) 
{
    DictionaryNamespaceComponent namespaceService = new DictionaryNamespaceComponent();
    namespaceService.setNamespaceDAO(namespaceDAO);

    CMISMapping cmisMapping = new CMISMapping();
    cmisMapping.setCmisVersion(CmisVersion.CMIS_1_0);
    cmisMapping.setFilter(qnameFilter);
    cmisMapping.setNamespaceService(namespaceService);
    cmisMapping.setDictionaryService(dictionaryService);
    cmisMapping.afterPropertiesSet();

    CMISMapping cmisMapping11 = new CMISMapping();
    cmisMapping11.setCmisVersion(CmisVersion.CMIS_1_1);
    cmisMapping11.setFilter(qnameFilter);
    cmisMapping11.setNamespaceService(namespaceService);
    cmisMapping11.setDictionaryService(dictionaryService);
    cmisMapping11.afterPropertiesSet();

    Map<DictionaryKey,CMISAbstractDictionaryService> dictionaries = new HashMap<DictionaryKey,CMISAbstractDictionaryService>();

    DictionaryKey key = new DictionaryKey(CmisVersion.CMIS_1_0, CMISStrictDictionaryService.DEFAULT);
    dictionaries.put(key, newInstance(cmisMapping, dictionaryService, dictionaryDAO));
    CMISMapping mappingWithExclusions = newInstanceOfExcludedCMISMapping(cmisMapping, qnameFilter);
    key = new DictionaryKey(CmisVersion.CMIS_1_0, DICTIONARY_FILTERED_WITH_EXCLUSIONS);
    dictionaries.put(key, newInstance(mappingWithExclusions, dictionaryService, dictionaryDAO));
    
    key = new DictionaryKey(CmisVersion.CMIS_1_1, CMISStrictDictionaryService.DEFAULT);
    dictionaries.put(key, newInstance(cmisMapping11, dictionaryService, dictionaryDAO));
    CMISMapping mappingWithExclusions11 = newInstanceOfExcludedCMISMapping(cmisMapping11, qnameFilter);
    key = new DictionaryKey(CmisVersion.CMIS_1_1, DICTIONARY_FILTERED_WITH_EXCLUSIONS);
    dictionaries.put(key, newInstance(mappingWithExclusions11, dictionaryService, dictionaryDAO));

    return dictionaries;
}
 
开发者ID:Alfresco,项目名称:alfresco-solrclient,代码行数:46,代码来源:AlfrescoClientDataModelServicesFactory.java

示例3: afterInitModels

import org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService; //导入依赖的package包/类
public void afterInitModels()
{
    for (CMISAbstractDictionaryService cds : cmisDictionaryServices.values())
    {
        cds.afterDictionaryInit();
    }
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:8,代码来源:AlfrescoSolrDataModel.java


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