All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sistcoop.admin.client.resource.DocumentResource Maven / Gradle / Ivy

There is a newer version: 1.1.3.Final
Show newest version
package org.sistcoop.admin.client.resource;

import org.openfact.representations.idm.DocumentRepresentation;
import org.openfact.representations.idm.SendEventRepresentation;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.List;

@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public interface DocumentResource {

    @GET
    DocumentRepresentation toRepresentation();

    @PUT
    void update(DocumentRepresentation documentRepresentation);

    @DELETE
    void remove();

    @Path("report")
    @GET
    Response report();

    @GET
    @Path("representation/xml")
    @Produces("application/xml")
    Response getXml();

    @POST
    @Path("send-to-customer")
    void sendToCustomer();

    @POST
    @Path("send-to-third-party")
    void sendToThirdParty();

    @POST
    @Path("send-to-third-party-by-email")
    void sendToThirdPartyByEmail();

    @GET
    @Path("send-events")
    List getSendEvents(@QueryParam("destinyType") String destinyType,
                                                @QueryParam("result") String result,
                                                @QueryParam("first") Integer firstResult,
                                                @QueryParam("max") Integer maxResults);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy