Package fr.gouv.vitam.metadata.rest
Class MetadataManagementResource
- java.lang.Object
-
- fr.gouv.vitam.metadata.rest.MetadataManagementResource
-
@Path("/metadata/v1") public class MetadataManagementResource 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
computeGraph(GraphComputeResponse.GraphComputeAction action, java.util.Set<java.lang.String> documentsId)
API to access and launch the Vitam graph builder service for metadatas.javax.ws.rs.core.Response
computeGraphByDSL(java.lang.Integer xTenantId, com.fasterxml.jackson.databind.JsonNode queryDsl)
API to access and launch the Vitam graph builder service for metadatas.javax.ws.rs.core.Response
computeGraphByDSLInProgress()
Check if graph builder is in progress.javax.ws.rs.core.Response
exportReclassificationChildNodes(ReclassificationChildNodeExportRequest request)
Export child nodes of units to reclassify for graph update into workspaces.javax.ws.rs.core.Response
migrationPurgeDipFilesFromOffers()
javax.ws.rs.core.Response
processObsoleteComputedInheritedRules()
javax.ws.rs.core.Response
purgeExpiredDipFiles()
javax.ws.rs.core.Response
purgeExpiredTransfersSIPFiles()
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 metadatas.javax.ws.rs.core.Response
storeGraph()
API to access and launch the Vitam store graph service for metadatas.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") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response reconstructCollection(java.util.List<ReconstructionRequestItem> reconstructionItems)
API to access and launch the Vitam reconstruction service for metadatas.- Parameters:
reconstructionItems
- list of reconstruction request items- Returns:
- the response
-
storeGraph
@Path("/storegraph") @GET @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response storeGraph()
API to access and launch the Vitam store graph service for metadatas.- Returns:
- the response
-
storeGraphInProgress
@Path("/storegraph/progress") @GET @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response storeGraphInProgress()
Check if store graph is in progress.- Returns:
- the response
-
computeGraphByDSL
@Path("/computegraph") @POST @Consumes("application/json") @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response computeGraphByDSL(@HeaderParam("X-Tenant-Id") java.lang.Integer xTenantId, com.fasterxml.jackson.databind.JsonNode queryDsl)
API to access and launch the Vitam graph builder service for metadatas.- Returns:
- the response
-
computeGraphByDSLInProgress
@Path("/computegraph/progress") @GET @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response computeGraphByDSLInProgress()
Check if graph builder is in progress.- Returns:
- the response
-
computeGraph
@Path("/computegraph/{collection:UNIT|OBJECTGROUP|UNIT_OBJECTGROUP}") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response computeGraph(@PathParam("collection") GraphComputeResponse.GraphComputeAction action, java.util.Set<java.lang.String> documentsId)
API to access and launch the Vitam graph builder service for metadatas.- Returns:
- the response
-
exportReclassificationChildNodes
@Path("exportReclassificationChildNodes") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response exportReclassificationChildNodes(ReclassificationChildNodeExportRequest request)
Export child nodes of units to reclassify for graph update into workspaces.- Returns:
- the response (200 or KO)
-
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
-
processObsoleteComputedInheritedRules
@Path("/units/computedInheritedRules/processObsoletes") @POST @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response processObsoleteComputedInheritedRules()
-
purgeExpiredDipFiles
@Path("/purgeDIP") @DELETE @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response purgeExpiredDipFiles()
-
purgeExpiredTransfersSIPFiles
@Path("/purgeTransfersSIP") @DELETE @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response purgeExpiredTransfersSIPFiles()
-
migrationPurgeDipFilesFromOffers
@Path("/migrationDeleteDipFromOffers") @DELETE @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response migrationPurgeDipFilesFromOffers()
-
-