Class VirtualListViewRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewRequestImpl
- All Implemented Interfaces:
VirtualListViewRequest, org.apache.directory.api.ldap.model.message.Control
public class VirtualListViewRequestImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements VirtualListViewRequest
Virtual List View control as specified in draft-ietf-ldapext-ldapv3-vlv-09.
VirtualListViewRequest ::= SEQUENCE {
beforeCount INTEGER (0..maxInt),
afterCount INTEGER (0..maxInt),
target CHOICE {
byOffset [0] SEQUENCE {
offset INTEGER (1 .. maxInt),
contentCount INTEGER (0 .. maxInt) },
greaterThanOrEqual [1] AssertionValue },
contextID OCTET STRING OPTIONAL }
Simplistic implementation that only supports byOffset choice.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface VirtualListViewRequest
OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of VirtualListViewRequestImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the number of entries after the target entry that are going to be sentbyte[]Get the AssertionValueintGet the number of entries before the target entry that are going to be sentintGet the number of expected entriesbyte[]Get the ID used for this requestintGet the position of the target entrybooleanTells if the VLV target is an assertionValueinthashCode()booleanTells if the VLV target is an offsetvoidsetAfterCount(int afterCount) Set the number of entries to be returned after the target entryvoidsetAssertionValue(byte[] assertionValue) Set the AssertionValuevoidsetBeforeCount(int beforeCount) Set the number of entries to be returned before the target entryvoidsetContentCount(int contentCount) Set the number of entriesvoidsetContextId(byte[] contextId) Set the context IDvoidsetOffset(int offset) Set the position of the target entrytoString()Return a String representing this VirtualListViewRequestImpl.Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCriticalMethods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
Constructor Details
-
VirtualListViewRequestImpl
public VirtualListViewRequestImpl()Creates a new instance of VirtualListViewRequestImpl.
-
-
Method Details
-
getBeforeCount
public int getBeforeCount()Get the number of entries before the target entry that are going to be sent- Specified by:
getBeforeCountin interfaceVirtualListViewRequest- Returns:
- The number of entries before the target entry that are going to be sent
-
setBeforeCount
public void setBeforeCount(int beforeCount) Set the number of entries to be returned before the target entry- Specified by:
setBeforeCountin interfaceVirtualListViewRequest- Parameters:
beforeCount- The number of entries to be returned before the target entry
-
getAfterCount
public int getAfterCount()Get the number of entries after the target entry that are going to be sent- Specified by:
getAfterCountin interfaceVirtualListViewRequest- Returns:
- The number of entries after the target entry that are going to be sent
-
setAfterCount
public void setAfterCount(int afterCount) Set the number of entries to be returned after the target entry- Specified by:
setAfterCountin interfaceVirtualListViewRequest- Parameters:
afterCount- The number of entries to be returned after the target entry
-
getOffset
public int getOffset()Get the position of the target entry- Specified by:
getOffsetin interfaceVirtualListViewRequest- Returns:
- The position of the target entry
-
setOffset
public void setOffset(int offset) Set the position of the target entry- Specified by:
setOffsetin interfaceVirtualListViewRequest- Parameters:
offset- the position of the target entry
-
getContentCount
public int getContentCount()Get the number of expected entries- Specified by:
getContentCountin interfaceVirtualListViewRequest- Returns:
- The number of expected entries
-
setContentCount
public void setContentCount(int contentCount) Set the number of entries- Specified by:
setContentCountin interfaceVirtualListViewRequest- Parameters:
contentCount- The number of entries
-
getAssertionValue
public byte[] getAssertionValue()Get the AssertionValue- Specified by:
getAssertionValuein interfaceVirtualListViewRequest- Returns:
- The AssertionValue
-
setAssertionValue
public void setAssertionValue(byte[] assertionValue) Set the AssertionValue- Specified by:
setAssertionValuein interfaceVirtualListViewRequest- Parameters:
assertionValue- The AssertionValue
-
getContextId
public byte[] getContextId()Get the ID used for this request- Specified by:
getContextIdin interfaceVirtualListViewRequest- Returns:
- The ID used for this request
-
setContextId
public void setContextId(byte[] contextId) Set the context ID- Specified by:
setContextIdin interfaceVirtualListViewRequest- Parameters:
contextId- The context ID
-
hasOffset
public boolean hasOffset()Tells if the VLV target is an offset- Specified by:
hasOffsetin interfaceVirtualListViewRequest- Returns:
trueif the VLV target is an offset,falseotherwise
-
hasAssertionValue
public boolean hasAssertionValue()Tells if the VLV target is an assertionValue- Specified by:
hasAssertionValuein interfaceVirtualListViewRequest- Returns:
trueif the VLV target is an assertionValue,falseotherwise
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
equals
- Overrides:
equalsin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
toString
Return a String representing this VirtualListViewRequestImpl.- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl
-