Class JcrDataVersion
java.lang.Object
org.ametys.core.migration.version.AbstractVersion
org.ametys.plugins.repository.migration.jcr.data.JcrDataVersion
- All Implemented Interfaces:
Version
Implementation of
Version
for JCR data.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionJcrDataVersion
(String versionHandlerId, String componentId) Constructor.JcrDataVersion
(String versionHandlerId, VersionAmetysObject versionAO) Constructor.protected
JcrDataVersion
(ActionData actionData) Create a version from the data of anActionData
and its associated version. -
Method Summary
Modifier and TypeMethodDescriptioncopyFromActionData
(ActionData actionData) Copy theVersion
object but only specific fields and componentIdGet the version Ametys objectvoid
setAmetysObject
(VersionAmetysObject versionAO) Set the version Ametys objectMethods inherited from class org.ametys.core.migration.version.AbstractVersion
addAdditionalValue, getAdditionalValues, getComment, getComponentId, getExecutionInstant, getVersionHandlerId, getVersionNumber, setComment, setExecutionInstant, setVersionNumber, toString
-
Field Details
-
_versionAO
Version Ametys object
-
-
Constructor Details
-
JcrDataVersion
Constructor.- Parameters:
versionHandlerId
- id of theVersionHandler
componentId
- the component identifier
-
JcrDataVersion
Constructor. The data are builded from the parameter versionAO.- Parameters:
versionHandlerId
- id of theVersionHandler
versionAO
- the version Ametys object
-
JcrDataVersion
Create a version from the data of anActionData
and its associated version.- Parameters:
actionData
- The action data
-
-
Method Details
-
getAmetysObject
Get the version Ametys object- Returns:
- the version Ametys object
-
setAmetysObject
Set the version Ametys object- Parameters:
versionAO
- the version Ametys object
-
copyFromActionData
Description copied from interface:Version
Copy theVersion
object but only specific fields and componentId- Parameters:
actionData
- The action data which inside there is the version to copy and the data to keep- Returns:
- A copy of the
Version
object
-