Package io.ocfl.api.model
Class VersionInfo
java.lang.Object
io.ocfl.api.model.VersionInfo
Descriptive information about an object version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
The timestamp when the version was createdDescription of version changesgetUser()
The user who authored the versionint
hashCode()
setCreated
(OffsetDateTime created) Sets the verison creation timestamp.setMessage
(String message) Sets the version descriptionSets the user infoSets the user infotoString()
-
Constructor Details
-
VersionInfo
public VersionInfo()
-
-
Method Details
-
getUser
The user who authored the version- Returns:
- user object
-
setUser
Sets the user info- Parameters:
name
- the user's name, requiredaddress
- a URI that identifies the user, such as email address- Returns:
- this
-
setUser
Sets the user info- Parameters:
user
- the user object- Returns:
- this
-
getMessage
Description of version changes- Returns:
- the version description
-
setMessage
Sets the version description- Parameters:
message
- version description- Returns:
- this
-
getCreated
The timestamp when the version was created- Returns:
- version creation timestamp
-
setCreated
Sets the verison creation timestamp. If this value is not supplied, the current system time will be used instead.- Parameters:
created
- version creation timestamp- Returns:
- this
-
toString
-
equals
-
hashCode
public int hashCode()
-