|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.compoze.domino.AbstractItem
com.compoze.domino.AbstractDocument
com.compoze.domino.Memo
com.compoze.domino.Task
public class Task
This class is a Domino task ("to do"). Task instances are obtained
from the Documents class. Methods that access properites on the class require that the
properties were loaded beforehand, when the message was initially retrieved.
Any methods in this class that begin with the string server
make a query to the server, and require that the
PropertyKey.DOCUMENT_ID and PropertyKey.DOCUMENT_TYPE properties to be loaded beforehand. Any additional
property requirements are indicated on each individual method.
Documents.serverCreateTask(PropertyValue[]),
Serialized Form| Field Summary | |
|---|---|
static PropertyKey[] |
ALL_PROPS
Contains an array of all of the properties available on a task. |
| Fields inherited from class com.compoze.domino.AbstractItem |
|---|
m_props, m_session |
| Method Summary | |
|---|---|
NameInfo |
getChair()
Gets the chair for the task. |
java.util.Date |
getDueDateTime()
Gets the due date time for this task. |
java.util.Date[] |
getDueDateTimeArray()
Gets the due date time array for this task. |
java.lang.String |
getDueDateTimeArrayString(java.text.DateFormat dateFormat)
Gets the due date time array for this task formatted with the specified date format. |
java.lang.String |
getDueDateTimeArrayString(java.text.DateFormat dateFormat,
java.lang.String sDelim)
Gets the due date time array for this task formatted with the specified date format. |
java.lang.String |
getDueDateTimeString(java.text.DateFormat dateFormat)
Gets the due date time for this task formatted with the specified date format. |
TaskDueState |
getDueState()
Gets the due state for the task. |
InstanceType |
getInstanceType()
Gets the instance type for this task. |
NameInfo |
getPrincipal()
Gets the principal for the task. |
java.util.Date |
getStartDateTime()
Gets the start date time for this task. |
java.util.Date[] |
getStartDateTimeArray()
Gets the start date time array for this task. |
java.lang.String |
getStartDateTimeArrayString(java.text.DateFormat dateFormat)
Gets the start date time array for this task formatted with the specified date format. |
java.lang.String |
getStartDateTimeArrayString(java.text.DateFormat dateFormat,
java.lang.String sDelim)
Gets the start date time array for this task formatted with the specified date format. |
java.lang.String |
getStartDateTimeString(java.text.DateFormat dateFormat)
Gets the start date time for this task formatted with the specified date format. |
boolean |
isRepeating()
Checks if this task is repeating. |
void |
serverCompleted(boolean bComplete)
Hits the server and mark the task completed. |
void |
serverDelete()
Hits the server to delete the task. |
void |
serverDelete(int iUpdateRule)
Hits the server to delete the task. |
RepeatPattern |
serverGetRepeatPattern()
Hits the server and gets the repeat pattern for this task. |
void |
serverSetRepeatPattern(RepeatPattern pattern)
Hits the server and sets the repeat pattern on the task. |
void |
serverUpdate()
Hits the server to update any changed properties. |
void |
serverUpdate(int iUpdateRule)
Hits the server to update any changed properties. |
void |
setDateTimes(java.util.Date startDate,
java.util.Date dueDate)
Sets the start and due date time for this task. |
| Methods inherited from class com.compoze.domino.AbstractDocument |
|---|
getAttachmentCount, getAttachmentInfo, getAttachmentInfoArray, getDateCreated, getDateCreatedString, getDateModified, getDateModifiedString, getDocumentType, getEmbeddedImageCount, getEmbeddedImageInfo, getEmbeddedImageInfoArray, getID, getParentID, getSize, getSizeInKilos, hasAttachment, serverAddAttachment, serverCopyTo, serverDeleteAttachment, serverMoveTo |
| Methods inherited from class com.compoze.domino.AbstractItem |
|---|
get, getBoolean, getDate, getDateArray, getDouble, getInt, getPropertyKeys, getString, getStringArray, getUpdatedPropertyValues, set, setBoolean, setDate, setDouble, setInt, setString, setStringArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyKey[] ALL_PROPS
| Method Detail |
|---|
public java.util.Date getStartDateTime()
throws DominoException
DominoExceptionPropertyKey.START_DATE_TIME,
getStartDateTimeArray(),
isRepeating()
public java.util.Date[] getStartDateTimeArray()
throws DominoException
DominoExceptionPropertyKey.START_DATE_TIME,
isRepeating()
public java.lang.String getStartDateTimeString(java.text.DateFormat dateFormat)
throws DominoException
dateFormat - the date format (may not be null)
null
DominoExceptionPropertyKey.START_DATE_TIME
public java.lang.String getStartDateTimeArrayString(java.text.DateFormat dateFormat)
throws DominoException
dateFormat - the date format (may not be null)
null
DominoExceptionPropertyKey.START_DATE_TIME
public java.lang.String getStartDateTimeArrayString(java.text.DateFormat dateFormat,
java.lang.String sDelim)
throws DominoException
dateFormat - the date format (may not be null)sDelim - the delimiter (may not be null)
null
DominoExceptionPropertyKey.START_DATE_TIME
public void setDateTimes(java.util.Date startDate,
java.util.Date dueDate)
throws DominoException
Note: the start date must be before the due date. If not, the dates are swapped.
startDate - the start date time or null for no start datedueDate - the due date time or null for no due date
DominoExceptionPropertyKey.START_DATE_TIME,
PropertyKey.START_DATE,
PropertyKey.DUE_DATE_TIME,
PropertyKey.DUE_DATE
public java.util.Date getDueDateTime()
throws DominoException
DominoExceptionPropertyKey.DUE_DATE_TIME,
getDueDateTimeArray(),
isRepeating()
public java.util.Date[] getDueDateTimeArray()
throws DominoException
DominoExceptionPropertyKey.DUE_DATE_TIME,
isRepeating()
public java.lang.String getDueDateTimeString(java.text.DateFormat dateFormat)
throws DominoException
dateFormat - the date format (may not be null)
null
DominoExceptionPropertyKey.DUE_DATE_TIME
public java.lang.String getDueDateTimeArrayString(java.text.DateFormat dateFormat)
throws DominoException
dateFormat - the date format (may not be null)
null
DominoExceptionPropertyKey.DUE_DATE_TIME
public java.lang.String getDueDateTimeArrayString(java.text.DateFormat dateFormat,
java.lang.String sDelim)
throws DominoException
dateFormat - the date format (may not be null)sDelim - the delimiter (may not be null)
null
DominoExceptionPropertyKey.DUE_DATE_TIME
public boolean isRepeating()
throws DominoException
true if the task is repeating; false otherwise
DominoExceptionPropertyKey.REPEATS
public NameInfo getChair()
throws DominoException
DominoExceptionPropertyKey.CHAIR
public TaskDueState getDueState()
throws DominoException
DominoExceptionPropertyKey.DUE_STATE
public InstanceType getInstanceType()
throws DominoException
DominoExceptionPropertyKey.INSTANCE_TYPE
public void serverSetRepeatPattern(RepeatPattern pattern)
throws DominoException
SINGLE; otherwise, this method does nothing.
Note: the repeat pattern is set immediately and cannot be undone.
There is no need to call serverUpdate().
Note: the existing task start date (if set) will be set to the start date of the specified repeat pattern
Note: the due date time property must be loaded prior to calling this method
pattern - the repeat patten (may not be null)
DominoExceptiongetInstanceType(),
PropertyKey.INSTANCE_TYPE,
PropertyKey.DUE_DATE_TIME
public RepeatPattern serverGetRepeatPattern()
throws DominoException
null if this is not a repeating task
DominoExceptionisRepeating(),
PropertyKey.REPEATS
public NameInfo getPrincipal()
throws DominoException
DominoExceptionPropertyKey.PRINCIPAL
public void serverDelete()
throws DominoException
DominoException
public void serverUpdate()
throws DominoException
PropertyKey.DUE_STATE
is not updated then it is set according to the values given with
PropertyKey.START_DATE_TIME, PropertyKey.DUE_DATE_TIME
and PropertyKey.COMPLETED_DATE_TIME if available.
serverUpdate in class MemoDominoExceptionPropertyKey.DUE_STATE,
PropertyKey.START_DATE_TIME,
PropertyKey.DUE_DATE_TIME,
PropertyKey.COMPLETED_DATE_TIME
public void serverUpdate(int iUpdateRule)
throws DominoException
PropertyKey.DUE_STATE
is not updated then it is set according to the values given with
PropertyKey.START_DATE_TIME, PropertyKey.DUE_DATE_TIME
and PropertyKey.COMPLETED_DATE_TIME if available.
iUpdateRule - the update rule (see RepeatPattern.UPDATE_ constants)
DominoExceptionPropertyKey.REPEATS,
PropertyKey.DUE_STATE,
PropertyKey.START_DATE_TIME,
PropertyKey.DUE_DATE_TIME,
PropertyKey.COMPLETED_DATE_TIME
public void serverDelete(int iUpdateRule)
throws DominoException
iUpdateRule - the update rule (see RepeatPattern.UPDATE_ constants)
DominoExceptionPropertyKey.REPEATS,
PropertyKey.START_DATE_TIME,
PropertyKey.END_DATE_TIME
public void serverCompleted(boolean bComplete)
throws DominoException
bComplete - true if mark complete false if mark incomplete
DominoException
|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||