Package org.ldaptive.control.util
Class VirtualListViewParams
java.lang.Object
org.ldaptive.control.util.VirtualListViewParams
Contains data required by the virtual list view operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
VLV after count.private final String
VLV assertion value; mutually exclusive with the target offset.private final int
VLV before count.protected final org.slf4j.Logger
Logger for this class.private final int
VLV target offset; mutually exclusive with the assertion value. -
Constructor Summary
ConstructorsConstructorDescriptionVirtualListViewParams
(int offset, int before, int after) Creates a new virtual list view params.VirtualListViewParams
(String assertion, int before, int after) Creates a new virtual list view params. -
Method Summary
Modifier and TypeMethodDescriptioncreateRequestControl
(boolean critical) Creates a new virtual list view request control using the properties in this VLV params.createRequestControl
(SearchResponse result, boolean critical) Creates a new virtual list view request control using the properties in this VLV params.int
Returns the after count.Returns the assertion value.int
Returns the before count.int
Returns the target offset.toString()
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class. -
beforeCount
private final int beforeCountVLV before count. -
afterCount
private final int afterCountVLV after count. -
targetOffset
private final int targetOffsetVLV target offset; mutually exclusive with the assertion value. -
assertionValue
VLV assertion value; mutually exclusive with the target offset.
-
-
Constructor Details
-
VirtualListViewParams
public VirtualListViewParams(int offset, int before, int after) Creates a new virtual list view params.- Parameters:
offset
- target offsetbefore
- before countafter
- after count
-
VirtualListViewParams
Creates a new virtual list view params.- Parameters:
assertion
- assertion valuebefore
- before countafter
- after count
-
-
Method Details
-
getBeforeCount
public int getBeforeCount()Returns the before count.- Returns:
- before count
-
getAfterCount
public int getAfterCount()Returns the after count.- Returns:
- after count
-
getTargetOffset
public int getTargetOffset()Returns the target offset.- Returns:
- target offset
-
getAssertionValue
Returns the assertion value.- Returns:
- assertion value
-
createRequestControl
Creates a new virtual list view request control using the properties in this VLV params.- Parameters:
critical
- whether the returned control is critical- Returns:
- virtual list view request control
-
createRequestControl
Creates a new virtual list view request control using the properties in this VLV params. The supplied response is inspected and if it contains a VLV response control, it's contextID and/or content count will be passed into the created request control.- Parameters:
result
- of a previous VLV operationcritical
- whether the returned control is critical- Returns:
- virtual list view request control
-
toString
-