Package org.eurekastreams.server.action.request

Examples of org.eurekastreams.server.action.request.DomainGroupShortNameRequest


     * @return List with any async requests made by the SUT.
     */
    private List<UserActionRequest> callExecute()
    {
        TaskHandlerActionContext<PrincipalActionContext> actionContext = TestContextCreator
                .createTaskHandlerContextWithPrincipal(new DomainGroupShortNameRequest(GROUP_SHORTNAME),
                        USER_ACCOUNTID, USER_ID);
        sut.execute(actionContext);

        context.assertIsSatisfied();

View Full Code Here


    /**
     * {@inheritDoc}
     */
    public void insert(final String inRequest)
    {
        super.callWriteAction("sendGroupAccessRequestAction", new DomainGroupShortNameRequest(inRequest),
                new OnSuccessCommand<Boolean>()
                {
                    public void onSuccess(final Boolean response)
                    {
                        Session.getInstance()
View Full Code Here

     * @return Nothing.
     */
    @Override
    public Serializable execute(final TaskHandlerActionContext<PrincipalActionContext> inActionContext)
    {
        DomainGroupShortNameRequest request = (DomainGroupShortNameRequest) inActionContext.getActionContext()
                .getParams();
        DomainGroup target = groupMapper.findByShortName(request.getGroupShortName());
        if (null == target)
        {
            throw new IllegalArgumentException("Tried to send a request for access to an invalid group"
                    + request.getGroupShortName());
        }

        long personId = inActionContext.getActionContext().getPrincipal().getId();

        // save the request
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.DomainGroupShortNameRequest

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.