org.apache.directory.shared.ldap.aci
Class ProtectedItem.RestrictedBy

java.lang.Object
  extended by org.apache.directory.shared.ldap.aci.ProtectedItem
      extended by org.apache.directory.shared.ldap.aci.ProtectedItem.RestrictedBy
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ProtectedItem

public static class ProtectedItem.RestrictedBy
extends ProtectedItem

Restricts values added to the attribute type to being values that are already present in the same entry as values of the attribute valuesIn. It is examined if the protected item is an attribute value of the specified type and the permission sought is add. Values of the valuesIn attribute are checked without regard to context or access control and as though the operation which adds the values were successful. If the value to be added is not present in valuesIn the ACI item is treated as not granting add access.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.directory.shared.ldap.aci.ProtectedItem
ProtectedItem.AllAttributeValues, ProtectedItem.AllUserAttributeTypes, ProtectedItem.AllUserAttributeTypesAndValues, ProtectedItem.AttributeType, ProtectedItem.AttributeValue, ProtectedItem.Classes, ProtectedItem.Entry, ProtectedItem.MaxImmSub, ProtectedItem.MaxValueCount, ProtectedItem.MaxValueCountItem, ProtectedItem.RangeOfValues, ProtectedItem.RestrictedBy, ProtectedItem.RestrictedByItem, ProtectedItem.SelfValue
 
Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.aci.ProtectedItem
ALL_USER_ATTRIBUTE_TYPES, ALL_USER_ATTRIBUTE_TYPES_AND_VALUES, ENTRY
 
Constructor Summary
ProtectedItem.RestrictedBy(java.util.Collection<ProtectedItem.RestrictedByItem> items)
          Creates a new instance.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Iterator<ProtectedItem.RestrictedByItem> iterator()
          Returns an iterator of all ProtectedItem.RestrictedByItems.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtectedItem.RestrictedBy

public ProtectedItem.RestrictedBy(java.util.Collection<ProtectedItem.RestrictedByItem> items)
Creates a new instance.

Parameters:
items - the collection of ProtectedItem.RestrictedByItems.
Method Detail

iterator

public java.util.Iterator<ProtectedItem.RestrictedByItem> iterator()
Returns an iterator of all ProtectedItem.RestrictedByItems.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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