Package com.isode.dsapi.config
Class MESHAgreementReport
java.lang.Object
com.isode.dsapi.config.ManagedObject
com.isode.dsapi.config.MESHAgreementReport
MESHAgreementReport encapsulates the reported state of a MESH agreement.
This maps to a single virtual entry, named by the agreement ID. Such
entries area always subordinate to 'cm=mesh,cn=config'.
- Since:
- 16.3
-
Field Summary
Fields inherited from class com.isode.dsapi.config.ManagedObject
logger
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.isode.dsapi.config.ManagedObject
addAttribute, addAttribute, addAttribute, addAttributeValue, addAttributeValue, addEntry, addOC, checkMandatory, checkMandatory, checkMandatory, checkMandatory, commit, commitNoRefresh, createAP, createAttributeType, createDN, createPA, createRDN, createRDN, getAttribute, getAttributeDefaultWhenNull, getDN, getIsodeDirectorySession, getMultiValueBer, getMultiValuedInteger, getMultiValuedInteger, getMultiValuedString, getMultiValuedString, getPA, getValue, getValueAttrTypeFromOID, getValueBer, getValueBoolean, getValueDate, getValueDate, getValueDN, getValueInteger, getValueInteger, getValueString, getValueString, getValueStringFromAttribute, hasAttributeChanged, hasChanges, remove, removeAttr, removeStringValue, reset, reset, updateAttr, updateAttr, updateAttr, updateBoolean, updateDN, updateInteger, updateMultiValuedBER, updateMultiValuedInteger, updateMultiValuedString, updatePA, updatePA, updateString
-
Constructor Details
-
MESHAgreementReport
Constructor.- Parameters:
entry
- Entry to create from. Must not be null.ds
- Isode directory session. Must not be null.- Throws:
ConfigOpFailedException
- if mandatory attributes are not loaded
-
-
Method Details
-
load
Description copied from class:ManagedObject
Load values from an entry. No directory operation should be done in this method.Mandatory variables are assigned only after everything is ok. This is done so during re-loading, if there are exceptions and even then the object is used, there is no crash by using mandatory variables that are assumed to have non-null values.
- Specified by:
load
in classManagedObject
- Parameters:
entry
- Entry representing the object, could be null if the existing entry has to be reloaded- Throws:
ConfigOpFailedException
- if mandatory attributes are not loaded
-
getID
Get the ID of the monitored agreement.- Returns:
- The ID of the agreement, never null.
-
getState
Get the agreement state as a string.- Returns:
- The MESH.AgreementState, never null.
-
getLastUpdateTime
Get the last update time.- Returns:
- The last update time, can be null.
-
getSyncedWith
Get the set of servers synceed with.- Returns:
- Set of integers, can be null.
-