Examples of UserActionRequest


Examples of org.eurekastreams.commons.server.UserActionRequest

            cacheKeysToDelete.add(CacheKeys.PERSON_PAGE_PROPERTIES_BY_ID + id);
        }

        // queue up request to delete cache keys.
        inActionContext.getUserActionRequests().add(
                new UserActionRequest(deleteCacheKeysActionName, null, cacheKeysToDelete));

        // delete the gadget
        deleteThemeMapper.execute(themeId);

        return null;
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

        // trigger notification if group will be pending approval
        if (isPending)
        {
            inActionContext.getUserActionRequests().add(
                    new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null,
                            new TargetEntityNotificationsRequest(RequestType.REQUEST_NEW_GROUP, creatorPersonId,
                                    inGroup.getId())));
        }
    }
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

            d = logTime(d, "got unlocked users (" + userIds.size() + ")");

            List<UserActionRequest> actions = inWrapperContext.getUserActionRequests();
            for (Long userId : userIds)
            {
                actions.add(new UserActionRequest("refreshUserInAppNotificationCounts", null, userId));
            }

            d = logTime(d, "added async requests  [DONE]");
        }
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

        CreateNotificationsRequest notificationRequest = new CommentNotificationsRequest(requestType, personId,
                destinationId, activityId, commentId);

        // add request to queued request list
        queuedRequests.add(new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null, notificationRequest));
    }
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

     *             Shouldn't.
     */
    @Test
    public void testTemplateFound() throws MessagingException
    {
        UserActionRequest rqst = new UserActionRequest(ACTION_NAME, null, params);
        mockery.checking(new Expectations()
        {
            {
                allowing(exceptionSanitizer).transform(actionException);
                will(returnValue(cleanException));
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

     *             Shouldn't.
     */
    @Test
    public void testTemplateNotFound() throws MessagingException
    {
        UserActionRequest rqst = new UserActionRequest("SomeOther" + ACTION_NAME, null, params);
        mockery.checking(new Expectations()
        {
            {
                allowing(exceptionSanitizer).transform(actionException);
                will(returnValue(cleanException));
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

     *             Shouldn't.
     */
    @Test
    public void testException() throws MessagingException
    {
        UserActionRequest rqst = new UserActionRequest("SomeOther" + ACTION_NAME, null, params);
        mockery.checking(new Expectations()
        {
            {
                allowing(exceptionSanitizer).transform(actionException);
                will(returnValue(cleanException));
View Full Code Here

Examples of org.eurekastreams.commons.server.UserActionRequest

        // 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

Examples of org.eurekastreams.commons.server.UserActionRequest

                .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

Examples of org.eurekastreams.commons.server.UserActionRequest

    @Override
    public Serializable execute(final TaskHandlerActionContext<ActionContext> inActionContext)
    {
        if (actionKey != null && !actionKey.isEmpty())
        {
            inActionContext.getUserActionRequests().add(new UserActionRequest(actionKey, null, null));
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.