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

    Constructors
    Constructor
    Description
    Creates a new instance of VirtualListViewRequestImpl.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Get the number of entries after the target entry that are going to be sent
    byte[]
    Get the AssertionValue
    int
    Get the number of entries before the target entry that are going to be sent
    int
    Get the number of expected entries
    byte[]
    Get the ID used for this request
    int
    Get the position of the target entry
    boolean
    Tells if the VLV target is an assertionValue
    int
     
    boolean
    Tells if the VLV target is an offset
    void
    setAfterCount(int afterCount)
    Set the number of entries to be returned after the target entry
    void
    setAssertionValue(byte[] assertionValue)
    Set the AssertionValue
    void
    setBeforeCount(int beforeCount)
    Set the number of entries to be returned before the target entry
    void
    setContentCount(int contentCount)
    Set the number of entries
    void
    setContextId(byte[] contextId)
    Set the context ID
    void
    setOffset(int offset)
    Set the position of the target entry
    Return a String representing this VirtualListViewRequestImpl.

    Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl

    getOid, isCritical, setCritical

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getBeforeCount in interface VirtualListViewRequest
      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:
      setBeforeCount in interface VirtualListViewRequest
      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:
      getAfterCount in interface VirtualListViewRequest
      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:
      setAfterCount in interface VirtualListViewRequest
      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:
      getOffset in interface VirtualListViewRequest
      Returns:
      The position of the target entry
    • setOffset

      public void setOffset(int offset)
      Set the position of the target entry
      Specified by:
      setOffset in interface VirtualListViewRequest
      Parameters:
      offset - the position of the target entry
    • getContentCount

      public int getContentCount()
      Get the number of expected entries
      Specified by:
      getContentCount in interface VirtualListViewRequest
      Returns:
      The number of expected entries
    • setContentCount

      public void setContentCount(int contentCount)
      Set the number of entries
      Specified by:
      setContentCount in interface VirtualListViewRequest
      Parameters:
      contentCount - The number of entries
    • getAssertionValue

      public byte[] getAssertionValue()
      Get the AssertionValue
      Specified by:
      getAssertionValue in interface VirtualListViewRequest
      Returns:
      The AssertionValue
    • setAssertionValue

      public void setAssertionValue(byte[] assertionValue)
      Set the AssertionValue
      Specified by:
      setAssertionValue in interface VirtualListViewRequest
      Parameters:
      assertionValue - The AssertionValue
    • getContextId

      public byte[] getContextId()
      Get the ID used for this request
      Specified by:
      getContextId in interface VirtualListViewRequest
      Returns:
      The ID used for this request
    • setContextId

      public void setContextId(byte[] contextId)
      Set the context ID
      Specified by:
      setContextId in interface VirtualListViewRequest
      Parameters:
      contextId - The context ID
    • hasOffset

      public boolean hasOffset()
      Tells if the VLV target is an offset
      Specified by:
      hasOffset in interface VirtualListViewRequest
      Returns:
      true if the VLV target is an offset, false otherwise
    • hasAssertionValue

      public boolean hasAssertionValue()
      Tells if the VLV target is an assertionValue
      Specified by:
      hasAssertionValue in interface VirtualListViewRequest
      Returns:
      true if the VLV target is an assertionValue, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
      See Also:
    • toString

      public String toString()
      Return a String representing this VirtualListViewRequestImpl.
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControl