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 ofVersionfor JCR data.
-
-
Field Summary
Fields Modifier and Type Field Description protected VersionAmetysObject_versionAOVersion Ametys object
-
Constructor Summary
Constructors Modifier Constructor Description JcrDataVersion(String versionHandlerId, String componentId)Constructor.JcrDataVersion(String versionHandlerId, VersionAmetysObject versionAO)Constructor.protectedJcrDataVersion(ActionData actionData)Create a version from the data of anActionDataand its associated version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersioncopyFromActionData(ActionData actionData)Copy theVersionobject but only specific fields and componentIdVersionAmetysObjectgetAmetysObject()Get the version Ametys objectvoidsetAmetysObject(VersionAmetysObject versionAO)Set the version Ametys object-
Methods inherited from class org.ametys.core.migration.version.AbstractVersion
addAdditionalValue, getAdditionalValues, 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 theVersionHandlercomponentId- the component identifier
-
JcrDataVersion
public JcrDataVersion(String versionHandlerId, VersionAmetysObject versionAO)
Constructor. The data are builded from the parameter versionAO.- Parameters:
versionHandlerId- id of theVersionHandlerversionAO- the version Ametys object
-
JcrDataVersion
protected JcrDataVersion(ActionData actionData)
Create a version from the data of anActionDataand 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:VersionCopy theVersionobject 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
Versionobject
-
-