public interface OutOfOffice
Modifier and Type | Interface and Description |
---|---|
static class |
OutOfOffice.OOOType |
Modifier and Type | Method and Description |
---|---|
DominoDateRange |
getAwayPeriod()
This function returns time parameters that control OOO.
|
String |
getGeneralMessage()
OOO supports two sets of messages.
|
String |
getGeneralSubject()
OOO supports two sets of messages.
They are called General message/subject and Special message/subject. This function gets the general subject. This is string that will appear as the subject line of the OOO notification. |
Person |
getParentPerson() |
void |
getState(Ref<OutOfOffice.OOOType> retType,
Ref<Boolean> retIsEnabled)
This function returns the version (agent, service) and the state (disabled, enabled)
of the out of office functionality.
The version information can be used to show or hide UI elements that might not be supported for a given version. For example, the agent does not support durations of less than 1 day and some clients might choose not to show the hours in the user interface. When you need to make getState(Ref, Ref) as efficient as possible, call
Person.openOutOfOffice(String, boolean, Database)
with the home mail server and the opened mail database.This function is read only and does not return an error if user ACL rights are below Editor (which are required to turn on/off the Out of office functionality). If getState(Ref, Ref) is called immediately following setEnabled(boolean) it will
not reflect the state set by the setEnabled(boolean) .To see the current state, start a new operation using Person.openOutOfOffice(String, boolean, Database) ,
getState(Ref, Ref) . |
OutOfOffice.OOOType |
getType()
Convenience method to read which kind of OOO system is used (agent or service).
|
boolean |
isEnabled()
Convenience method to check whether the OOO functionality is enabled.
|
boolean |
isExcludeInternet()
This function returns a flag which defines how to treat internet emails.
This functional call is optional. If this flag is set to true OOO notifications will not be generated for
email originating from the internet. |
void |
setAwayPeriod(TemporalAccessor tdStartAway,
TemporalAccessor tdEndAway)
This function validates and sets the time parameters that control OOO.
This information is required for enabling the OOO. If you want turn on OOO functionality for a given period of time the sequence of calls needed is: Person.openOutOfOffice(String, boolean, Database) ,
setAwayPeriod(TemporalAccessor, TemporalAccessor) , and setEnabled(boolean) .When you need to enable OOO (i.e. |
void |
setEnabled(boolean enabled)
This function changes the state of the OOO functionality as indicated by
the
enabled variable.If the OOO functionality is already in the state indicated by the enabled flag, this function does nothing.When you need to enable OOO (i.e. |
void |
setExcludeInternet(boolean exclude)
This function sets a flag which defines how to treat internet emails.
This functional call is optional. If this flag is set to true OOO notifications will not be generated for
email originating from the internet.The default for this flag is true . |
void |
setGeneralMessage(String msg)
OOO supports two sets of notification messages.
They are called General message/subject and Special message/subject. The following text is always appended to the body of the message, where the "Message subject" is obtained from the message which caused the notification to be generated. "Note: This is an automated response to your message "Message subject" sent on 2/12/2009 10:12:17 AM. |
void |
setGeneralSubject(String subject,
boolean displayReturnDate)
OOO supports two sets of notification messages.
They are called General message/subject and Special message/subject. The rest of the people will receive the general message/subject message. This function sets the general subject. If this field is not specified in by this API call, the value defined using Notes Client will be used, otherwise the default for this field is the following text AUTO: Katherine Smith is out of the office (returning 02/23/2009 10:12:17 AM). |
Person getParentPerson()
DominoDateRange getAwayPeriod()
boolean isExcludeInternet()
true
OOO notifications will not be generated for
email originating from the internet. The default for this flag is true
.void setExcludeInternet(boolean exclude)
true
OOO notifications will not be generated for
email originating from the internet.true
.exclude
- true to excludeboolean isEnabled()
getState(Ref, Ref)
internally.OutOfOffice.OOOType getType()
getState(Ref, Ref)
internally.void getState(Ref<OutOfOffice.OOOType> retType, Ref<Boolean> retIsEnabled)
getState(Ref, Ref)
as efficient as possible, call
Person.openOutOfOffice(String, boolean, Database)
with the home mail server and the opened mail database.getState(Ref, Ref)
is called immediately following setEnabled(boolean)
it will
not reflect the state set by the setEnabled(boolean)
.Person.openOutOfOffice(String, boolean, Database)
,
getState(Ref, Ref)
.retType
- returns the type of the OOO system (agent or service)retIsEnabled
- returns whether the service is enabled for the userString getGeneralSubject()
String getGeneralMessage()
void setAwayPeriod(TemporalAccessor tdStartAway, TemporalAccessor tdEndAway)
Person.openOutOfOffice(String, boolean, Database)
,
setAwayPeriod(TemporalAccessor, TemporalAccessor)
, and setEnabled(boolean)
.enabled
flag set to true
)
you should call setAwayPeriod(TemporalAccessor, TemporalAccessor)
prior to calling
setEnabled(boolean)
.Person.openOutOfOffice(String, boolean, Database)
,
setAwayPeriod(TemporalAccessor, TemporalAccessor)
.tdStartAway
- This is date and time when Out of office will begin.tdEndAway
- This is date and time when Out of office will end.void setEnabled(boolean enabled)
enabled
variable.enabled
flag, this function does nothing.enabled
flag set
to true
) you should call setAwayPeriod(TemporalAccessor, TemporalAccessor)
prior to calling setEnabled(boolean)
.setAwayPeriod(TemporalAccessor, TemporalAccessor)
is not called,
setEnabled(boolean)
will use the previous value for start and end.enabled
set to false
)
setAwayPeriod(TemporalAccessor, TemporalAccessor)
does not need to be called.setEnabled(boolean)
is called with the enabled
set
to false
it means you want to disable OOO immediately.Person.openOutOfOffice(String, boolean, Database)
,
setAwayPeriod(TemporalAccessor, TemporalAccessor)
.setEnabled(boolean)
is
used to disable, the OOO service will be auto-disabled immediately.enabled
- true to enablevoid setGeneralSubject(String subject, boolean displayReturnDate)
subject
- string that will appear as the subject line of the OOO notificationdisplayReturnDate
- Boolean which controls whether (“returning <date>”) appears on the subject linevoid setGeneralMessage(String msg)
msg
- message, max 65535 bytes LMBCS encoded (WORD datatype for length)Copyright © 2019–2021 HCL. All rights reserved.