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