public class JackrabbitSecurityUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
denyPrivilege(Session session,
java.lang.String path,
java.lang.String principal,
java.lang.String privilege)
Convenience method for denying a single privilege to a principal (user or
role), typically jcr:all
|
static java.lang.Boolean |
denyPrivileges(Session session,
java.lang.String path,
java.security.Principal principal,
java.util.List<Privilege> privs)
Deny privileges on a path to a
Principal . |
public static void denyPrivilege(Session session, java.lang.String path, java.lang.String principal, java.lang.String privilege) throws RepositoryException
RepositoryException
public static java.lang.Boolean denyPrivileges(Session session, java.lang.String path, java.security.Principal principal, java.util.List<Privilege> privs) throws RepositoryException
Principal
. The path must already
exist. Session is saved. Synchronized to prevent concurrent modifications of
the same node.RepositoryException
Copyright © 2007–2020. All rights reserved.