Package fr.gouv.vitam.metadata.rest
Class MetadataReconstructionResource
- java.lang.Object
-
- fr.gouv.vitam.metadata.rest.MetadataReconstructionResource
-
@Path("/v1") public class MetadataReconstructionResource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OBJECTGROUP
static java.lang.String
UNIT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
purgeReconstructedDocumentsWithGraphOnlyData(GraphComputeResponse.GraphComputeAction action)
API to purge documents reconstructed but having only graph data This will remove all documents older than a configured delay (deleteIncompleteReconstructedUnitDelay) in vitam confjavax.ws.rs.core.Response
reconstructCollection(java.util.List<ReconstructionRequestItem> reconstructionItems)
API to access and launch the Vitam reconstruction service for metadata.javax.ws.rs.core.Response
storeGraph()
API to access and launch the Vitam store graph service for metadata.javax.ws.rs.core.Response
storeGraphInProgress()
Check if store graph is in progress.
-
-
-
Field Detail
-
OBJECTGROUP
public static final java.lang.String OBJECTGROUP
- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
reconstructCollection
@Path("/reconstruction") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response reconstructCollection(java.util.List<ReconstructionRequestItem> reconstructionItems)
API to access and launch the Vitam reconstruction service for metadata.- Parameters:
reconstructionItems
- list of reconstruction request items- Returns:
- the response
-
storeGraph
@Path("/storegraph") @GET @Produces("application/json") public javax.ws.rs.core.Response storeGraph()
API to access and launch the Vitam store graph service for metadata.- Returns:
- the response
-
storeGraphInProgress
@Path("/storegraph/progress") @GET @Produces("application/json") public javax.ws.rs.core.Response storeGraphInProgress()
Check if store graph is in progress.- Returns:
- the response
-
purgeReconstructedDocumentsWithGraphOnlyData
@Path("/purgeGraphOnlyDocuments/{collection:UNIT|OBJECTGROUP|UNIT_OBJECTGROUP}") @DELETE @Produces("application/json") public javax.ws.rs.core.Response purgeReconstructedDocumentsWithGraphOnlyData(@PathParam("collection") GraphComputeResponse.GraphComputeAction action)
API to purge documents reconstructed but having only graph data This will remove all documents older than a configured delay (deleteIncompleteReconstructedUnitDelay) in vitam conf- Returns:
- the response
-
-