Class WebApplicationResourceDelete
- java.lang.Object
-
- fr.gouv.vitam.ihmrecette.appserver.WebApplicationResourceDelete
-
@Path("/v1/api/delete") public class WebApplicationResourceDelete extends java.lang.Object
Web Application Resource class for delete features
-
-
Constructor Summary
Constructors Constructor Description WebApplicationResourceDelete(WebApplicationConfig webApplicationConfig, OntologyLoader ontologyLoader, FunctionalAdminIndexationConfiguration functionalAdminFunctionalAdminIndexationConfiguration, MetadataIndexationConfiguration metadataMetadataIndexationConfiguration, LogbookIndexationConfiguration logbookLogbookIndexationConfiguration)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteAccessionRegister()
Delete the referential accession register in databasevoid
deleteAccessionRegister(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
void
deleteAccessionRegisterSummary(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
javax.ws.rs.core.Response
deleteAll()
Delete all collection in databasejavax.ws.rs.core.Response
deleteAndImportOntologies(javax.servlet.http.HttpServletRequest request)
Delete the EXTERNAL entries for the ontology collection and reimport the INTERNAL entriesjavax.ws.rs.core.Response
deleteFormat()
Delete the referential format in the basejavax.ws.rs.core.Response
deleteGriffins(javax.servlet.http.HttpServletRequest request)
javax.ws.rs.core.Response
deleteLogbookLifecycleOG()
Delete the logbook lifecyle for objectgroup in databasejavax.ws.rs.core.Response
deleteLogbookLifecycleUnit()
Delete the logbook lifecycle for unit in databasejavax.ws.rs.core.Response
deleteLogbookOperation()
Delete the logbook operation in databasevoid
deleteLogbookoperations(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
javax.ws.rs.core.Response
deleteMasterdaAccessContract()
Delete the masterdata for accessContract in databasejavax.ws.rs.core.Response
deleteMasterdaIngestContract()
Delete the masterdata for ingestContract in databasejavax.ws.rs.core.Response
deleteMasterdaManagementContract()
Delete the masterdata for managementContract in databasejavax.ws.rs.core.Response
deleteMasterdataAgencies()
Delete the masterdata for agencies in databasejavax.ws.rs.core.Response
deleteMasterdataArchiveUnitProfile()
Delete the masterdata for archive unit profile in databasejavax.ws.rs.core.Response
deleteMasterdataContext()
Delete all entries for the context collection except the "admin" contextjavax.ws.rs.core.Response
deleteMasterdataProfile()
Delete the masterdata for profile in databasejavax.ws.rs.core.Response
deleteMasterdataSecurityProfil()
Delete all entries for the context collection except the "admin" contextvoid
deleteMetadaOg(java.lang.Integer tenantId, java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
javax.ws.rs.core.Response
deleteMetadataObjectGroup()
Delete the metadata for objectgroup in databasejavax.ws.rs.core.Response
deleteMetadataUnit()
Delete the metadata for unit in databasevoid
deleteMetadaUnit(java.lang.Integer tenantId, java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
void
deleteRules(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
javax.ws.rs.core.Response
deleteRulesFile()
Delete the referential rules in the basejavax.ws.rs.core.Response
deleteScenarios(javax.servlet.http.HttpServletRequest request)
MongoDbAccess
getMongoDbAccessAdmin()
Get mongoDb accessjavax.ws.rs.core.Response
purgeDataForTnr()
Deprecated.Delete for tnr use only for tnr
-
-
-
Constructor Detail
-
WebApplicationResourceDelete
public WebApplicationResourceDelete(WebApplicationConfig webApplicationConfig, OntologyLoader ontologyLoader, FunctionalAdminIndexationConfiguration functionalAdminFunctionalAdminIndexationConfiguration, MetadataIndexationConfiguration metadataMetadataIndexationConfiguration, LogbookIndexationConfiguration logbookLogbookIndexationConfiguration)
Default constructor- Parameters:
webApplicationConfig
- application configurationontologyLoader
-
-
-
Method Detail
-
getMongoDbAccessAdmin
public MongoDbAccess getMongoDbAccessAdmin()
Get mongoDb access- Returns:
- the mongoDb access
-
deleteFormat
@Path("formats") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteFormat()
Delete the referential format in the base- Returns:
- Response
-
deleteRulesFile
@Path("rules") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteRulesFile()
Delete the referential rules in the base- Returns:
- Response
-
deleteAccessionRegister
@Path("accessionregisters") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteAccessionRegister()
Delete the referential accession register in database- Returns:
- Response
-
deleteLogbookOperation
@Path("logbook/operation") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteLogbookOperation()
Delete the logbook operation in database- Returns:
- Response
-
deleteLogbookLifecycleOG
@Path("logbook/lifecycle/objectgroup") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteLogbookLifecycleOG()
Delete the logbook lifecyle for objectgroup in database- Returns:
- Response
-
deleteLogbookLifecycleUnit
@Path("logbook/lifecycle/unit") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteLogbookLifecycleUnit()
Delete the logbook lifecycle for unit in database- Returns:
- Response
-
deleteMetadataObjectGroup
@Path("metadata/objectgroup") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMetadataObjectGroup()
Delete the metadata for objectgroup in database- Returns:
- Response
-
deleteMetadataUnit
@Path("metadata/unit") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMetadataUnit()
Delete the metadata for unit in database- Returns:
- Response
-
deleteMasterdaAccessContract
@Path("masterdata/accessContract") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdaAccessContract()
Delete the masterdata for accessContract in database- Returns:
- Response
-
deleteMasterdaIngestContract
@Path("masterdata/ingestContract") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdaIngestContract()
Delete the masterdata for ingestContract in database- Returns:
- Response
-
deleteMasterdaManagementContract
@Path("masterdata/managementContract") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdaManagementContract()
Delete the masterdata for managementContract in database- Returns:
- Response
-
deleteMasterdataProfile
@Path("masterdata/profile") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdataProfile()
Delete the masterdata for profile in database- Returns:
- Response
-
deleteMasterdataArchiveUnitProfile
@Path("masterdata/archiveUnitProfile") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdataArchiveUnitProfile()
Delete the masterdata for archive unit profile in database- Returns:
- Response
-
deleteMasterdataAgencies
@Path("masterdata/agencies") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdataAgencies()
Delete the masterdata for agencies in database- Returns:
- Response
-
deleteMasterdataContext
@Path("masterdata/context") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdataContext()
Delete all entries for the context collection except the "admin" context- Returns:
- Response
-
deleteMasterdataSecurityProfil
@Path("masterdata/securityProfil") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteMasterdataSecurityProfil()
Delete all entries for the context collection except the "admin" context- Returns:
- Response
-
deleteAndImportOntologies
@Path("masterdata/ontologies") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteAndImportOntologies(@Context javax.servlet.http.HttpServletRequest request) throws java.io.IOException
Delete the EXTERNAL entries for the ontology collection and reimport the INTERNAL entries- Returns:
- Response
- Throws:
java.io.IOException
-
deleteGriffins
@Path("masterdata/griffins") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteGriffins(@Context javax.servlet.http.HttpServletRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
deleteScenarios
@Path("masterdata/scenarios") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteScenarios(@Context javax.servlet.http.HttpServletRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
purgeDataForTnr
@Path("deleteTnr") @DELETE @Produces("application/json") public javax.ws.rs.core.Response purgeDataForTnr()
Deprecated.Delete for tnr use only for tnr
-
deleteAll
@DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteAll()
Delete all collection in database- Returns:
- Response
-
deleteMetadaOg
public void deleteMetadaOg(java.lang.Integer tenantId, java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
-
deleteMetadaUnit
public void deleteMetadaUnit(java.lang.Integer tenantId, java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
-
deleteRules
public void deleteRules(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
-
deleteAccessionRegisterSummary
public void deleteAccessionRegisterSummary(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
-
deleteAccessionRegister
public void deleteAccessionRegister(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
-
deleteLogbookoperations
public void deleteLogbookoperations(java.util.List<java.lang.String> collectionKO, LogbookOperationParameters parameters, LogbookOperationsClientHelper helper)
-
-