Class JcrDataVersion
- java.lang.Object
-
- org.ametys.core.migration.version.AbstractVersion
-
- org.ametys.plugins.repository.migration.jcr.data.JcrDataVersion
-
- All Implemented Interfaces:
Version
public class JcrDataVersion extends AbstractVersion
Implementation ofVersion
for JCR data.
-
-
Field Summary
Fields Modifier and Type Field Description protected VersionAmetysObject
_versionAO
Version Ametys object
-
Constructor Summary
Constructors Modifier Constructor Description JcrDataVersion(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Version
copyFromActionData(ActionData actionData)
Copy theVersion
object but only specific fields and componentIdVersionAmetysObject
getAmetysObject()
Get the version Ametys objectvoid
setAmetysObject(VersionAmetysObject versionAO)
Set the version Ametys object-
Methods inherited from class org.ametys.core.migration.version.AbstractVersion
getComment, getComponentId, getExecutionInstant, getVersionHandlerId, getVersionNumber, setComment, setExecutionInstant, setVersionNumber, toString
-
-
-
-
Field Detail
-
_versionAO
protected VersionAmetysObject _versionAO
Version Ametys object
-
-
Constructor Detail
-
JcrDataVersion
public JcrDataVersion(String versionHandlerId, String componentId)
Constructor.- Parameters:
versionHandlerId
- id of theVersionHandler
componentId
- the component identifier
-
JcrDataVersion
public JcrDataVersion(String versionHandlerId, VersionAmetysObject versionAO)
Constructor. The data are builded from the parameter versionAO.- Parameters:
versionHandlerId
- id of theVersionHandler
versionAO
- the version Ametys object
-
JcrDataVersion
protected JcrDataVersion(ActionData actionData)
Create a version from the data of anActionData
and its associated version.- Parameters:
actionData
- The action data
-
-
Method Detail
-
getAmetysObject
public VersionAmetysObject getAmetysObject()
Get the version Ametys object- Returns:
- the version Ametys object
-
setAmetysObject
public void setAmetysObject(VersionAmetysObject versionAO)
Set the version Ametys object- Parameters:
versionAO
- the version Ametys object
-
copyFromActionData
public Version copyFromActionData(ActionData actionData)
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
-
-