public final class RootAmetysObject extends DefaultTraversableAmetysObject<RootAmetysObjectFactory>
AmetysObject
representing the root of the Ametys hierarchy.String
.Constructor and Description |
---|
RootAmetysObject(Node node,
RootAmetysObjectFactory factory)
Creates a
RootAmetysObject . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Retrieves the name of the current object.
|
<A extends AmetysObject> |
getParent()
Returns the parent object in the Ametys hierarchy.
|
String |
getPath()
Retrieves the path of the current object.
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getNode, getParentPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNode
getMetadataHolder
needsSave, rename, revertChanges, saveChanges
equals, getId, getParentPath, hashCode
remove
getChildAt, getChildPosition
public RootAmetysObject(Node node, RootAmetysObjectFactory factory)
RootAmetysObject
.node
- the corresponding JCR node.factory
- the RootAmetysObjectFactory
which creates the AmetysObject.public String getPath()
AmetysObject
getPath
in interface AmetysObject
getPath
in class SimpleAmetysObject<RootAmetysObjectFactory>
public String getName() throws AmetysRepositoryException
AmetysObject
getName
in interface AmetysObject
getName
in class SimpleAmetysObject<RootAmetysObjectFactory>
AmetysRepositoryException
- if an error occurs.public <A extends AmetysObject> A getParent() throws AmetysRepositoryException
AmetysObject
getParent
in interface AmetysObject
getParent
in class SimpleAmetysObject<RootAmetysObjectFactory>
A
- the type of the parent AmetysObject
.null
if current object
is the root.AmetysRepositoryException
- if an error occurs.