Class VersionAmetysObject
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<VersionFactory>
org.ametys.plugins.repository.migration.jcr.data.repository.VersionAmetysObject
- All Implemented Interfaces:
AmetysObject
,JCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableAmetysObject
,RemovableAmetysObject
Ametys object representing a version for migration.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ModifiableRepositoryData
The repository datastatic final String
The comment attribute namestatic final String
The component ID attribute namestatic final String
The execution date attribute namestatic final String
The version number attribute name -
Constructor Summary
ConstructorDescriptionVersionAmetysObject
(Node node, String parentPath, VersionFactory factory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the comment.Get the component id.Get the execution date.Get the version number.void
setComment
(String comment) Set the comment.void
setComponentId
(String componentId) Set the component id.void
setExecutionDate
(Calendar executionDate) Set the execution date.void
setVersionNumber
(String versionNumber) Set the version number.Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCode
-
Field Details
-
COMPONENT_ID
The component ID attribute name- See Also:
-
VERSION_NUMBER
The version number attribute name- See Also:
-
EXECUTION_DATE
The execution date attribute name- See Also:
-
COMMENT
The comment attribute name- See Also:
-
_repositoryData
The repository data
-
-
Constructor Details
-
VersionAmetysObject
Constructor.- Parameters:
node
- the JCR Node.parentPath
- the parent pathfactory
- the corresponding factory.
-
-
Method Details
-
getComponentId
Get the component id.- Returns:
- the component id
-
setComponentId
Set the component id.- Parameters:
componentId
- the component id
-
getVersionNumber
Get the version number.- Returns:
- the version number
-
setVersionNumber
Set the version number.- Parameters:
versionNumber
- the version number
-
getExecutionDate
Get the execution date.- Returns:
- the execution date
-
setExecutionDate
Set the execution date.- Parameters:
executionDate
- the execution date
-
getComment
Get the comment.- Returns:
- the comment
-
setComment
Set the comment.- Parameters:
comment
- the comment
-