Class SyncDoneValueImpl

java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValueImpl
All Implemented Interfaces:
SyncDoneValue, org.apache.directory.api.ldap.model.message.Control

public class SyncDoneValueImpl extends org.apache.directory.api.ldap.model.message.controls.AbstractControl implements SyncDoneValue
A simple SyncDoneValue implementation to store control properties.
Version:
$Rev$, $Date$
Author:
Apache Directory Project
  • Field Summary

    Fields inherited from interface SyncDoneValue

    OID
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of SyncDoneValueImpl.
    SyncDoneValueImpl(boolean isCritical)
    Creates a new instance of SyncDoneValueImpl.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    byte[]
    get the cookie
    int
     
    boolean
    Tells if the refreshDeletes flag is set to true
    void
    setCookie(byte[] cookie)
    Set the cookie
    void
    setRefreshDeletes(boolean refreshDeletes)
    Set the refreshDeletes flag
     

    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

    • SyncDoneValueImpl

      public SyncDoneValueImpl()
      Creates a new instance of SyncDoneValueImpl.
    • SyncDoneValueImpl

      public SyncDoneValueImpl(boolean isCritical)
      Creates a new instance of SyncDoneValueImpl.
      Parameters:
      isCritical - The critical flag
  • Method Details

    • getCookie

      public byte[] getCookie()
      get the cookie
      Specified by:
      getCookie in interface SyncDoneValue
      Returns:
      the cookie
    • setCookie

      public void setCookie(byte[] cookie)
      Set the cookie
      Specified by:
      setCookie in interface SyncDoneValue
      Parameters:
      cookie - cookie to be set
    • isRefreshDeletes

      public boolean isRefreshDeletes()
      Tells if the refreshDeletes flag is set to true
      Specified by:
      isRefreshDeletes in interface SyncDoneValue
      Returns:
      true, if refreshDeletes flag is set, false otherwise
    • setRefreshDeletes

      public void setRefreshDeletes(boolean refreshDeletes)
      Set the refreshDeletes flag
      Specified by:
      setRefreshDeletes in interface SyncDoneValue
      Parameters:
      refreshDeletes - set the refreshDeletes flag
    • 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()
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
      See Also: