Example usage for com.liferay.portal.kernel.notifications UserNotificationDeliveryType UserNotificationDeliveryType

List of usage examples for com.liferay.portal.kernel.notifications UserNotificationDeliveryType UserNotificationDeliveryType

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.notifications UserNotificationDeliveryType UserNotificationDeliveryType.

Prototype

public UserNotificationDeliveryType(String name, int type, boolean defaultValue, boolean modifiable) 

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.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.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.invitation.invite.members.web.internal.notifications.InviteMembersUserNotificationDefinition.java

License:Open Source License

public InviteMembersUserNotificationDefinition() {
    super(InviteMembersPortletKeys.INVITE_MEMBERS, 0, MembershipRequestConstants.STATUS_PENDING,
            "receive-a-notification-when-someone-sends-you-a-membership-" + "request");

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