org.apache.directory.api.ldap.aci
Class Permission

java.lang.Object
  extended by org.apache.directory.api.ldap.aci.Permission
Direct Known Subclasses:
ItemPermission, UserPermission

public abstract class Permission
extends Object

An abstract base class for ItemPermission and UserPermission.

Author:
Apache Directory Project

Constructor Summary
protected Permission(Integer precedence, Collection<GrantAndDenial> grantsAndDenials)
          Creates a new instance
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 of GrantAndDenials
Method Detail

getPrecedence

public Integer getPrecedence()
Gets the precedence of this permission.

Returns:
the precedence

getGrantsAndDenials

public Set<GrantAndDenial> getGrantsAndDenials()
Gets the set of GrantAndDenials.

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


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.