Package org.eurekastreams.commons.actions.context.async

Examples of org.eurekastreams.commons.actions.context.async.AsyncActionContext


        {
            throw new ExecutionException("Incorrect action execution invocation.  "
                    + "Execution requires principal but none was provided on call.");
        }
        ActionContext innerContext = hasPrincipalContext ? new ServiceActionContext(params,
                ((PrincipalActionContext) inInnerContext).getPrincipal()) : new AsyncActionContext(params);

        if (taskHandlerExecution != null)
        {
            TaskHandlerActionContext outerContext = new TaskHandlerActionContextImpl<ActionContext>(innerContext,
                    inActionContext.getUserActionRequests());
View Full Code Here


            throw new ExecutionException("Incorrect action execution invocation.  Execution requires user action "
                    + "request list (TaskHandlerActionContext) but none was provided on call.");
        }

        ActionContext context = hasPrincipalContext ? new ServiceActionContext(params,
                ((PrincipalActionContext) inActionContext).getPrincipal()) : new AsyncActionContext(params);

        return plainExecution.execute(context);
    }
View Full Code Here

        try
        {
            if (springBean instanceof AsyncAction)
            {
                AsyncAction action = (AsyncAction) springBean;
                AsyncActionContext actionContext = new AsyncActionContext(inUserActionRequest.getParams());
                actionContext.setActionId(actionKey);
                actionController.execute(actionContext, action);
            }
            else if (springBean instanceof TaskHandlerAsyncAction)
            {
                TaskHandlerAsyncAction action = (TaskHandlerAsyncAction) springBean;
                AsyncActionContext actionContext = new AsyncActionContext(inUserActionRequest.getParams());
                actionContext.setActionId(actionKey);
                actionController.execute(actionContext, action);
            }
            else
            {
                throw new IllegalArgumentException("Supplied bean is not an executable async action.");
View Full Code Here

TOP

Related Classes of org.eurekastreams.commons.actions.context.async.AsyncActionContext

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.