org.apache.directory.api.ldap.extras.controls
Class SyncInfoValueImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.controls.AbstractControl
      extended by org.apache.directory.api.ldap.extras.controls.SyncInfoValueImpl
All Implemented Interfaces:
SyncInfoValue, org.apache.directory.api.ldap.model.message.Control

public class SyncInfoValueImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements SyncInfoValue

A simple SyncInfoValue implementation to store control properties.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.SyncInfoValue
OID
 
Constructor Summary
SyncInfoValueImpl()
          Creates a new instance of SyncInfoValueImpl.
SyncInfoValueImpl(boolean isCritical)
          Creates a new instance of SyncInfoValueImpl.
 
Method Summary
 void addSyncUUID(byte[] syncUUID)
          
 boolean equals(Object o)
           
 byte[] getCookie()
          
 List<byte[]> getSyncUUIDs()
          
 SynchronizationInfoEnum getType()
          Get the control type.
 int hashCode()
           
 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)
          
 String toString()
           
 
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
 
Methods inherited from class java.lang.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 Detail

SyncInfoValueImpl

public SyncInfoValueImpl()
Creates a new instance of SyncInfoValueImpl.


SyncInfoValueImpl

public SyncInfoValueImpl(boolean isCritical)
Creates a new instance of SyncInfoValueImpl.

Parameters:
isCritical - The critical flag
Method Detail

getType

public SynchronizationInfoEnum getType()
Get the control type.

Specified by:
getType in interface SyncInfoValue
Returns:
the type : one of newCookie, refreshDelete, refreshPresent or syncIdSet

setType

public void setType(SynchronizationInfoEnum type)

Specified by:
setType in interface SyncInfoValue

getCookie

public byte[] getCookie()

Specified by:
getCookie in interface SyncInfoValue
Returns:
the cookie

setCookie

public void setCookie(byte[] cookie)

Specified by:
setCookie in interface SyncInfoValue
Parameters:
cookie - the cookie to set

isRefreshDone

public boolean isRefreshDone()

Specified by:
isRefreshDone in interface SyncInfoValue
Returns:
the refreshDone

setRefreshDone

public void setRefreshDone(boolean refreshDone)

Specified by:
setRefreshDone in interface SyncInfoValue
Parameters:
refreshDone - the refreshDone to set

isRefreshDeletes

public boolean isRefreshDeletes()

Specified by:
isRefreshDeletes in interface SyncInfoValue
Returns:
the refreshDeletes

setRefreshDeletes

public void setRefreshDeletes(boolean refreshDeletes)

Specified by:
setRefreshDeletes in interface SyncInfoValue
Parameters:
refreshDeletes - the refreshDeletes to set

getSyncUUIDs

public List<byte[]> getSyncUUIDs()

Specified by:
getSyncUUIDs in interface SyncInfoValue
Returns:
the syncUUIDs

setSyncUUIDs

public void setSyncUUIDs(List<byte[]> syncUUIDs)

Specified by:
setSyncUUIDs in interface SyncInfoValue
Parameters:
syncUUIDs - the syncUUIDs to set

addSyncUUID

public void addSyncUUID(byte[] syncUUID)

Specified by:
addSyncUUID in interface SyncInfoValue

hashCode

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

equals

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

toString

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


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