public abstract class Permission extends Object implements Serializable
ItemPermission and UserPermission.| Modifier | Constructor and Description |
|---|---|
protected |
Permission(int precedence,
Collection<GrantAndDenial> grantsAndDenials)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Set<GrantAndDenial> |
getDenials()
Returns the set of denials only.
|
Set<GrantAndDenial> |
getGrants()
Returns the set of grants only.
|
Set<GrantAndDenial> |
getGrantsAndDenials()
Returns the set of
GrantAndDenials. |
int |
getPrecedence()
Returns the precedence of this permission.
|
protected Permission(int precedence,
Collection<GrantAndDenial> grantsAndDenials)
precedence - the precedence of this permission (-1 to use the
default)grantsAndDenials - the set of GrantAndDenialspublic int getPrecedence()
public Set<GrantAndDenial> getGrantsAndDenials()
GrantAndDenials.public Set<GrantAndDenial> getGrants()
public Set<GrantAndDenial> getDenials()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.