Class Permission
- java.lang.Object
-
- org.apache.directory.api.ldap.aci.Permission
-
- Direct Known Subclasses:
ItemPermission,UserPermission
public abstract class Permission extends Object
An abstract base class forItemPermissionandUserPermission.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPermission(Integer precedence, Collection<GrantAndDenial> grantsAndDenials)Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofGrantAndDenials.IntegergetPrecedence()Gets the precedence of this permission.
-
-
-
Constructor Detail
-
Permission
protected Permission(Integer precedence, Collection<GrantAndDenial> grantsAndDenials)
Creates a new instance- Parameters:
precedence- the precedence of this permission (-1 to use the default)grantsAndDenials- the set ofGrantAndDenials
-
-
Method Detail
-
getPrecedence
public Integer getPrecedence()
Gets the precedence of this permission.- Returns:
- the precedence
-
getGrantsAndDenials
public Set<GrantAndDenial> getGrantsAndDenials()
Gets the set ofGrantAndDenials.- Returns:
- the grants and denials
-
getGrants
public Set<GrantAndDenial> getGrants()
Gets the set of grants only.- Returns:
- the grants
-
getDenials
public Set<GrantAndDenial> getDenials()
Gets the set of denials only.- Returns:
- the denials
-
-