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
GrantAndDenial s. |
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 GrantAndDenial
spublic Integer getPrecedence()
public Set<GrantAndDenial> getGrantsAndDenials()
GrantAndDenial
s.public Set<GrantAndDenial> getGrants()
public Set<GrantAndDenial> getDenials()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.