org.apache.directory.api.ldap.aci.protectedItem
Class MaxImmSubItem

java.lang.Object
  extended by org.apache.directory.api.ldap.aci.ProtectedItem
      extended by org.apache.directory.api.ldap.aci.protectedItem.MaxImmSubItem

public class MaxImmSubItem
extends ProtectedItem

Restricts the maximum number of immediate subordinates of the superior entry to an entry being added or imported. It is examined if the protected item is an entry, the permission sought is add or import, and the immediate superior entry is in the same DSA as the entry being added or imported. Immediate subordinates of the superior entry are counted without regard to context or access control as though the entry addition or importing were successful. If the number of subordinates exceeds maxImmSub, the ACI item is treated as not granting add or import access.


Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.aci.ProtectedItem
ALL_USER_ATTRIBUTE_TYPES, ALL_USER_ATTRIBUTE_TYPES_AND_VALUES, ENTRY
 
Constructor Summary
MaxImmSubItem(int value)
          Creates a new instance.
 
Method Summary
 boolean equals(Object o)
          
 int getValue()
          Gets the maximum number of immediate subordinates.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxImmSubItem

public MaxImmSubItem(int value)
Creates a new instance.

Parameters:
value - The maximum number of immediate subordinates
Method Detail

getValue

public int getValue()
Gets the maximum number of immediate subordinates.

Returns:
the maximum number of immediate subordinates

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


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