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
Modifier and TypeFieldDescriptionprotected ModifiableRepositoryData
The repository datastatic final String
Metadata name for storing a Node's lockToken -
Constructor Summary
ConstructorDescriptionVersionComponentAmetysObject
(javax.jcr.Node node, String parentPath, VersionComponentFactory factory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet 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 Details
-
COMPONENT_ID
Metadata name for storing a Node's lockToken- See Also:
-
_repositoryData
The repository data
-
-
Constructor Details
-
VersionComponentAmetysObject
public VersionComponentAmetysObject(javax.jcr.Node node, String parentPath, VersionComponentFactory factory) Constructor.- Parameters:
node
- the JCR Node.parentPath
- the parent pathfactory
- the corresponding factory.
-
-
Method Details
-
getComponentId
Get the component identifier.- Returns:
- the component identifier
-
setComponentId
Set the component identifier.- Parameters:
componentId
- the component identifier- Throws:
AmetysRepositoryException
- if an error occurs
-