當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。