Package org.eurekastreams.commons.actions.context

Examples of org.eurekastreams.commons.actions.context.PrincipalActionContext


            {
                // create the request
                GadgetUserPrefActionRequest request = new GadgetUserPrefActionRequest(moduleId);

                // Create the actionContext
                PrincipalActionContext ac = new ServiceActionContext(request, null);

                // execute action and return results.
                String userPrefs = (String) serviceActionController.execute((ServiceActionContext) ac,
                        getGadgetUserPrefsServiceAction);
                logger.debug("Returning the userprefs: " + userPrefs);
View Full Code Here


        {
            // create the request.
            GadgetUserPrefActionRequest currentRequest = new GadgetUserPrefActionRequest(moduleId, userPrefs);

            // Create the actionContext
            PrincipalActionContext ac = new ServiceActionContext(currentRequest, null);

            try
            {
                // execute action and return results.
                String userPrefsResults = (String) serviceActionController.execute((ServiceActionContext) ac,
View Full Code Here

            // Build up request to retrieve a single person.
            GetPeopleByOpenSocialIdsRequest currentRequest = new GetPeopleByOpenSocialIdsRequest(userIdList,
                    Type.all.toString());

            // Create the actionContext
            PrincipalActionContext ac = new ServiceActionContext(currentRequest, getPrincipal(token));

            // execute action.
            LinkedList<PersonModelView> people = (LinkedList<PersonModelView>) serviceActionController.execute(ac,
                    getPeopleAction);
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public Serializable execute(final TaskHandlerActionContext<PrincipalActionContext> inWrapperContext)
    {
        final PrincipalActionContext actionContext = inWrapperContext.getActionContext();

        Date d = new Date();
        d = logTime(d, "START");

        // add the notification to the database
        int count = (Integer) createNotificationsMapper.execute((SendPrebuiltNotificationRequest) actionContext
                .getParams());

        d = logTime(d, "created notifications (" + count + ")");

        // get list of users and refresh their notification counts
View Full Code Here

                query.put("sortBy", "date");
            }

            log.debug("Making request using: " + queryJson);

            PrincipalActionContext ac = new ServiceActionContext(queryJson.toString(),
                    principalPopulator.getPrincipal(null, null));

            PagedSet<ActivityDTO> activities = (PagedSet<ActivityDTO>) serviceActionController.execute(ac, action);

            feed.setUri(baseUrl + getRequest().getResourceRef().getPath());
View Full Code Here

TOP

Related Classes of org.eurekastreams.commons.actions.context.PrincipalActionContext

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.