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


Java NotificationService類代碼示例

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


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

示例1: getNotificationService

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
@Override
public NotificationService getNotificationService()
{
    return (NotificationService)getService(NOTIFICATION_SERVICE);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:6,代碼來源:ServiceDescriptorRegistry.java

示例2: setNotificationService

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
public void setNotificationService(NotificationService service)
{
    notificationService = service;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:5,代碼來源:WorkflowNotificationUtils.java

示例3: setNotificationService

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
/**
 * @param notificationService   notification service
 */
public void setNotificationService(NotificationService notificationService)
{
    this.notificationService = notificationService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:8,代碼來源:EMailNotificationProvider.java

示例4: getNotificationService

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
@Override
public NotificationService getNotificationService()
{
    // A mock response
    return null;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:7,代碼來源:MockedTestServiceRegistry.java

示例5: setUp

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
@Override
protected void setUp() throws Exception
{
    super.setUp();
    
    contextSentFromTest = null;
    
    // Get the notification service
    notificationService = (NotificationService)ctx.getBean("NotificationService");
    authenticationService = (MutableAuthenticationService)ctx.getBean("AuthenticationService");   
    personService = (PersonService)ctx.getBean("PersonService");
    repository = (Repository)ctx.getBean("repositoryHelper");
    fileFolderService = (FileFolderService)ctx.getBean("FileFolderService");
    
    retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Void>()
    {
        @Override
        public Void execute() throws Throwable
        {
            // As system user
            AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());
    
            // Create people and users
            fromPerson = createPerson(FROM_USER, PASSWORD, FROM_FIRST_NAME, FROM_LAST_NAME, FROM_EMAIL);
            toPerson1 = createPerson(TO_USER1, PASSWORD, FIRST_NAME, LAST_NAME, EMAIL);
            toPerson2 = createPerson(TO_USER2, PASSWORD, FIRST_NAME, LAST_NAME, EMAIL);
            toPerson3 = createPerson(TO_USER3, PASSWORD, FIRST_NAME, LAST_NAME, EMAIL);
            
            // Create a test template
            NodeRef companyHome = repository.getCompanyHome();
            template = fileFolderService.create(companyHome, "testTemplate" + GUID.generate() + ".ftl", ContentModel.TYPE_CONTENT).getNodeRef();
            
            ContentWriter writer = contentService.getWriter(template, ContentModel.PROP_CONTENT, true);
            writer.setEncoding("UTF-8");
            writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);
            writer.putContent(TEMPLATE);
            
            return null;
        }
    });
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:42,代碼來源:NotificationServiceImplSystemTest.java

示例6: setNotificationService

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
public void setNotificationService(NotificationService notificationService)
{
    this.notificationService = notificationService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:5,代碼來源:NotificationServiceImplSystemTest.java

示例7: getNotificationService

import org.alfresco.service.cmr.notification.NotificationService; //導入依賴的package包/類
/**
 * @return the notification service (or null if on is not provided)
 * @deprecated This method has been deprecated as it would return a service that is not part of the public API. 
 * The service itself is not deprecated, but access to it via the ServiceRegistry will be removed in the future.
 */
@NotAuditable
NotificationService getNotificationService();
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:8,代碼來源:ServiceRegistry.java


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