Class AgenciesResource


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response checkAgenciesFile​(java.io.InputStream agencyStream)
      check the agencie file
      javax.ws.rs.core.Response getAgencies​(com.fasterxml.jackson.databind.JsonNode queryDsl)
      find access contracts by queryDsl
      javax.ws.rs.core.Response importAgencies​(javax.ws.rs.core.HttpHeaders headers, java.io.InputStream inputStream, javax.ws.rs.core.UriInfo uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AgenciesResource

        public AgenciesResource​(AgenciesService agenciesService)
    • 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