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, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNodegetMetadataHolderneedsSave, rename, revertChanges, saveChangesequals, getId, getParentPath, hashCoderemovegetChildAt, getChildPositionpublic RootAmetysObject(Node node, RootAmetysObjectFactory factory)
RootAmetysObject.node - the corresponding JCR node.factory - the RootAmetysObjectFactory which creates the AmetysObject.public String getPath()
AmetysObjectgetPath in interface AmetysObjectgetPath in class SimpleAmetysObject<RootAmetysObjectFactory>public String getName() throws AmetysRepositoryException
AmetysObjectgetName in interface AmetysObjectgetName in class SimpleAmetysObject<RootAmetysObjectFactory>AmetysRepositoryException - if an error occurs.public <A extends AmetysObject> A getParent() throws AmetysRepositoryException
AmetysObjectgetParent in interface AmetysObjectgetParent in class SimpleAmetysObject<RootAmetysObjectFactory>A - the type of the parent AmetysObject.null if current object
is the root.AmetysRepositoryException - if an error occurs.