Package org.fusesource.restygwt.client

Examples of org.fusesource.restygwt.client.Resource



    @Override
    protected Resource resourceFor(final GetClientsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("clients").toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(TickActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest").path("activities", action.getActivity().getId(), "tick");
        return new Resource(urlBuilder.toUrl());
    }
View Full Code Here

    @Override
    protected Resource resourceFor(CopyActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest")
                .path("activities", action.getActivity().getId(), "copy", action.getPeriod());
        return new Resource(urlBuilder.toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetLatestActivityAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("activities", "latest").toUrl());
    }
View Full Code Here

    @Override
    public DispatchRequest execute(final A action, final AsyncCallback<R> resultCallback,
            final ExecuteCommand<A, R> executeCommand)
    {
        final Resource resource = resourceFor(action);
        Method method = methodFor(action, resource);
        applySecurity(action, resource, method);
        executeMethod(method, resultCallback);
        return new DispatchRequestRestletImpl(method);
    }
View Full Code Here

    @Override
    protected Resource resourceFor(DeleteActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest").path("activities", action.getActivity().getId());
        return new Resource(urlBuilder.toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetTagsAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("tags").toUrl());
    }
View Full Code Here

    @Override
    protected Resource resourceFor(StopActivityAction action)
    {
        UrlBuilder urlBuilder = new UrlBuilder().module("rest").path("activities", action.getActivity().getId(), "stop");
        return new Resource(urlBuilder.toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(FindActivityAction action)
    {
        return new Resource(new UrlBuilder().module("rest").path("activities").query("q", action.getQuery()).toUrl());
    }
View Full Code Here


    @Override
    protected Resource resourceFor(GetActivitiesAction action)
    {
        return new Resource(action.getActivitiesRequest().toUrl());
    }
View Full Code Here

TOP

Related Classes of org.fusesource.restygwt.client.Resource

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.