Package org.eurekastreams.commons.server

Examples of org.eurekastreams.commons.server.UserActionRequest


     */
    @Override
    public List<UserActionRequest> getUpdateCacheRequests(final Principal inUser, final Long inPersonId)
    {
        List<UserActionRequest> results = new ArrayList<UserActionRequest>(3);
        results.add(new UserActionRequest(ASYNC_ACTION_NAME, null, inPersonId));

        // the next async action needs the account id
        List<Long> peopleIds = new ArrayList<Long>();
        peopleIds.add(inPersonId);
        List<PersonModelView> people = getPeopleByIdsMapper.execute(peopleIds);

        results.add(new UserActionRequest(ASYNC_PERSONAL_STREAM_POSTS_ACTION_NAME, null, people.get(0).getAccountId()));
        return results;
    }
View Full Code Here


        for (String key : actionKeys)
        {
            if (key != null && !key.isEmpty())
            {
                log.info("Queueing up action: " + key);
                inActionContext.getUserActionRequests().add(new UserActionRequest(key, null, null));
            }
        }
        return null;
    }
View Full Code Here

                // get the message containing the request off the queue
                ObjectMessage objectMessage = (ObjectMessage) message;

                // pull the request out of the message
                UserActionRequest userActionRequest = (UserActionRequest) objectMessage.getObject();

                log.debug("found action " + userActionRequest.getActionKey());

                // run the action.
                taskHandler.handleTask(userActionRequest);
            }
            else
View Full Code Here

        }

        // put the cache warming action on the queue.
        try
        {
            inActionSubmitter.handleTask(new UserActionRequest("initializeCache", null, null));
        }
        catch (Exception ex)
        {
            logger.error("Error occurred initializing cache", ex);
        }
View Full Code Here

                        + "'.  Queuing up activityRecipientDomainGroupNameUpdaterAsyncAction async task to update "
                        + "all activities posted to this group.");

                // group name updated - kick off a task to update all activities posted to the group
                inActionContext.getUserActionRequests().add(
                        new UserActionRequest("activityRecipientDomainGroupNameUpdaterAsyncAction", null, inGroup
                                .getShortName()));
            }
        }
        catch (InvalidStateException e)
        {
View Full Code Here

     */
    public ActionSubmitterJob(final String actionName, final TaskHandler taskHandler)
    {
        setTargetObject(taskHandler);
        setTargetMethod("handleTask");
        setArguments(new Object[] { new UserActionRequest(actionName, null, null) });
        setConcurrent(false);
    }
View Full Code Here

        // get and queue list of tabs to update
        Collection<CompressGadgetZoneRequest> tabs = tabListMapper.execute(gadgetDefinitionId);
        for (CompressGadgetZoneRequest tab : tabs)
        {
            inActionContext.getUserActionRequests().add(new UserActionRequest(nextAction, null, tab));
        }

        // delete the gadget
        deleteGadgetDefinitionMapper.execute(gadgetDefinitionId);
View Full Code Here

        for (Serializable objectKey : objectKeys)
        {
            for (String actionKey : actionKeys)
            {
                tasks.add(new UserActionRequest(actionKey, null, objectKey));
            }
        }

        return null;
    }
View Full Code Here

            }
            log.info("Scheduling action named '" + actionName + "' with params: " + params
                    + " for async processing.");
        }
        inActionContext.getUserActionRequests().add(
                new UserActionRequest(actionName, null, inActionContext.getActionContext().getParams()));

        return null;
    }
View Full Code Here

        // hide definition until we can delete it (asynchronously)
        GalleryItem galleryItem = galleryItemMapper.findById(galleryItemId);
        galleryItem.setShowInGallery(false);

        inActionContext.getUserActionRequests().add(new UserActionRequest(nextAction, null, galleryItemId));

        return null;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.commons.server.UserActionRequest

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.