public final class JahiaPrivilegeRegistry extends Object
PrivilegeRegistry defines the set of Privileges
known to the repository.| Constructor and Description |
|---|
JahiaPrivilegeRegistry(javax.jcr.NamespaceRegistry ns) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addModulePrivileges(javax.jcr.Session session,
String path) |
javax.jcr.security.Privilege |
getPrivilege(javax.jcr.Node node) |
javax.jcr.security.Privilege |
getPrivilege(String privilegeName,
String workspaceName)
Returns the privilege with the specified
privilegeName. |
Set<javax.jcr.security.Privilege> |
getPrivileges(int permissions,
String workspace) |
static List<String> |
getRegisteredPrivilegeNames()
Returns all registered privileges.
|
static javax.jcr.security.Privilege[] |
getRegisteredPrivileges()
Returns all registered privileges.
|
static void |
init(javax.jcr.Session session) |
public JahiaPrivilegeRegistry(javax.jcr.NamespaceRegistry ns)
public static void init(javax.jcr.Session session)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static void addModulePrivileges(javax.jcr.Session session,
String path)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Set<javax.jcr.security.Privilege> getPrivileges(int permissions, String workspace) throws javax.jcr.security.AccessControlException, javax.jcr.RepositoryException
javax.jcr.security.AccessControlExceptionjavax.jcr.RepositoryExceptionpublic static javax.jcr.security.Privilege[] getRegisteredPrivileges()
public static List<String> getRegisteredPrivilegeNames()
public javax.jcr.security.Privilege getPrivilege(String privilegeName, String workspaceName) throws javax.jcr.security.AccessControlException, javax.jcr.RepositoryException
privilegeName.privilegeName - Name of the principal.privilegeName.javax.jcr.security.AccessControlException - If no privilege with the given name exists.javax.jcr.RepositoryException - If another error occurs.public javax.jcr.security.Privilege getPrivilege(javax.jcr.Node node)
throws javax.jcr.security.AccessControlException,
javax.jcr.RepositoryException
javax.jcr.security.AccessControlExceptionjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.