Package org.mycore.ocfl
Class MCROCFLMetadataVersion
java.lang.Object
org.mycore.datamodel.common.MCRAbstractMetadataVersion<MCRContent>
org.mycore.ocfl.MCROCFLMetadataVersion
Provides information about a stored version of metadata and allows to
retrieve that version from SVN
- Author:
- Frank Lützenkirchen
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mycore.datamodel.common.MCRAbstractMetadataVersion
MCRAbstractMetadataVersion.Type
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMCROCFLMetadataVersion
(MCRContent vm, String revision, String user, Date date, char type) -
Method Summary
Methods inherited from class org.mycore.datamodel.common.MCRAbstractMetadataVersion
getDate, getMetadataObject, getRevision, getType, getUser
-
Constructor Details
-
MCROCFLMetadataVersion
-
-
Method Details
-
retrieve
Retrieves this version of the metadata- Specified by:
retrieve
in classMCRAbstractMetadataVersion<MCRContent>
- Returns:
- the metadata document as it was in this version
-
restore
Replaces the current version of the metadata object with this version, which means that a new version is created that is identical to this old version. The stored metadata document is updated to this old version of the metadata.- Specified by:
restore
in classMCRAbstractMetadataVersion<MCRContent>
- Throws:
IOException
-