Package org.ldaptive.ext
Class MergeRequest.MaxSizeAttributeValueHandler
java.lang.Object
org.ldaptive.ext.MergeRequest.MaxSizeAttributeValueHandler
- All Implemented Interfaces:
Function<List<List<AttributeModification>>,,List<List<AttributeModification>>> MergeRequest.AttributeModificationsHandler
- Enclosing class:
- MergeRequest
public static class MergeRequest.MaxSizeAttributeValueHandler
extends Object
implements MergeRequest.AttributeModificationsHandler
Processes attribute modifications to enforce the maximum number of attribute values in any single attribute. For
attribute values that exceed this limit, a new attribute is created to contain the excess values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intMaximum number of attribute values allowed in a single attribute. -
Constructor Summary
ConstructorsConstructorDescriptionMaxSizeAttributeValueHandler(int size) Creates a new max attribute value size processor. -
Method Summary
-
Field Details
-
maxSize
private final int maxSizeMaximum number of attribute values allowed in a single attribute.
-
-
Constructor Details
-
MaxSizeAttributeValueHandler
public MaxSizeAttributeValueHandler(int size) Creates a new max attribute value size processor.- Parameters:
size- maximum number of attribute values to allow
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<List<List<AttributeModification>>,List<List<AttributeModification>>>
-