| Package | Description |
|---|---|
| org.jahia.utils.security |
| Modifier and Type | Method and Description |
|---|---|
static Set<javax.jcr.security.Privilege> |
AccessManagerUtils.getPermissionsInRole(String role,
JahiaPrivilegeRegistry privilegeRegistry)
Retrieve permissions of a given role
The privilegesInRole cache will be used to read the permissions, if not found we used a system session in default workspace to read the role node
|
static javax.jcr.security.Privilege[] |
AccessManagerUtils.getPrivileges(javax.jcr.Node node,
org.jahia.jaas.JahiaPrincipal jahiaPrincipal,
JahiaPrivilegeRegistry privilegeRegistry)
Get the list Privilege from granted roles for a given principal on a node, recursive check on parents nodes
when the acl node have the "inherit" flag, the getRoles(...) function is used to retrieve the roles.
|
static javax.jcr.security.Privilege[] |
AccessManagerUtils.getPrivileges(String absPath,
String workspace,
org.jahia.jaas.JahiaPrincipal jahiaPrincipal,
JahiaPrivilegeRegistry privilegeRegistry)
Get the list Privilege from granted roles for a given principal on a node, recursive check on parents nodes
when the acl node have the "inherit" flag, the getRoles(...) function is used to retrieve the roles.
|
static boolean |
AccessManagerUtils.isGranted(PathWrapper pathWrapper,
Set<String> permissions,
javax.jcr.Session securitySession,
org.jahia.jaas.JahiaPrincipal jahiaPrincipal,
String workspaceName,
boolean isAliased,
Map<String,Boolean> pathPermissionCache,
Map<Object,AccessManagerUtils.CompiledAcl> compiledAcls,
JahiaPrivilegeRegistry privilegeRegistry)
Entry point to test if the given jahiaPrincipal match the given permissions on a node
|
static boolean |
AccessManagerUtils.matchPermission(Set<String> permissions,
String role,
boolean isAliased,
JahiaPrivilegeRegistry privilegeRegistry,
String workspaceName)
Test if a given role contains the list of permissions
|
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.