org.apache.directory.api.ldap.extras.controls
Interface SyncInfoValue

All Superinterfaces:
org.apache.directory.api.ldap.model.message.Control
All Known Implementing Classes:
SyncInfoValueImpl

public interface SyncInfoValue
extends org.apache.directory.api.ldap.model.message.Control

A syncInfoValue object, as defined in RFC 4533 ;

 2.5.  Sync Info Message

    The Sync Info Message is an LDAP Intermediate Response Message
    [RFC4511] where responseName is the object identifier
    1.3.6.1.4.1.4203.1.9.1.4 and responseValue contains a BER-encoded
    syncInfoValue.  The criticality is FALSE (and hence absent).

       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:
Apache Directory Project

Field Summary
static String OID
          This control OID
 
Method Summary
 void addSyncUUID(byte[] syncUUID)
           
 byte[] getCookie()
           
 List<byte[]> getSyncUUIDs()
           
 SynchronizationInfoEnum getType()
          Get the control type.
 boolean isRefreshDeletes()
           
 boolean isRefreshDone()
           
 void setCookie(byte[] cookie)
           
 void setRefreshDeletes(boolean refreshDeletes)
           
 void setRefreshDone(boolean refreshDone)
           
 void setSyncUUIDs(List<byte[]> syncUUIDs)
           
 void setType(SynchronizationInfoEnum type)
           
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
 

Field Detail

OID

static final String OID
This control OID

See Also:
Constant Field Values
Method Detail

getType

SynchronizationInfoEnum getType()
Get the control type.

Returns:
the type : one of newCookie, refreshDelete, refreshPresent or syncIdSet

setType

void setType(SynchronizationInfoEnum type)
Parameters:
syncMode - the syncMode to set

getCookie

byte[] getCookie()
Returns:
the cookie

setCookie

void setCookie(byte[] cookie)
Parameters:
cookie - the cookie to set

isRefreshDone

boolean isRefreshDone()
Returns:
the refreshDone

setRefreshDone

void setRefreshDone(boolean refreshDone)
Parameters:
refreshDone - the refreshDone to set

isRefreshDeletes

boolean isRefreshDeletes()
Returns:
the refreshDeletes

setRefreshDeletes

void setRefreshDeletes(boolean refreshDeletes)
Parameters:
refreshDeletes - the refreshDeletes to set

getSyncUUIDs

List<byte[]> getSyncUUIDs()
Returns:
the syncUUIDs

setSyncUUIDs

void setSyncUUIDs(List<byte[]> syncUUIDs)
Parameters:
syncUUIDs - the syncUUIDs to set

addSyncUUID

void addSyncUUID(byte[] syncUUID)
Parameters:
syncUUIDs - the syncUUIDs to set


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.