public class PermissionUtil extends Object
| Constructor and Description |
|---|
PermissionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canAddNode(javax.jcr.Node node)
Can add node.
|
static boolean |
canChangePermission(javax.jcr.Node node)
Can change permission.
|
static boolean |
canRead(javax.jcr.Node node)
Can read node
|
static boolean |
canRemoveNode(javax.jcr.Node node)
Can remove node.
|
static boolean |
canSetProperty(javax.jcr.Node node)
Can set property.
|
static boolean |
isAnyRole(javax.jcr.Node node)
Checks if is any role.
|
public static boolean canRead(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static boolean canAddNode(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static boolean canChangePermission(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static boolean isAnyRole(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static boolean canSetProperty(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static boolean canRemoveNode(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.