Package fr.gouv.vitam.metadata.rest
Class MetadataRawResource
java.lang.Object
fr.gouv.vitam.metadata.rest.MetadataRawResource
-
Constructor Summary
ConstructorDescriptionMetadataRawResource
(VitamRepositoryProvider vitamRepositoryProvider) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getBulkRawObjectGroupsByIds
(com.fasterxml.jackson.databind.JsonNode body) Get ObjectGroups as raw datajavax.ws.rs.core.Response
getBulkRawUnitByIds
(com.fasterxml.jackson.databind.JsonNode body) Get Units as raw datajavax.ws.rs.core.Response
getObjectGroupById
(String objectGroupId) Get ObjectGroup as raw datajavax.ws.rs.core.Response
getUnitById
(String unitId) Get Unit as raw data
-
Constructor Details
-
MetadataRawResource
Constructor- Parameters:
vitamRepositoryProvider
- vitam repository provider
-
-
Method Details
-
getUnitById
@Path("/raw/units/{id_unit}") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getUnitById(@PathParam("id_unit") String unitId) Get Unit as raw data- Parameters:
unitId
- the unit id to get- Returns:
Response
contains a request response json filled with unit result
-
getObjectGroupById
@Path("/raw/objectgroups/{id_og}") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getObjectGroupById(@PathParam("id_og") String objectGroupId) Get ObjectGroup as raw data- Parameters:
objectGroupId
- the objectGroup ID to get- Returns:
Response
contains a request response json filled with object group result
-
getBulkRawUnitByIds
@Path("/raw/units") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getBulkRawUnitByIds(com.fasterxml.jackson.databind.JsonNode body) Get Units as raw data- Returns:
Response
contains a request response json filled with unit result
-
getBulkRawObjectGroupsByIds
@Path("/raw/objectgroups") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getBulkRawObjectGroupsByIds(com.fasterxml.jackson.databind.JsonNode body) Get ObjectGroups as raw data- Returns:
Response
contains a request response json filled with object group result
-