List of usage examples for com.liferay.portal.kernel.model UserNotificationDeliveryConstants TYPE_WEBSITE
int TYPE_WEBSITE
To view the source code for com.liferay.portal.kernel.model UserNotificationDeliveryConstants TYPE_WEBSITE.
Click Source Link
From source file:com.liferay.application.list.BasePanelApp.java
License:Open Source License
@Override public int getNotificationsCount(User user) { if (_userNotificationEventLocalService == null) { return 0; }//from w ww .j av a 2 s. c om return _userNotificationEventLocalService.getUserNotificationEventsCount(user.getUserId(), _portlet.getPortletId(), UserNotificationDeliveryConstants.TYPE_WEBSITE, false); }
From source file:com.liferay.blogs.web.internal.notifications.BlogsAddEntryUserNotificationDefinition.java
License:Open Source License
public BlogsAddEntryUserNotificationDefinition() { super(BlogsPortletKeys.BLOGS, 0, UserNotificationDefinition.NOTIFICATION_TYPE_ADD_ENTRY, "receive-a-notification-when-someone-adds-a-new-blog-entry-in-a-" + "blog-you-are-subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.blogs.web.internal.notifications.BlogsUpdateEntryUserNotificationDefinition.java
License:Open Source License
public BlogsUpdateEntryUserNotificationDefinition() { super(BlogsPortletKeys.BLOGS, 0, UserNotificationDefinition.NOTIFICATION_TYPE_UPDATE_ENTRY, "receive-a-notification-when-someone-updates-a-blog-entry-you-" + "are-subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.bookmarks.web.internal.notifications.BookmarksAddEntryUserNotificationDefinition.java
License:Open Source License
public BookmarksAddEntryUserNotificationDefinition() { super(BookmarksPortletKeys.BOOKMARKS, 0, UserNotificationDefinition.NOTIFICATION_TYPE_ADD_ENTRY, "receive-a-notification-when-someone-adds-a-new-bookmark-in-a-" + "folder-you-are-subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.bookmarks.web.internal.notifications.BookmarksUpdateEntryUserNotificationDefinition.java
License:Open Source License
public BookmarksUpdateEntryUserNotificationDefinition() { super(BookmarksPortletKeys.BOOKMARKS, 0, UserNotificationDefinition.NOTIFICATION_TYPE_UPDATE_ENTRY, "receive-a-notification-when-someone-updates-a-bookmark-you-" + "are-subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.comment.web.internal.notifications.CommentAddEntryUserNotificationDefinition.java
License:Open Source License
public CommentAddEntryUserNotificationDefinition() { super(CommentPortletKeys.COMMENT, 0, UserNotificationDefinition.NOTIFICATION_TYPE_ADD_ENTRY, "receive-a-notification-when-someone-adds-a-new-comment-to-" + "comments-you-are-subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.comment.web.internal.notifications.CommentUpdateEntryUserNotificationDefinition.java
License:Open Source License
public CommentUpdateEntryUserNotificationDefinition() { super(CommentPortletKeys.COMMENT, 0, UserNotificationDefinition.NOTIFICATION_TYPE_UPDATE_ENTRY, "receive-a-notification-when-someone-updates-a-comment-you-are-" + "subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.contacts.web.internal.notifications.ContactsCenterUserNotificationDefinition.java
License:Open Source License
public ContactsCenterUserNotificationDefinition() { super(ContactsPortletKeys.CONTACTS_CENTER, 0, SocialRelationConstants.SOCIAL_RELATION_REQUEST, "receive-a-notification-when-someone-sends-you-a-social-" + "relationship-request"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }
From source file:com.liferay.contacts.web.internal.portlet.ContactsCenterPortlet.java
License:Open Source License
protected void sendNotificationEvent(SocialRequest socialRequest) throws Exception { if (UserNotificationManagerUtil.isDeliver(socialRequest.getReceiverUserId(), ContactsPortletKeys.CONTACTS_CENTER, 0, SocialRelationConstants.SOCIAL_RELATION_REQUEST, UserNotificationDeliveryConstants.TYPE_WEBSITE)) { JSONObject notificationEventJSONObject = JSONFactoryUtil.createJSONObject(); notificationEventJSONObject.put("classPK", socialRequest.getRequestId()); notificationEventJSONObject.put("userId", socialRequest.getUserId()); userNotificationEventLocalService.sendUserNotificationEvents(socialRequest.getReceiverUserId(), ContactsPortletKeys.CONTACTS_CENTER, UserNotificationDeliveryConstants.TYPE_WEBSITE, true, notificationEventJSONObject); }//from w w w .java 2 s . c o m }
From source file:com.liferay.document.library.web.internal.notifications.DLAddEntryUserNotificationDefinition.java
License:Open Source License
public DLAddEntryUserNotificationDefinition() { super(DLPortletKeys.DOCUMENT_LIBRARY, 0, UserNotificationDefinition.NOTIFICATION_TYPE_ADD_ENTRY, "receive-a-notification-when-someone-adds-a-new-document-in-a-" + "folder-you-are-subscribed-to"); addUserNotificationDeliveryType(new UserNotificationDeliveryType("email", UserNotificationDeliveryConstants.TYPE_EMAIL, true, true)); addUserNotificationDeliveryType(new UserNotificationDeliveryType("website", UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true)); }