Class Version
java.lang.Object
de.digitalcollections.model.identifiable.versioning.Version
Version of a
DigitalObject
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Version.Builder
builder()
getUuid()
int
void
setCreated
(Date created) void
setDescription
(String description) void
setInstanceKey
(String instanceKey) void
setInstanceVersionKey
(String instanceVersionKey) void
void
setTypeKey
(TypeKey typeKey) void
void
setVersionValue
(int versionValue) toString()
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
builder
-
getCreated
- Returns:
- date when this version instance was created
-
getDescription
- Returns:
- description of the version, intended for manually created versions
-
getInstanceKey
- Returns:
- version independent identifier of the versioned object, e.g. Zend id
-
getInstanceVersionKey
- Returns:
- unique identifier of the version, typically a combination of the instance key and an external property such as a creation date.
-
getStatus
- Returns:
- status of the version, one of 'INITIAL', 'ACTIVIE', 'INACTIVE', 'DELETED'
-
getTypeKey
- Returns:
- type of the versioned object, e.g. 'DigitalObject'
-
getUuid
- Returns:
- id of the version
-
getVersionValue
public int getVersionValue()- Returns:
- numeric value of the version, incremented with every new version instance
-
setCreated
-
setDescription
-
setInstanceKey
-
setInstanceVersionKey
-
setStatus
-
setTypeKey
-
setUuid
-
setVersionValue
public void setVersionValue(int versionValue) -
toString
-