Class AgenciesResource


  • @Path("/adminmanagement/v1")
    @ApplicationPath("webresources")
    public class AgenciesResource
    extends java.lang.Object
    • Method Detail

      • importAgencies

        @Path("/agencies/import")
        @POST
        @Consumes("application/octet-stream")
        @Produces("application/json")
        public javax.ws.rs.core.Response importAgencies​(@Context
                                                        javax.ws.rs.core.HttpHeaders headers,
                                                        java.io.InputStream inputStream,
                                                        @Context
                                                        javax.ws.rs.core.UriInfo uri)
      • getAgencies

        @Path("/agencies")
        @GET
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAgencies​(com.fasterxml.jackson.databind.JsonNode queryDsl)
        find access contracts by queryDsl
        Parameters:
        queryDsl -
        Returns:
        Response
      • checkAgenciesFile

        @Path("/agencies/check")
        @POST
        @Consumes("application/octet-stream")
        @Produces("application/octet-stream")
        public javax.ws.rs.core.Response checkAgenciesFile​(java.io.InputStream agencyStream)
        check the agencie file
        Parameters:
        agencyStream - the stream containing agencies to be checked
        Returns:
        Response
        Throws:
        java.io.IOException - convert inputstream agency to File exception occurred
        InvalidCreateOperationException - if exception occurred when create query
        InvalidParseOperationException - if parsing json data exception occurred
        ReferentialException - if exception occurred when create agency file manager