public abstract class Permission extends Object
ItemPermission and UserPermission.| Modifier and Type | Field and Description |
|---|---|
private Set<GrantAndDenial> |
denials
The denials.
|
private Set<GrantAndDenial> |
grants
The grants.
|
private Set<GrantAndDenial> |
grantsAndDenials
The grants and denials.
|
private Integer |
precedence
The precedence.
|
| 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.
|
private final Integer precedence
private final Set<GrantAndDenial> grantsAndDenials
private final Set<GrantAndDenial> grants
private final Set<GrantAndDenial> denials
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–2021 The Apache Software Foundation. All rights reserved.