Examples of TaskHandlerServiceAction


Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

     * Test.
     */
    @Test(expected = InvalidActionException.class)
    public void testExecuteTHMissingValidation()
    {
        TaskHandlerAction action = new TaskHandlerServiceAction(null, authorizationStrategy,
                taskHandlerExecutionStrategy, taskHandlerMock, false);
        sut.execute(new ServiceActionContext(null, principalMock), action);
        mockery.assertIsSatisfied();
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

     * Test.
     */
    @Test(expected = InvalidActionException.class)
    public void testExecuteTHMissingAuthorization()
    {
        TaskHandlerAction action = new TaskHandlerServiceAction(validationStrategy, null,
                taskHandlerExecutionStrategy, taskHandlerMock, false);
        sut.execute(new ServiceActionContext(null, principalMock), action);
        mockery.assertIsSatisfied();
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

     * Test.
     */
    @Test(expected = InvalidActionException.class)
    public void testExecuteTHMissingExecution()
    {
        TaskHandlerAction action = new TaskHandlerServiceAction(validationStrategy, authorizationStrategy, null,
                taskHandlerMock, false);
        sut.execute(new ServiceActionContext(null, principalMock), action);
        mockery.assertIsSatisfied();
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

     * Test.
     */
    @Test(expected = InvalidActionException.class)
    public void testExecuteTHMissingTaskHandler()
    {
        TaskHandlerAction action = new TaskHandlerServiceAction(validationStrategy, authorizationStrategy,
                taskHandlerExecutionStrategy, null, false);
        sut.execute(new ServiceActionContext(null, principalMock), action);
        mockery.assertIsSatisfied();
    }
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

            }
            return serviceActionController.execute(actionContext, action);
        }
        else if (springBean instanceof TaskHandlerServiceAction)
        {
            TaskHandlerServiceAction action = (TaskHandlerServiceAction) springBean;
            if (readOnly && !action.isReadOnly())
            {
                throw new ExecutionException(String.format("Action '%s' is not read-only.", actionName));
            }
            return serviceActionController.execute(actionContext, action);
        }
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

                ServiceAction action = (ServiceAction) springBean;
                serviceActionController.execute(actionContext, action);
            }
            else if (springBean instanceof TaskHandlerServiceAction)
            {
                TaskHandlerServiceAction action = (TaskHandlerServiceAction) springBean;
                serviceActionController.execute(actionContext, action);
            }
            else
            {
                throw new ExecutionException("Bean '" + actionSelection.getActionKey()
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

                actionContext.setActionId(actionRequest.getActionKey());
                result = serviceActionController.execute(actionContext, action);
            }
            else if (springBean instanceof TaskHandlerServiceAction)
            {
                TaskHandlerServiceAction action = (TaskHandlerServiceAction) springBean;

                // grab serializable parameter object.
                Serializable actionParameter = actionRequest.getParam();

                ServiceActionContext actionContext = new ServiceActionContext(actionParameter,
View Full Code Here

Examples of org.eurekastreams.commons.actions.service.TaskHandlerServiceAction

                }
                result = serviceActionController.execute(actionContext, action);
            }
            else if (springBean instanceof TaskHandlerServiceAction)
            {
                TaskHandlerServiceAction action = (TaskHandlerServiceAction) springBean;
                if (readOnly && !action.isReadOnly())
                {
                    throw new IllegalStateException("Action requested is not read-only.");
                }
                result = serviceActionController.execute(actionContext, action);
            }
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.