Class SyncInfoMessage

  • All Implemented Interfaces:
    Message

    public class SyncInfoMessage
    extends IntermediateResponse
    Intermediate response message for LDAP content synchronization. See RFC 4533. Message is defined as:
       IntermediateResponse ::= [APPLICATION 25] SEQUENCE {
         responseName     [0] LDAPOID OPTIONAL,
         responseValue    [1] OCTET STRING OPTIONAL }
    
    
       syncInfoValue ::= CHOICE {
         newcookie      [0] syncCookie,
         refreshDelete  [1] SEQUENCE {
           cookie         syncCookie OPTIONAL,
           refreshDone    BOOLEAN DEFAULT TRUE
         },
         refreshPresent [2] SEQUENCE {
           cookie         syncCookie OPTIONAL,
           refreshDone    BOOLEAN DEFAULT TRUE
         },
         syncIdSet      [3] SEQUENCE {
           cookie         syncCookie OPTIONAL,
           refreshDeletes BOOLEAN DEFAULT FALSE,
           syncUUIDs      SET OF syncUUID
         }
       }
     
    Author:
    Middleware Services
    • Constructor Detail

      • SyncInfoMessage

        protected SyncInfoMessage()
        Default constructor.
      • SyncInfoMessage

        public SyncInfoMessage​(DERBuffer buffer)
        Creates a new sync info message.
        Parameters:
        buffer - to decode
    • Method Detail

      • getMessageType

        public SyncInfoMessage.Type getMessageType()
        Returns the message type.
        Returns:
        message type
      • setMessageType

        public void setMessageType​(SyncInfoMessage.Type type)
        Sets the message type.
        Parameters:
        type - message type
      • getCookie

        public byte[] getCookie()
        Returns the sync request cookie.
        Returns:
        sync request cookie
      • setCookie

        public void setCookie​(byte[] value)
        Sets the sync request cookie.
        Parameters:
        value - sync request cookie
      • getRefreshDone

        public boolean getRefreshDone()
        Returns whether refreshes are done.
        Returns:
        refresh done
      • setRefreshDone

        public void setRefreshDone​(boolean b)
        Sets whether refreshes are done.
        Parameters:
        b - refresh done
      • getRefreshDeletes

        public boolean getRefreshDeletes()
        Returns whether to refresh deletes.
        Returns:
        whether to refresh deletes
      • setRefreshDeletes

        public void setRefreshDeletes​(boolean b)
        Sets whether to refresh deletes.
        Parameters:
        b - whether to refresh deletes
      • getEntryUuids

        public java.util.Set<java.util.UUID> getEntryUuids()
        Returns the entry uuids.
        Returns:
        entry uuids
      • addEntryUuids

        public void addEntryUuids​(java.util.UUID... uuids)
        Adds the supplied UUIDs to this message.
        Parameters:
        uuids - to add
      • setEntryUuids

        public void setEntryUuids​(java.util.Set<java.util.UUID> uuids)
        Sets the entry uuids.
        Parameters:
        uuids - entry uuids