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

java.lang.Object
  extended byorg.apache.directory.shared.ldap.aci.Permission
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ItemPermission, UserPermission

public abstract class Permission
extends java.lang.Object
implements java.io.Serializable

An abstract base class for ItemPermission and UserPermission.

Version:
$Rev: 379008 $, $Date: 2006-02-20 04:35:07 +0100 (Mon, 20 Feb 2006) $
Author:
The Apache Directory Project
See Also:
Serialized Form

Constructor Summary
protected Permission(int precedence, java.util.Collection grantsAndDenials)
          Creates a new instance
 
Method Summary
 java.util.Set getDenials()
          Returns the set of denials only.
 java.util.Set getGrants()
          Returns the set of grants only.
 java.util.Set getGrantsAndDenials()
          Returns the set of GrantAndDenials.
 int getPrecedence()
          Returns 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(int precedence,
                     java.util.Collection 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 int getPrecedence()
Returns the precedence of this permission.


getGrantsAndDenials

public java.util.Set getGrantsAndDenials()
Returns the set of GrantAndDenials.


getGrants

public java.util.Set getGrants()
Returns the set of grants only.


getDenials

public java.util.Set getDenials()
Returns the set of denials only.



Copyright © 2003-2006 . All Rights Reserved.