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

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


        final String clientId = "CLIENT_ID";
        final long recipientId = 80L;
        final String message = "MESSAGE";
        final String url = "http://www.eurekastreams.org";

        PrebuiltNotificationsRequest request = new PrebuiltNotificationsRequest(RequestType.EXTERNAL_PRE_BUILT, true,
                clientId, recipientId, message, url);

        NotificationBatch results = sut.translate(request);

        assertEquals(1, results.getRecipients().size());
View Full Code Here


        List<UserActionRequest> requests = ctx.getUserActionRequests();
        assertEquals(1, requests.size());
        UserActionRequest request = requests.get(0);
        assertEquals("createNotificationsAction", request.getActionKey());
        PrebuiltNotificationsRequest expected = new PrebuiltNotificationsRequest(RequestType.EXTERNAL_PRE_BUILT, true,
                CLIENT_ID, RECIPIENT_ID, MESSAGE, URL);
        assertTrue(IsEqualInternally.areEqualInternally(expected, request.getParams()));
    }
View Full Code Here

        PersonModelView recipient = (PersonModelView) actionContext.getState().get("recipient");
        long recipientId = recipient != null ? recipient.getId() : personIdMapper.execute(params
                .getRecipientAccountId());

        PrebuiltNotificationsRequest notifRequest = new PrebuiltNotificationsRequest(RequestType.EXTERNAL_PRE_BUILT,
                params.isHighPriority(), clientId, recipientId, params.getMessage(), params.getUrl());
        inWrapperContext.getUserActionRequests().add(
                new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null, notifRequest));

        return null;
View Full Code Here

TOP

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

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.