# Deprecated API

## Contents

- Terminally Deprecated
- Classes
- Methods
- Enum Constants

- Terminally Deprecated Elements
  Element
  Description
  fr.gouv.vitam.collect.external.client.CollectExternalClient.updateUnits(VitamContext, String, InputStream)
  Use updateUnitsWithCsvMetadata() or updateUnitsWithJsonlMetadata() instead.
  fr.gouv.vitam.collect.external.client.CollectExternalClient.uploadProjectZip(VitamContext, String, InputStream)
  Use uploadZipToTransaction() instead.
  fr.gouv.vitam.collect.external.external.rest.TransactionExternalResource.updateUnits(String, InputStream)
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getActivationdate()
  since 8.0, replaced with `AbstractContractModel.getActivationDate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getCreationdate()
  since 8.0, replaced with `AbstractContractModel.getCreationDate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getDeactivationdate()
  since 8.0, replaced with `AbstractContractModel.getDeactivationDate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getLastupdate()
  since 8.0, replaced with `AbstractContractModel.getLastUpdate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setActivationdate(String)
  since 8.0, replaced with `AbstractContractModel.setActivationDate(String activationDate)`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setCreationdate(String)
  since 8.0, replaced with `AbstractContractModel.setCreationDate(String creationDate)`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setDeactivationdate(String)
  since 8.0, replaced with `AbstractContractModel.setDeactivationDate(String deactivationDate)`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setLastupdate(String)
  since 8.0, replaced with `AbstractContractModel.setLastUpdate(String lastUpdate)`
  fr.gouv.vitam.common.model.administration.AccessContractModel.isEveryDataObjectVersion()
  since 8.0, replaced with `AccessContractModel.getEveryDataObjectVersion()`

- Deprecated Classes
  Class
  Description
  fr.gouv.vitam.common.model.unit.ReferencedObjectTypeModel
  Old Signature.ReferencedObject model (Seda 2.1 invalid input: '&' 2.2). Superseded by SigningInformation model in Seda 2.3+.
  fr.gouv.vitam.common.model.unit.SignatureTypeModel
  Old Signature model (Seda 2.1 invalid input: '&' 2.2). Superseded by SigningInformation model in Seda 2.3+.
  fr.gouv.vitam.common.model.unit.SignedObjectDigestModel
  Old Signature.SignedObjectDigest model (Seda 2.1 invalid input: '&' 2.2). * Old Signature model (Seda 2.1 invalid input: '&' 2.2). Superseded by SigningInformation model in Seda 2.3+.
  fr.gouv.vitam.logbook.common.parameters.LogbookLifeCyclesClientHelper
  fr.gouv.vitam.metadata.core.database.collections.MongoDbMetadataHelper
  use `MongoDbMetadataRepository`
  fr.gouv.vitam.worker.core.utils.FastValueAccessMap
  Hacky implementation for HashMap with fast "containsKey" O(1) method. Refactoring existing code is too risky and requires a full rewrite of ExtractSedaActionHandler and ArchiveUnitListener classes. Entry values are stored in a dedicated Map of Key to Integer Counter that tracks the values and their reference count. Null values are wrapped over a NULL_VALUE_OBJ object because HashMap implementation does not support nulls are keys. Sorry for the inconvenience.

- Deprecated Methods
  Method
  Description
  fr.gouv.vitam.access.external.client.AccessExternalClient.updateUnitbyId(VitamContext, JsonNode, String)
  This Method is no longer maintained and is no longer acceptable for updating units.

  Use `AccessExternalClient.massUpdateUnits(VitamContext, JsonNode)` or `AccessExternalClient.massUpdateUnitsRules(VitamContext, JsonNode)` instead.

  fr.gouv.vitam.access.external.client.AdminExternalClient.checkTraceabilityOperation(VitamContext, JsonNode)
  fr.gouv.vitam.access.external.client.AdminExternalClientRest.checkTraceabilityOperation(VitamContext, JsonNode)
  fr.gouv.vitam.access.external.rest.AccessExternalResource.updateUnitById(JsonNode, String)
  This Method is no longer maintained and is no longer acceptable for updating units.

  Use `AccessExternalResource.massUpdateUnits(JsonNode)` or `AccessExternalResource.massUpdateUnitsRules(MassUpdateUnitRuleRequest)` instead.

  fr.gouv.vitam.access.external.rest.AdminManagementExternalResource.checkOperationTraceability(JsonNode)
  fr.gouv.vitam.collect.external.client.CollectExternalClient.updateUnits(VitamContext, String, InputStream)
  Use updateUnitsWithCsvMetadata() or updateUnitsWithJsonlMetadata() instead.
  fr.gouv.vitam.collect.external.client.CollectExternalClient.uploadProjectZip(VitamContext, String, InputStream)
  Use uploadZipToTransaction() instead.
  fr.gouv.vitam.collect.external.external.rest.TransactionExternalResource.updateUnits(String, InputStream)
  fr.gouv.vitam.collect.internal.core.repository.TransactionRepository.replaceTransactions(List<TransactionModel>)
  : FIXME : Update only if "version = version - 1";
  fr.gouv.vitam.collect.internal.core.service.TransactionService.findLastTransactionByProjectId(String)
  fr.gouv.vitam.collect.internal.rest.ProjectInternalResource.getUnitsByProjectId(String, JsonNode)
  fr.gouv.vitam.common.database.builder.query.QueryHelper.missing(String)
  Use $not + $exists
  fr.gouv.vitam.common.database.builder.query.QueryHelper.size(String, long)
  fr.gouv.vitam.common.database.builder.query.VitamFieldsHelper.all()
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.query.VitamFieldsHelper.cache()
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.query.VitamFieldsHelper.dua()
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.query.VitamFieldsHelper.nbunits()
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.query.VitamFieldsHelper.nocache()
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.query.VitamFieldsHelper.parentOriginatingAgencies()
  Will be removed in future releases.
  fr.gouv.vitam.common.external.client.ClientMockResultHelper.getLogbookResults()
  fr.gouv.vitam.common.external.client.ClientMockResultHelper.getLogbooksRequestResponseJsonNode()
  fr.gouv.vitam.common.LocalDateUtil.getFormattedDateForMongo(String)
  Use getFormattedDateTimeForMongo
  fr.gouv.vitam.common.LocalDateUtil.getFormattedDateForMongo(LocalDateTime)
  Use getFormattedDateTimeForMongo
  fr.gouv.vitam.common.LocalDateUtil.getString(LocalDateTime)
  Use getFormattedDateTimeForMongo
  fr.gouv.vitam.common.LocalDateUtil.getString(Date)
  Use getFormattedDateTimeForMongo
  fr.gouv.vitam.common.LocalDateUtil.getStringFormatted(LocalDateTime)
  Use getFormattedDateTimeForMongo
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getActivationdate()
  since 8.0, replaced with `AbstractContractModel.getActivationDate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getCreationdate()
  since 8.0, replaced with `AbstractContractModel.getCreationDate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getDeactivationdate()
  since 8.0, replaced with `AbstractContractModel.getDeactivationDate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.getLastupdate()
  since 8.0, replaced with `AbstractContractModel.getLastUpdate()`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setActivationdate(String)
  since 8.0, replaced with `AbstractContractModel.setActivationDate(String activationDate)`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setCreationdate(String)
  since 8.0, replaced with `AbstractContractModel.setCreationDate(String creationDate)`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setDeactivationdate(String)
  since 8.0, replaced with `AbstractContractModel.setDeactivationDate(String deactivationDate)`
  fr.gouv.vitam.common.model.administration.AbstractContractModel.setLastupdate(String)
  since 8.0, replaced with `AbstractContractModel.setLastUpdate(String lastUpdate)`
  fr.gouv.vitam.common.model.administration.AccessContractModel.isEveryDataObjectVersion()
  since 8.0, replaced with `AccessContractModel.getEveryDataObjectVersion()`
  fr.gouv.vitam.common.model.ItemStatus.getData()
  fr.gouv.vitam.common.model.massupdate.RuleAction.getEndDate()
  unused / forbidden field. Do not delete (breaks public API)
  fr.gouv.vitam.common.model.massupdate.RuleAction.setEndDate(String)
  unused / forbidden field. Do not delete (breaks public API)
  fr.gouv.vitam.common.model.unit.DescriptiveMetadataModel.getSignature()
  Old Signature model (Seda 2.1 invalid input: '&' 2.2). Superseded by SigningInformation model in Seda 2.3+.
  fr.gouv.vitam.common.model.unit.DescriptiveMetadataModel.setSignature(List<SignatureTypeModel>)
  Old Signature model (Seda 2.1 invalid input: '&' 2.2). Superseded by SigningInformation model in Seda 2.3+.
  fr.gouv.vitam.ihmrecette.appserver.WebApplicationResource.launchAudit(String, String, String)
  fr.gouv.vitam.ihmrecette.appserver.WebApplicationResourceDelete.purgeDataForTnr()
  Delete for tnr use only for tnr
  fr.gouv.vitam.logbook.rest.LogbookResource.commitObjectGroupLifeCyclesByOperation(String, String)
  fr.gouv.vitam.logbook.rest.LogbookResource.commitUnitLifeCyclesByOperation(String, String)
  fr.gouv.vitam.metadata.core.database.collections.DbRequest.execInsertUnitRequest(InsertParserMultiple)
  fr.gouv.vitam.worker.common.HandlerIO.getFileFromWorkspace(String)
  use `HandlerIO.getFileFromWorkspace(WorkFlowExecutionContext, String)` instead so that the workspace is explicitly chosen
  fr.gouv.vitam.worker.common.HandlerIO.getInputStreamFromWorkspace(String)
  use `HandlerIO.getInputStreamFromWorkspace(WorkFlowExecutionContext, String)` instead so that the workspace is explicitly chosen
  fr.gouv.vitam.worker.common.HandlerIO.getJsonFromWorkspace(String)
  use `HandlerIO.getJsonFromWorkspace(WorkFlowExecutionContext, String)` instead so that the workspace is explicitly chosen
  fr.gouv.vitam.worker.common.HandlerIO.getNewLocalFile(String)
  Use `HandlerIO.getNewLocalFile(WorkFlowExecutionContext, String)` instead so that the workspace is explicitly chosen
  fr.gouv.vitam.worker.common.HandlerIO.getWorkspaceClient()
  Use `HandlerIO.getWorkspaceClient(WorkFlowExecutionContext)` instead so that the workspace is explicitly chosen
  fr.gouv.vitam.worker.common.HandlerIO.transferJsonToWorkspace(String, String, JsonNode, boolean, boolean)
  use `HandlerIO.transferJsonToWorkspace(WorkFlowExecutionContext, String, String, JsonNode, boolean, boolean)` instead so that the workspace is explicitly chosen
  fr.gouv.vitam.worker.common.utils.SedaUtilsFactory.create(HandlerIO)

- Deprecated Enum Constants
  Enum Constant
  Description
  fr.gouv.vitam.collect.common.enums.TransactionStatus.ACK_WAITING
  Unused. Kept for java API backward compatibility.
  fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.FILTERARGS.CACHE
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.FILTERARGS.NOCACHE
  Will be removed in future releases.
  fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.GLOBAL.RULES
  : DSL with $rules is no more supported
  fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.PROJECTIONARGS.ALL
  Use empty projection to select all fields.
  fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.PROJECTIONARGS.DUA
  Use "#management.AppraisalRule.Rules.Rule" instead. Will be removed in future releases
  fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.PROJECTIONARGS.PARENT_ORIGINATING_AGENCIES
  Will be removed in future release
  fr.gouv.vitam.common.database.parser.query.ParserTokens.PROJECTIONARGS.USAGE
  Useless. Will be removed in future releases
  fr.gouv.vitam.common.model.administration.OntologyType.ENUM
  fr.gouv.vitam.common.model.administration.OntologyType.GEO_POINT
  fr.gouv.vitam.common.model.administration.RuleMeasurementEnum.SECOND
  fr.gouv.vitam.storage.engine.common.model.DataCategory.DIP
  : DIP are no more stored in offers.
  fr.gouv.vitam.storage.engine.common.model.OfferLogFormatVersion.V1
  fr.gouv.vitam.storage.offers.tape.dto.TapeDriveStatus.EOT
  EndOfTape status is not properly handled by MTX utility. According to the man page of mtx utility : "In addition, MTX does not handle the end of tape properly."