Package io.ocfl.api.model
Class FileChange
- java.lang.Object
-
- io.ocfl.api.model.FileChange
-
public class FileChange extends Object
Details about a change to a file.
-
-
Constructor Summary
Constructors Constructor Description FileChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileChangeType
getChangeType()
The type of change that occurred, UPDATE/REMOVE.Map<DigestAlgorithm,String>
getFixity()
Map of digest algorithm to digest value.ObjectVersionId
getObjectVersionId()
The ObjectVersionId for the version the changed occurred inString
getPath()
The file's logical pathString
getStorageRelativePath()
The file's path relative to the storage root.OffsetDateTime
getTimestamp()
The timestamp when the file changedVersionInfo
getVersionInfo()
Description of the versionVersionNum
getVersionNum()
The object's version number for the version the changed occurred inFileChange
setChangeType(FileChangeType changeType)
FileChange
setFixity(Map<DigestAlgorithm,String> fixity)
FileChange
setObjectVersionId(ObjectVersionId objectVersionId)
FileChange
setPath(String path)
FileChange
setStorageRelativePath(String storageRelativePath)
FileChange
setTimestamp(OffsetDateTime timestamp)
FileChange
setVersionInfo(VersionInfo versionInfo)
String
toString()
-
-
-
Method Detail
-
getChangeType
public FileChangeType getChangeType()
The type of change that occurred, UPDATE/REMOVE.- Returns:
- type of change
-
setChangeType
public FileChange setChangeType(FileChangeType changeType)
-
getObjectVersionId
public ObjectVersionId getObjectVersionId()
The ObjectVersionId for the version the changed occurred in- Returns:
- ObjectVersionId
-
setObjectVersionId
public FileChange setObjectVersionId(ObjectVersionId objectVersionId)
-
getVersionNum
public VersionNum getVersionNum()
The object's version number for the version the changed occurred in- Returns:
- version number
-
getPath
public String getPath()
The file's logical path- Returns:
- logical path
-
setPath
public FileChange setPath(String path)
-
getStorageRelativePath
public String getStorageRelativePath()
The file's path relative to the storage root. Null onFileChangeType.REMOVE
.- Returns:
- storage relative path or null
-
setStorageRelativePath
public FileChange setStorageRelativePath(String storageRelativePath)
-
getFixity
public Map<DigestAlgorithm,String> getFixity()
Map of digest algorithm to digest value. Empty onFileChangeType.REMOVE
.- Returns:
- digest map
-
setFixity
public FileChange setFixity(Map<DigestAlgorithm,String> fixity)
-
getTimestamp
public OffsetDateTime getTimestamp()
The timestamp when the file changed- Returns:
- timestamp
-
setTimestamp
public FileChange setTimestamp(OffsetDateTime timestamp)
-
getVersionInfo
public VersionInfo getVersionInfo()
Description of the version- Returns:
- VersionInfo
-
setVersionInfo
public FileChange setVersionInfo(VersionInfo versionInfo)
-
-