Class DataObjectInfo
- java.lang.Object
-
- fr.gouv.vitam.worker.common.utils.DataObjectInfo
-
public final class DataObjectInfo extends java.lang.Object
The class DataObjectInfo is stored all information of the DataObjectInfo
-
-
Constructor Summary
Constructors Constructor Description DataObjectInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestType
getAlgo()
com.fasterxml.jackson.databind.node.ObjectNode
getDiffSizeJson()
Field to conatain the diff if size has not the same between manifest and binary filejava.lang.String
getId()
java.lang.String
getMessageDigest()
java.lang.String
getPhysicalId()
int
getRank()
java.lang.Long
getSize()
java.lang.Boolean
getSizeIncorrect()
java.lang.String
getType()
java.lang.String
getUri()
java.lang.String
getVersion()
DataObjectInfo
setAlgo(DigestType algo)
DataObjectInfo
setDiffSizeJson(com.fasterxml.jackson.databind.node.ObjectNode diffSizeJson)
DataObjectInfo
setId(java.lang.String id)
DataObjectInfo
setMessageDigest(java.lang.String messageDigest)
DataObjectInfo
setPhysicalId(java.lang.String physicalId)
DataObjectInfo
setRank(int rank)
DataObjectInfo
setSize(java.lang.Long size)
DataObjectInfo
setSizeIncorrect(java.lang.Boolean sizeIncorrect)
DataObjectInfo
setType(java.lang.String type)
DataObjectInfo
setUri(java.lang.String uri)
DataObjectInfo
setVersion(java.lang.String version)
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- id of the data object
-
setId
public DataObjectInfo setId(java.lang.String id)
- Parameters:
id
- the id of the data to set- Returns:
- DataObjectInfo
-
getVersion
public java.lang.String getVersion()
- Returns:
- version of the data object
-
setVersion
public DataObjectInfo setVersion(java.lang.String version)
- Parameters:
version
- the version of the data to set- Returns:
- BinaryObjectInfo
-
getUri
public java.lang.String getUri()
- Returns:
- uri of the data as String
-
setUri
public DataObjectInfo setUri(java.lang.String uri)
- Parameters:
uri
- uri of the data object as String- Returns:
- BinaryObjectInfo
-
getMessageDigest
public java.lang.String getMessageDigest()
- Returns:
- messageDigest as String
-
setMessageDigest
public DataObjectInfo setMessageDigest(java.lang.String messageDigest)
- Parameters:
messageDigest
- the message digest of the data to set- Returns:
- BinaryObjectInfo
-
getSize
public java.lang.Long getSize()
- Returns:
- size
-
setSize
public DataObjectInfo setSize(java.lang.Long size)
- Parameters:
size
- the size of the data to set- Returns:
- BinaryObjectInfo
-
getAlgo
public DigestType getAlgo()
- Returns:
- DigestType
-
setAlgo
public DataObjectInfo setAlgo(DigestType algo)
- Parameters:
algo
- digest algorithm- Returns:
- BinaryObjectInfo
-
getRank
public int getRank()
- Returns:
- the rank in version
-
setRank
public DataObjectInfo setRank(int rank)
- Parameters:
rank
- the rank in version- Returns:
- this
-
getType
public java.lang.String getType()
- Returns:
- type as String
-
setType
public DataObjectInfo setType(java.lang.String type)
- Parameters:
type
- the type of the data to set- Returns:
- BinaryObjectInfo
-
getPhysicalId
public java.lang.String getPhysicalId()
- Returns:
- physicalId as String
-
setPhysicalId
public DataObjectInfo setPhysicalId(java.lang.String physicalId)
- Parameters:
physicalId
- the physical Id of the data to set- Returns:
- BinaryObjectInfo
-
getDiffSizeJson
public com.fasterxml.jackson.databind.node.ObjectNode getDiffSizeJson()
Field to conatain the diff if size has not the same between manifest and binary file- Returns:
-
setDiffSizeJson
public DataObjectInfo setDiffSizeJson(com.fasterxml.jackson.databind.node.ObjectNode diffSizeJson)
-
getSizeIncorrect
public java.lang.Boolean getSizeIncorrect()
-
setSizeIncorrect
public DataObjectInfo setSizeIncorrect(java.lang.Boolean sizeIncorrect)
-
-