Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.InAppNotificationDTO


     * Tests execute.
     */
    @Test
    public void testExecute()
    {
        final InAppNotificationDTO notif1 = new InAppNotificationDTO();
        notif1.setAvatarOwnerType(EntityType.PERSON);
        notif1.setAvatarOwnerUniqueId("knownperson");
        notif1.setNotificationType(NotificationType.COMMENT_TO_PERSONAL_POST);
        final InAppNotificationDTO notif2 = new InAppNotificationDTO();
        notif2.setAvatarOwnerType(EntityType.GROUP);
        notif2.setAvatarOwnerUniqueId("knowngroup");
        notif2.setNotificationType(NotificationType.REQUEST_GROUP_ACCESS);
        final InAppNotificationDTO notif3 = new InAppNotificationDTO();
        notif3.setAvatarOwnerType(EntityType.NOTSET);
        notif3.setNotificationType(NotificationType.FOLLOW_GROUP);
        final InAppNotificationDTO notif4 = new InAppNotificationDTO();
        notif4.setAvatarOwnerType(EntityType.PERSON);
        notif4.setAvatarOwnerUniqueId("unknownperson");
        notif4.setNotificationType(NotificationType.PASS_THROUGH);
        final InAppNotificationDTO notif5 = new InAppNotificationDTO();
        notif5.setAvatarOwnerType(EntityType.GROUP);
        notif5.setAvatarOwnerUniqueId("avatarlessgroup");
        notif5.setNotificationType(NotificationType.COMMENT_TO_COMMENTED_POST);

        final PersonModelView person = new PersonModelView();
        person.setAccountId("knownperson");
        person.setAvatarId("avatar1");
        final DomainGroupModelView group = new DomainGroupModelView();
View Full Code Here


     * @return Notification.
     */
    private InAppNotificationDTO makeNotif(final EntityType entityType, final String uniqueId, final boolean unread,
            final String name)
    {
        return new InAppNotificationDTO(0, null, null, null, null, false, !unread, entityType, uniqueId, name, null,
                null);
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.InAppNotificationDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.