本文整理汇总了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);
}
示例2: setNotificationService
import org.alfresco.service.cmr.notification.NotificationService; //导入依赖的package包/类
public void setNotificationService(NotificationService service)
{
notificationService = service;
}
示例3: setNotificationService
import org.alfresco.service.cmr.notification.NotificationService; //导入依赖的package包/类
/**
* @param notificationService notification service
*/
public void setNotificationService(NotificationService notificationService)
{
this.notificationService = notificationService;
}
示例4: getNotificationService
import org.alfresco.service.cmr.notification.NotificationService; //导入依赖的package包/类
@Override
public NotificationService getNotificationService()
{
// A mock response
return null;
}
示例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;
}
});
}
示例6: setNotificationService
import org.alfresco.service.cmr.notification.NotificationService; //导入依赖的package包/类
public void setNotificationService(NotificationService notificationService)
{
this.notificationService = notificationService;
}
示例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();