Class AgenciesResource
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.rest.AgenciesResource
-
@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class AgenciesResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AgenciesResource(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, CachedOntologyLoader agenciesOntologyLoader)
AgenciesResource(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService, CachedOntologyLoader agenciesOntologyLoader)
-
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 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, java.io.InputStream inputStream, javax.ws.rs.core.UriInfo uri)
-
-
-
Constructor Detail
-
AgenciesResource
public AgenciesResource(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, CachedOntologyLoader agenciesOntologyLoader)
-
AgenciesResource
public AgenciesResource(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService, CachedOntologyLoader agenciesOntologyLoader)
-
-
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 occurredInvalidCreateOperationException
- if exception occurred when create queryInvalidParseOperationException
- if parsing json data exception occurredReferentialException
- if exception occurred when create agency file manager
-
-