Class AgenciesResource
java.lang.Object
fr.gouv.vitam.functional.administration.rest.AgenciesResource
@Path("/adminmanagement/v1")
@ApplicationPath("webresources")
public class AgenciesResource
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
checkAgenciesFile
(InputStream agencyStream) check the agencie filejavax.ws.rs.core.Response
getAgencies
(com.fasterxml.jackson.databind.JsonNode queryDsl) find access contracts by queryDsljavax.ws.rs.core.Response
importAgencies
(javax.ws.rs.core.HttpHeaders headers, InputStream inputStream, javax.ws.rs.core.UriInfo uri)
-
Constructor Details
-
AgenciesResource
-
-
Method Details
-
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, 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(InputStream agencyStream) check the agencie file- Parameters:
agencyStream
- the stream containing agencies to be checked- Returns:
- Response
- Throws:
IOException
- convert inputstream agency to File exception occurredInvalidCreateOperationException
- if exception occurred when create queryInvalidParseOperationException
- if parsing json data exception occurredReferentialException
- if exception occurred when create agency file manager
-