Class VersionComponentAmetysObject
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject<VersionComponentFactory>
-
- org.ametys.plugins.repository.migration.jcr.data.repository.VersionComponentAmetysObject
-
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
public class VersionComponentAmetysObject extends DefaultTraversableAmetysObject<VersionComponentFactory>
Class representing a version component
-
-
Field Summary
Fields Modifier and Type Field Description protected ModifiableRepositoryData
_repositoryData
The repository datastatic String
COMPONENT_ID
Metadata name for storing a Node's lockToken
-
Constructor Summary
Constructors Constructor Description VersionComponentAmetysObject(Node node, String parentPath, VersionComponentFactory factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentId()
Get the component identifier.void
setComponentId(String componentId)
Set the component identifier.-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, disallowInheritance, getChild, getChildren, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasChild, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
-
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, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
-
-
-
Field Detail
-
COMPONENT_ID
public static final String COMPONENT_ID
Metadata name for storing a Node's lockToken- See Also:
- Constant Field Values
-
_repositoryData
protected ModifiableRepositoryData _repositoryData
The repository data
-
-
Constructor Detail
-
VersionComponentAmetysObject
public VersionComponentAmetysObject(Node node, String parentPath, VersionComponentFactory factory)
Constructor.- Parameters:
node
- the JCR Node.parentPath
- the parent pathfactory
- the corresponding factory.
-
-
Method Detail
-
getComponentId
public String getComponentId()
Get the component identifier.- Returns:
- the component identifier
-
setComponentId
public void setComponentId(String componentId) throws AmetysRepositoryException
Set the component identifier.- Parameters:
componentId
- the component identifier- Throws:
AmetysRepositoryException
- if an error occurs
-
-