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
public class VersionAmetysObject extends SimpleAmetysObject<VersionFactory>
Ametys object representing a version for migration.
-
-
Field Summary
Fields Modifier and Type Field Description protected ModifiableRepositoryData
_repositoryData
The repository datastatic String
COMMENT
The comment attribute namestatic String
COMPONENT_ID
The component ID attribute namestatic String
EXECUTION_DATE
The execution date attribute namestatic String
VERSION_NUMBER
The version number attribute name
-
Constructor Summary
Constructors Constructor Description VersionAmetysObject(Node node, String parentPath, VersionFactory factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComment()
Get the comment.String
getComponentId()
Get the component id.Calendar
getExecutionDate()
Get the execution date.String
getVersionNumber()
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 Detail
-
COMPONENT_ID
public static final String COMPONENT_ID
The component ID attribute name- See Also:
- Constant Field Values
-
VERSION_NUMBER
public static final String VERSION_NUMBER
The version number attribute name- See Also:
- Constant Field Values
-
EXECUTION_DATE
public static final String EXECUTION_DATE
The execution date attribute name- See Also:
- Constant Field Values
-
COMMENT
public static final String COMMENT
The comment attribute name- See Also:
- Constant Field Values
-
_repositoryData
protected ModifiableRepositoryData _repositoryData
The repository data
-
-
Constructor Detail
-
VersionAmetysObject
public VersionAmetysObject(Node node, String parentPath, VersionFactory factory)
Constructor.- Parameters:
node
- the JCR Node.parentPath
- the parent pathfactory
- the corresponding factory.
-
-
Method Detail
-
getComponentId
public String getComponentId()
Get the component id.- Returns:
- the component id
-
setComponentId
public void setComponentId(String componentId)
Set the component id.- Parameters:
componentId
- the component id
-
getVersionNumber
public String getVersionNumber()
Get the version number.- Returns:
- the version number
-
setVersionNumber
public void setVersionNumber(String versionNumber)
Set the version number.- Parameters:
versionNumber
- the version number
-
getExecutionDate
public Calendar getExecutionDate()
Get the execution date.- Returns:
- the execution date
-
setExecutionDate
public void setExecutionDate(Calendar executionDate)
Set the execution date.- Parameters:
executionDate
- the execution date
-
getComment
public String getComment()
Get the comment.- Returns:
- the comment
-
setComment
public void setComment(String comment)
Set the comment.- Parameters:
comment
- the comment
-
-