當前位置: 首頁>>代碼示例>>Java>>正文


Java NamespaceServiceMemoryImpl類代碼示例

本文整理匯總了Java中org.alfresco.service.namespace.NamespaceServiceMemoryImpl的典型用法代碼示例。如果您正苦於以下問題:Java NamespaceServiceMemoryImpl類的具體用法?Java NamespaceServiceMemoryImpl怎麽用?Java NamespaceServiceMemoryImpl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NamespaceServiceMemoryImpl類屬於org.alfresco.service.namespace包,在下文中一共展示了NamespaceServiceMemoryImpl類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: makeNamespaceService

import org.alfresco.service.namespace.NamespaceServiceMemoryImpl; //導入依賴的package包/類
private NamespaceService makeNamespaceService()
{
    NamespaceServiceMemoryImpl nsService = new NamespaceServiceMemoryImpl();
    nsService.registerNamespace(NamespaceService.SYSTEM_MODEL_PREFIX, NamespaceService.SYSTEM_MODEL_1_0_URI);
    nsService.registerNamespace(NamespaceService.RENDITION_MODEL_PREFIX, NamespaceService.RENDITION_MODEL_1_0_URI);
    nsService.registerNamespace(NamespaceService.BPM_MODEL_PREFIX, NamespaceService.BPM_MODEL_1_0_URI);
    nsService.registerNamespace(NamespaceService.WORKFLOW_MODEL_PREFIX, NamespaceService.WORKFLOW_MODEL_1_0_URI);
    return nsService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:10,代碼來源:WorkflowFormProcessorTest.java

示例2: makeNamespaceService

import org.alfresco.service.namespace.NamespaceServiceMemoryImpl; //導入依賴的package包/類
private NamespaceService makeNamespaceService()
{
    NamespaceServiceMemoryImpl nsService = new NamespaceServiceMemoryImpl();
    nsService.registerNamespace(NamespaceService.SYSTEM_MODEL_PREFIX, NamespaceService.SYSTEM_MODEL_1_0_URI);
    nsService.registerNamespace(NamespaceService.RENDITION_MODEL_PREFIX, NamespaceService.RENDITION_MODEL_1_0_URI);
    nsService.registerNamespace(NamespaceService.BPM_MODEL_PREFIX, NamespaceService.BPM_MODEL_1_0_URI);
    return nsService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:9,代碼來源:TaskFormProcessorTest.java

示例3: setUp

import org.alfresco.service.namespace.NamespaceServiceMemoryImpl; //導入依賴的package包/類
@Override
protected void setUp() throws Exception
{
    super.setUp();
    namespaceService = new NamespaceServiceMemoryImpl();
    namespaceService.registerNamespace("test", URI);
    namespaceService.registerNamespace(NamespaceService.CONTENT_MODEL_PREFIX, NamespaceService.CONTENT_MODEL_1_0_URI);
    namespaceService.registerNamespace(NamespaceService.BPM_MODEL_PREFIX, NamespaceService.BPM_MODEL_1_0_URI);
    
    personService = mock(PersonService.class);
    when(personService.getPerson(userName)).thenReturn(person);
    when(personService.personExists(userName)).thenReturn(true);
    
    nodeService = mock(NodeService.class);
    Map<QName, Serializable> personProps = new HashMap<QName, Serializable>();
    personProps.put(ContentModel.PROP_USERNAME, userName);
    personProps.put(ContentModel.PROP_FIRSTNAME, firstName);
    personProps.put(ContentModel.PROP_LASTNAME, lastName);
    when(nodeService.getProperties(person)).thenReturn(personProps);
    when(nodeService.getProperty(person, ContentModel.PROP_USERNAME)).thenReturn(userName);
    when(nodeService.getProperty(person, ContentModel.PROP_FIRSTNAME)).thenReturn(firstName);
    when(nodeService.getProperty(person, ContentModel.PROP_LASTNAME)).thenReturn(lastName);
    
    workflowService = mock(WorkflowService.class);
    dictionaryService = mock(DictionaryService.class);
    authenticationService = mock(AuthenticationService.class);
    
    builder = new WorkflowModelBuilder(namespaceService, nodeService, authenticationService, personService, workflowService, dictionaryService);
}
 
開發者ID:Alfresco,項目名稱:alfresco-remote-api,代碼行數:30,代碼來源:WorkflowModelBuilderTest.java

示例4: makeNamespaceService

import org.alfresco.service.namespace.NamespaceServiceMemoryImpl; //導入依賴的package包/類
private NamespaceService makeNamespaceService()
{
    NamespaceServiceMemoryImpl nsService = new NamespaceServiceMemoryImpl();
    nsService.registerNamespace(PREFIX, URI);
    return nsService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:7,代碼來源:FieldProcessorTest.java


注:本文中的org.alfresco.service.namespace.NamespaceServiceMemoryImpl類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。