Package org.eurekastreams.server.action.request.notification

Examples of org.eurekastreams.server.action.request.notification.ActivityNotificationsRequest


                allowing(followersDAO).execute(ACTOR_ID);
                will(returnValue(new ArrayList<Long>()));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, ACTOR_ID, ACTOR_ID,
                ACTIVITY_ID));

        assertNull(results);
    }
View Full Code Here


        context.assertIsSatisfied();

        assertEquals(1, userActionRequests.size());
        UserActionRequest actualQueueRqst = userActionRequests.get(0);
        assertEquals("createNotificationsAction", actualQueueRqst.getActionKey());
        assertTrue(areEqualInternally(new ActivityNotificationsRequest(RequestType.FLAG_ACTIVITY, USER_ID, 0L,
                ACTIVITY_ID), actualQueueRqst.getParams()));
    }
View Full Code Here

            insertLikedActivity.execute(likeActivityData);

            inActionContext.getUserActionRequests().add(
                    new UserActionRequest("loadLikedActivityIdsByUserId", null, userId));

            CreateNotificationsRequest notificationRequest = new ActivityNotificationsRequest(RequestType.LIKE,
                    userId, 0L, request.getActivityId());
            inActionContext.getUserActionRequests().add(
                    new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null, notificationRequest));
        }
        else
View Full Code Here

        }

        // Setup the queued requests.
        if (requestType != null)
        {
            CreateNotificationsRequest notificationRequest = new ActivityNotificationsRequest(requestType, actorId,
                    destinationId, persistedActivityDTO.getEntityId());
            queueRequests
                    .add(new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null, notificationRequest));
        }
        // TODO: fix this so activityDTO fields related to specific user
View Full Code Here

        // trigger notification on activity being flagged
        if (toFlag && updated)
        {
            inActionContext.getUserActionRequests().add(
                    new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                            new ActivityNotificationsRequest(RequestType.FLAG_ACTIVITY, inActionContext
                                    .getActionContext().getPrincipal().getId(), 0L, activityId)));
        }

        return toFlag;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.notification.ActivityNotificationsRequest

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.