Class CollectMetadataExternalResource
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
-
- fr.gouv.vitam.collect.external.external.rest.CollectMetadataExternalResource
-
@Path("/collect-external/v1") public class CollectMetadataExternalResource extends ApplicationStatusResource
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_WHEN_CREATING_AN_OBJECT_GROUP_UNIT_BY_ID
static java.lang.String
ERROR_WHEN_FETCHING_OBJECT_BY_IF
-
Fields inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
STATUS_URL, TENANTS_URL
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createObjectGroup(java.lang.String unitId, java.lang.String usageString, java.lang.Integer version, ObjectDto objectDto)
javax.ws.rs.core.Response
download(java.lang.String unitId, java.lang.String usageString, java.lang.Integer version)
javax.ws.rs.core.Response
getObjectById(java.lang.String gotId)
javax.ws.rs.core.Response
getUnitById(java.lang.String unitId)
javax.ws.rs.core.Response
upload(java.lang.String unitId, java.lang.String usageString, java.lang.Integer version, java.io.InputStream uploadedInputStream)
-
Methods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
-
-
-
Field Detail
-
ERROR_WHEN_CREATING_AN_OBJECT_GROUP_UNIT_BY_ID
public static final java.lang.String ERROR_WHEN_CREATING_AN_OBJECT_GROUP_UNIT_BY_ID
- See Also:
- Constant Field Values
-
ERROR_WHEN_FETCHING_OBJECT_BY_IF
public static final java.lang.String ERROR_WHEN_FETCHING_OBJECT_BY_IF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUnitById
@Path("/units/{unitId}") @GET @Produces("application/json") public javax.ws.rs.core.Response getUnitById(@PathParam("unitId") java.lang.String unitId)
-
createObjectGroup
@Path("/units/{unitId}/objects/{usage}/{version}") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createObjectGroup(@PathParam("unitId") java.lang.String unitId, @PathParam("usage") java.lang.String usageString, @PathParam("version") java.lang.Integer version, ObjectDto objectDto)
-
getObjectById
@Path("/objects/{gotId}") @GET @Produces("application/json") public javax.ws.rs.core.Response getObjectById(@PathParam("gotId") java.lang.String gotId)
-
upload
@Path("/units/{unitId}/objects/{usage}/{version}/binary") @POST @Consumes("application/octet-stream") @Produces("application/json") public javax.ws.rs.core.Response upload(@PathParam("unitId") java.lang.String unitId, @PathParam("usage") java.lang.String usageString, @PathParam("version") java.lang.Integer version, java.io.InputStream uploadedInputStream)
-
download
@Path("/units/{unitId}/objects/{usage}/{version}/binary") @GET @Produces("application/octet-stream") public javax.ws.rs.core.Response download(@PathParam("unitId") java.lang.String unitId, @PathParam("usage") java.lang.String usageString, @PathParam("version") java.lang.Integer version)
-
-