Class OofSettings
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.availability.OofSettings
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class OofSettings extends ComplexProperty implements ISelfValidate
Represents a user's Out of Office (OOF) settings.
-
-
Constructor Summary
Constructors Constructor Description OofSettings()Initializes a new instance of OofSettings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OofExternalAudiencegetAllowExternalOof()Gets a value indicating the authorized external OOF notification.TimeWindowgetDuration()Gets the duration of the OOF status when State is set to OofState.Scheduled.OofExternalAudiencegetExternalAudience()Gets a value indicating who should receive external OOF messages.OofReplygetExternalReply()Gets the OOF response sent to addresses outside the user's domain or trusted domain.OofReplygetInternalReply()Gets the OOF response sent other users in the user's domain or trusted domain.OofStategetState()Gets the user's OOF state.voidsetAllowExternalOof(OofExternalAudience allowExternalOof)Sets a value indicating the authorized external OOF notification.voidsetDuration(TimeWindow duration)Sets the duration of the OOF status when State is set to OofState.Scheduled.voidsetExternalAudience(OofExternalAudience externalAudience)Sets a value indicating who should receive external OOF messages.voidsetExternalReply(OofReply externalReply)Sets the OOF response sent to addresses outside the user's domain or trusted domain.voidsetInternalReply(OofReply internalReply)Sets the OOF response sent other users in the user's domain or trusted domain.voidsetState(OofState state)Sets the user's OOF state.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.voidvalidate()Validates this instance.voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes elements to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, writeAttributesToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
OofSettings
public OofSettings()
Initializes a new instance of OofSettings.
-
-
Method Detail
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- The reader- Returns:
- True if appropriate element was read.
- Throws:
Exception- the exception
-
writeElementsToXml
public void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes elements to XML.- Overrides:
writeElementsToXmlin classComplexProperty- Parameters:
writer- The writer- Throws:
Exception- the exception
-
setState
public void setState(OofState state)
Sets the user's OOF state.- Parameters:
state- the new state
-
getExternalAudience
public OofExternalAudience getExternalAudience()
Gets a value indicating who should receive external OOF messages.- Returns:
- the external audience
-
setExternalAudience
public void setExternalAudience(OofExternalAudience externalAudience)
Sets a value indicating who should receive external OOF messages.- Parameters:
externalAudience- the new external audience
-
getDuration
public TimeWindow getDuration()
Gets the duration of the OOF status when State is set to OofState.Scheduled.- Returns:
- the duration
-
setDuration
public void setDuration(TimeWindow duration)
Sets the duration of the OOF status when State is set to OofState.Scheduled.- Parameters:
duration- the new duration
-
getInternalReply
public OofReply getInternalReply()
Gets the OOF response sent other users in the user's domain or trusted domain.- Returns:
- the internal reply
-
setInternalReply
public void setInternalReply(OofReply internalReply)
Sets the OOF response sent other users in the user's domain or trusted domain.- Parameters:
internalReply- the new internal reply
-
getExternalReply
public OofReply getExternalReply()
Gets the OOF response sent to addresses outside the user's domain or trusted domain.- Returns:
- the external reply
-
setExternalReply
public void setExternalReply(OofReply externalReply)
Sets the OOF response sent to addresses outside the user's domain or trusted domain.- Parameters:
externalReply- the new external reply
-
getAllowExternalOof
public OofExternalAudience getAllowExternalOof()
Gets a value indicating the authorized external OOF notification.- Returns:
- the allow external oof
-
setAllowExternalOof
public void setAllowExternalOof(OofExternalAudience allowExternalOof)
Sets a value indicating the authorized external OOF notification.- Parameters:
allowExternalOof- the new allow external oof
-
validate
public void validate() throws Exception
Validates this instance.- Specified by:
validatein interfaceISelfValidate- Overrides:
validatein classComplexProperty- Throws:
Exception- the exception
-
-