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

java.lang.Object
  extended by org.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: 572194 $, $Date: 2007-09-03 01:58:18 +0200 (Mo, 03 Sep 2007) $
Author:
Apache Directory Project
See Also:
Serialized Form

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


getGrantsAndDenials

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


getGrants

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


getDenials

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



Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.