Class SyncInfoValueImpl

java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractResponse
org.apache.directory.api.ldap.model.message.AbstractResultResponse
org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValueImpl
All Implemented Interfaces:
SyncInfoValue, org.apache.directory.api.ldap.model.message.IntermediateResponse, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Response, org.apache.directory.api.ldap.model.message.ResultResponse

public class SyncInfoValueImpl extends org.apache.directory.api.ldap.model.message.IntermediateResponseImpl implements SyncInfoValue
A simple SyncInfoValue implementation to store response properties.
Version:
$Rev$, $Date$
Author:
Apache Directory Project
  • Field Summary

    Fields inherited from class org.apache.directory.api.ldap.model.message.IntermediateResponseImpl

    responseName, responseValue

    Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse

    ldapResult

    Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage

    controls

    Fields inherited from interface SyncInfoValue

    OID
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    addSyncUUID(byte[] syncUUID)
    Set the syncUUID
    boolean
     
    byte[]
    Get the cookie
    Get the value type.
    List<byte[]>
    Get the syncUUIDs
    int
     
    boolean
    Tells if the refreshDeletes flag is set to true
    boolean
    Tells if the refreshDone flag is set to true
    void
    setCookie(byte[] cookie)
    Set the cookie
    void
    setRefreshDeletes(boolean refreshDeletes)
    Set the refreshDeletes flag
    void
    setRefreshDone(boolean refreshDone)
    Set the refreshDone flag
    void
    Set the the synchronization type
    void
    setSyncUUIDs(List<byte[]> syncUUIDs)
    Set the syncUUIDs
     

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

    getResponseName, getResponseValue, setResponseName, setResponseValue

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

    getLdapResult

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

    addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString

    Methods inherited from class Object

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

    Methods inherited from interface org.apache.directory.api.ldap.model.message.IntermediateResponse

    getResponseName, getResponseValue, setResponseName, setResponseValue

    Methods inherited from interface org.apache.directory.api.ldap.model.message.Message

    addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId

    Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse

    getLdapResult
  • Constructor Details

    • SyncInfoValueImpl

      public SyncInfoValueImpl()
      Creates a new instance of SyncInfoValueImpl.
  • Method Details

    • getCookie

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

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

      public boolean isRefreshDone()
      Tells if the refreshDone flag is set to true
      Specified by:
      isRefreshDone in interface SyncInfoValue
      Returns:
      the refreshDone
    • setRefreshDone

      public void setRefreshDone(boolean refreshDone)
      Set the refreshDone flag
      Specified by:
      setRefreshDone in interface SyncInfoValue
      Parameters:
      refreshDone - the refreshDone to set
    • isRefreshDeletes

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

      public void setRefreshDeletes(boolean refreshDeletes)
      Set the refreshDeletes flag
      Specified by:
      setRefreshDeletes in interface SyncInfoValue
      Parameters:
      refreshDeletes - the refreshDeletes to set
    • getSyncUUIDs

      public List<byte[]> getSyncUUIDs()
      Get the syncUUIDs
      Specified by:
      getSyncUUIDs in interface SyncInfoValue
      Returns:
      the syncUUIDs
    • setSyncUUIDs

      public void setSyncUUIDs(List<byte[]> syncUUIDs)
      Set the syncUUIDs
      Specified by:
      setSyncUUIDs in interface SyncInfoValue
      Parameters:
      syncUUIDs - the syncUUIDs to set
    • addSyncUUID

      public void addSyncUUID(byte[] syncUUID)
      Set the syncUUID
      Specified by:
      addSyncUUID in interface SyncInfoValue
      Parameters:
      syncUUID - the syncUUIDs to set
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
      See Also:
    • getSyncInfoValueType

      public SynchronizationInfoEnum getSyncInfoValueType()
      Description copied from interface: SyncInfoValue
      Get the value type.
      Specified by:
      getSyncInfoValueType in interface SyncInfoValue
      Returns:
      the type : one of newCookie, refreshDelete, refreshPresent or syncIdSet
    • setSyncInfoValueType

      public void setSyncInfoValueType(SynchronizationInfoEnum type)
      Description copied from interface: SyncInfoValue
      Set the the synchronization type
      Specified by:
      setSyncInfoValueType in interface SyncInfoValue
      Parameters:
      type - the synchronization type to set