Package fr.gouv.vitam.common.model
Class MetadatasObject
- java.lang.Object
-
- fr.gouv.vitam.common.model.MetadatasObject
-
- Direct Known Subclasses:
MetadatasStorageObject
,StorageMetadataResult
public abstract class MetadatasObject extends java.lang.Object
Metadata object
-
-
Constructor Summary
Constructors Constructor Description MetadatasObject()
empty constructorMetadatasObject(java.lang.String objectName, java.lang.String type, java.lang.String digest, long fileSize, java.lang.String lastAccessDate, java.lang.String lastModifiedDate)
Constructor to initialize the needed parameters for get metadata results
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDigest()
long
getFileSize()
java.lang.String
getLastAccessDate()
java.lang.String
getLastModifiedDate()
java.lang.String
getObjectName()
java.lang.String
getType()
MetadatasObject
setDigest(java.lang.String digest)
MetadatasObject
setFileSize(long fileSize)
MetadatasObject
setLastAccessDate(java.lang.String lastAccessDate)
MetadatasObject
setLastModifiedDate(java.lang.String lastModifiedDate)
MetadatasObject
setObjectName(java.lang.String objectName)
MetadatasObject
setType(java.lang.String type)
-
-
-
Constructor Detail
-
MetadatasObject
public MetadatasObject()
empty constructor
-
MetadatasObject
public MetadatasObject(java.lang.String objectName, java.lang.String type, java.lang.String digest, long fileSize, java.lang.String lastAccessDate, java.lang.String lastModifiedDate)
Constructor to initialize the needed parameters for get metadata results- Parameters:
objectName
- the object nametype
- the type of metadata objectdigest
- of metadata objectfileSize
- of metadata objectlastAccessDate
- of metadata objectlastModifiedDate
- of metadata object
-
-
Method Detail
-
getObjectName
public java.lang.String getObjectName()
- Returns:
- object name
-
setObjectName
public MetadatasObject setObjectName(java.lang.String objectName)
- Parameters:
objectName
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getType
public java.lang.String getType()
- Returns:
- type
-
setType
public MetadatasObject setType(java.lang.String type)
- Parameters:
type
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getDigest
public java.lang.String getDigest()
- Returns:
- digest
-
setDigest
public MetadatasObject setDigest(java.lang.String digest)
- Parameters:
digest
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getFileSize
public long getFileSize()
- Returns:
- the file size of metadata object
-
setFileSize
public MetadatasObject setFileSize(long fileSize)
- Parameters:
fileSize
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getLastAccessDate
public java.lang.String getLastAccessDate()
- Returns:
- file's last access date
-
setLastAccessDate
public MetadatasObject setLastAccessDate(java.lang.String lastAccessDate)
- Parameters:
lastAccessDate
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getLastModifiedDate
public java.lang.String getLastModifiedDate()
- Returns:
- file's last modifiedDate
-
setLastModifiedDate
public MetadatasObject setLastModifiedDate(java.lang.String lastModifiedDate)
- Parameters:
lastModifiedDate
- of metadata object to set- Returns:
- MetadatasObjectResult
-
-