Class MaxValueCountItem
- java.lang.Object
-
- org.apache.directory.api.ldap.aci.ProtectedItem
-
- org.apache.directory.api.ldap.aci.protectedItem.MaxValueCountItem
-
public class MaxValueCountItem extends ProtectedItem
Restricts the maximum number of attribute values allowed for a specified attribute type. It is examined if the protected item is an attribute value of the specified type and the permission sought is add. Values of that attribute in the entry are counted without regard to context or access control and as though the operation which adds the values were successful. If the number of values in the attribute exceeds maxCount, the ACI item is treated as not granting add access.- Author:
- Apache Directory Project
-
-
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
Constructors Constructor Description MaxValueCountItem(Set<MaxValueCountElem> items)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Iterator<MaxValueCountElem>
iterator()
Gets an iterator of allMaxValueCountElem
s.String
toString()
-
-
-
Constructor Detail
-
MaxValueCountItem
public MaxValueCountItem(Set<MaxValueCountElem> items)
Creates a new instance.- Parameters:
items
- the collection ofMaxValueCountElem
s.
-
-
Method Detail
-
iterator
public Iterator<MaxValueCountElem> iterator()
Gets an iterator of allMaxValueCountElem
s.- Returns:
- an iterator of all
MaxValueCountElem
s
-
-