当前位置: 首页>>代码示例>>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;未经允许,请勿转载。