Package fr.gouv.vitam.common.model
Class MetadatasObject
java.lang.Object
fr.gouv.vitam.common.model.MetadatasObject
- Direct Known Subclasses:
MetadatasStorageObject
,StorageMetadataResult
Metadata object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getType()
setFileSize
(long fileSize) setLastAccessDate
(String lastAccessDate) setLastModifiedDate
(String lastModifiedDate) setObjectName
(String objectName)
-
Constructor Details
-
MetadatasObject
public MetadatasObject()empty constructor -
MetadatasObject
public MetadatasObject(String objectName, String type, String digest, long fileSize, String lastAccessDate, 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 Details
-
getObjectName
- Returns:
- object name
-
setObjectName
- Parameters:
objectName
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getType
- Returns:
- type
-
setType
- Parameters:
type
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getDigest
- Returns:
- digest
-
setDigest
- Parameters:
digest
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getFileSize
public long getFileSize()- Returns:
- the file size of metadata object
-
setFileSize
- Parameters:
fileSize
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getLastAccessDate
- Returns:
- file's last access date
-
setLastAccessDate
- Parameters:
lastAccessDate
- of metadata object to set- Returns:
- MetadatasObjectResult
-
getLastModifiedDate
- Returns:
- file's last modifiedDate
-
setLastModifiedDate
- Parameters:
lastModifiedDate
- of metadata object to set- Returns:
- MetadatasObjectResult
-