Example usage for com.liferay.portal.kernel.model UserNotificationDeliveryConstants TYPE_EMAIL

List of usage examples for com.liferay.portal.kernel.model UserNotificationDeliveryConstants TYPE_EMAIL

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model UserNotificationDeliveryConstants TYPE_EMAIL.

Prototype

int TYPE_EMAIL

To view the source code for com.liferay.portal.kernel.model UserNotificationDeliveryConstants TYPE_EMAIL.

Click Source Link

Usage

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.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));
}

From source file:com.liferay.document.library.web.internal.notifications.DLUpdateEntryUserNotificationDefinition.java

License:Open Source License

public DLUpdateEntryUserNotificationDefinition() {
    super(DLPortletKeys.DOCUMENT_LIBRARY, 0, UserNotificationDefinition.NOTIFICATION_TYPE_UPDATE_ENTRY,
            "receive-a-notification-when-someone-updates-a-document-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.journal.web.internal.notifications.JournalAddEntryUserNotificationDefinition.java

License:Open Source License

public JournalAddEntryUserNotificationDefinition() {
    super(JournalPortletKeys.JOURNAL, 0, UserNotificationDefinition.NOTIFICATION_TYPE_ADD_ENTRY,
            "receive-a-notification-when-someone-adds-new-web-content-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.journal.web.internal.notifications.JournalMoveEntryFromFolderUserNotificationDefinition.java

License:Open Source License

public JournalMoveEntryFromFolderUserNotificationDefinition() {
    super(JournalArticleConstants.NOTIFICATION_TYPE_MOVE_ENTRY_FROM_FOLDER,
            "receive-a-notification-when-someone-moves-from-folder-web-" + "content-you-are-subscribed-to");

    addUserNotificationDeliveryType(new UserNotificationDeliveryType("email",
            UserNotificationDeliveryConstants.TYPE_EMAIL, true, true));
    addUserNotificationDeliveryType(new UserNotificationDeliveryType("website",
            UserNotificationDeliveryConstants.TYPE_WEBSITE, true, true));
}