|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IExchangeTask
class represents a task in Exchange.
Tasks include regular tasks, recurring tasks, regenerative tasks,
and assigned tasks.
Field Summary | |
static Key |
ACTUAL_WORK
Key that represents the actual work for a task. |
static Key |
ASSOCIATED_TASK_LINK
Represents the property that holds the link between a task and task requests / task notices. |
static Key |
BILLING_INFO
Key that represents the billing info for a task. |
static ItemClass |
CLASS
The ItemClass that represents an Exchange task. |
static Key |
COMPANIES
Key that represents the companies for a task. |
static Key |
DATE_COMPLETED
Key that represents the date completed for a task. |
static Key |
DELEGATOR
Key that represents the total work for a task. |
static Key |
DUE_CALENDAR
Key that represents the due calendar for a task. |
static Key |
IS_COMPLETE
Key that represents the 'is complete' for a task. |
static Key |
IS_TEAM_TASK
Key that represents the 'is team task' for a task. |
static int |
KEYID_ACTUAL_WORK
The int ID for the ACTUAL_WORK key. |
static int |
KEYID_ASSOCIATED_TASK_LINK
The int ID for the ASSOCIATED_TASK_LINK key. |
static int |
KEYID_BILLING_INFO
The int ID for the BILLING_INFO key. |
static int |
KEYID_COMPANIES
The int ID for the COMPANIES key. |
static int |
KEYID_DATE_COMPLETED
The int ID for the DATE_COMPLETED key. |
static int |
KEYID_DELEGATOR
The int ID for the DELEGATOR key. |
static int |
KEYID_DUE_CALENDAR
The int ID for the DUE_CALENDAR key. |
static int |
KEYID_IS_COMPLETE
The int ID for the IS_COMPLETE key. |
static int |
KEYID_IS_TEAM_TASK
The int ID for the IS_TEAM_TASK key. |
static int |
KEYID_OWNER
The int ID for the OWNER key. |
static int |
KEYID_PERCENT_COMPLETE
The int ID for the PERCENT_COMPLETE key. |
static int |
KEYID_RECURRENCE_PATTERN
The int ID for the RECURRENCE_PATTERN key. |
static int |
KEYID_REMINDER_DATE
The int ID for the REMINDER_DATE key. |
static int |
KEYID_START_CALENDAR
The int ID for the START_CALENDAR key. |
static int |
KEYID_TOTAL_WORK
The int ID for the TOTAL_WORK key. |
static Key |
OWNER
Key that represents the total work for a task. |
static Key |
PERCENT_COMPLETE
Key that represents the percent complete for a task. |
static Key |
RECURRENCE_PATTERN
Key that represents the recurrence pattern for a task. |
static Key |
REMINDER_DATE
Key that represents the reminder date for a task. |
static Key |
START_CALENDAR
Key that represents the start calendar for a task. |
static Key |
TOTAL_WORK
Key that represents the total work for a task. |
Fields inherited from interface com.compoze.collab.groupware.ITask |
DUE_DATE, IS_RECURRING, KEYID_DUE_DATE, KEYID_IS_RECURRING, KEYID_START_DATE, KEYID_STATUS, START_DATE, STATUS |
Fields inherited from interface com.compoze.collab.groupware.IGroupwareItem |
CATEGORIES, DATE_CREATED, DATE_LAST_MODIFIED, IMPORTANCE, KEYID_CATEGORIES, KEYID_DATE_CREATED, KEYID_DATE_LAST_MODIFIED, KEYID_IMPORTANCE, KEYID_SIZE, KEYID_SUBJECT, SIZE, SUBJECT |
Fields inherited from interface com.compoze.collab.messaging.IMessagingItem |
BODY, BODY_HTML, KEYID_BODY, KEYID_BODY_HTML |
Fields inherited from interface com.compoze.collab.IItem |
ID, ITEM_CLASS, KEYID_ID, KEYID_ITEM_CLASS, KEYID_PARENT_ID, MINIMUM_ITEM_KEYS, PARENT_ID |
Fields inherited from interface com.compoze.collab.exchange.IExchangeItem |
BODY_RTF, CONTACT_NAMES, CREATOR_ENTRYID, FLAG, FLAG_REMIND_BY, FLAG_TEXT, HAS_REMINDER, HIDE_ATTACHMENTS, ICON_INDEX, IS_HIDDEN, KEYID_BODY_RTF, KEYID_CONTACT_NAMES, KEYID_CREATOR_ENTRYID, KEYID_FLAG, KEYID_FLAG_REMIND_BY, KEYID_FLAG_TEXT, KEYID_HAS_REMINDER, KEYID_HIDE_ATTACHMENTS, KEYID_ICON_INDEX, KEYID_IS_HIDDEN, KEYID_MILEAGE, KEYID_NORMALIZED_SUBJECT, KEYID_PRIORITY, KEYID_SENSITIVITY, KEYID_SUBJECT_PREFIX, MILEAGE, NORMALIZED_SUBJECT, PRIORITY, SENSITIVITY, SUBJECT_PREFIX |
Fields inherited from interface com.compoze.collab.IAttachmentSupport |
ATTACHMENTS, HAS_ATTACHMENT, KEYID_ATTACHMENTS, KEYID_HAS_ATTACHMENT |
Method Summary | |
void |
decline(boolean bSend,
boolean bSaveInSent)
Declines the task, if it is has already been accepted. |
int |
getActualWork()
Gets the actual work. |
java.lang.String |
getBillingInfo()
Gets the billing info. |
java.lang.String[] |
getCompanies()
Gets the companies. |
java.util.Date |
getDateCompleted()
Gets the date completed. |
java.lang.String |
getDelegator()
Gets the delegator. |
java.util.Calendar |
getDueCalendar()
Gets the due calendar. |
boolean |
getHasReminder()
Gets the 'has reminder' flag. |
java.lang.String |
getOwner()
Gets the owner. |
double |
getPercentComplete()
Gets the percent complete. |
TaskRecurrencePattern |
getRecurrencePattern()
Gets the recurrence pattern. |
java.util.Date |
getReminderDate()
Gets the reminder date. |
java.util.Calendar |
getStartCalendar()
Gets the start calendar. |
int |
getTotalWork()
Gets the total work. |
boolean |
isComplete()
Gets whether the task is complete. |
boolean |
isCurrentUserRecipient()
Returns if the current user is a recipient of the task. |
boolean |
isTeamTask()
Gets if the task is a team assigned task. |
void |
markComplete(boolean bComplete,
boolean bSend,
boolean bSaveInSent)
Marks the task as complete and commits the changes to the Exchange store. |
void |
setActualWork(int iActualWork)
Sets the actual work. |
void |
setBillingInfo(java.lang.String sBillingInfo)
Sets the billing info. |
void |
setCompanies(java.lang.String[] sCompanies)
Sets the companies. |
void |
setDateCompleted(java.util.Date dateCompleted)
Sets the date completed. |
void |
setDelegator(java.lang.String sDelegator)
Sets the delegator. |
void |
setHasReminder(boolean bHasReminder)
Sets the 'has reminder' flag. |
void |
setOwner(java.lang.String sOwner)
Sets the owner. |
void |
setPercentComplete(double dPercentComplete)
Sets the percent complete. |
void |
setRecurrencePattern(TaskRecurrencePattern pattern)
Sets the recurrence pattern. |
void |
setReminderDate(java.util.Date reminderDate)
Sets the reminder date. |
void |
setStatus(TaskStatus status)
Sets the status of the task. |
void |
setTotalWork(int iTotalWork)
Sets the total work. |
void |
skip()
Skips an instance of a task, if it is a recurring task. |
Methods inherited from interface com.compoze.collab.groupware.ITask |
getDueDate, getStartDate, getStatus, isRecurring, setDueDate, setDueDate, setStartDate, setStartDate |
Methods inherited from interface com.compoze.collab.groupware.IGroupwareItem |
getBodyHtml, getBodyHtml, getCategories, getDateCreated, getDateLastModified, getImportance, getNormalizedSubject, getSize, getSubject, getSubject, getSubjectPrefix, setBodyHtml, setCategories, setImportance, setSubject |
Methods inherited from interface com.compoze.collab.messaging.IMessagingItem |
getBody, setBody |
Methods inherited from interface com.compoze.collab.IItem |
commit, containsKey, containsKey, copyProperties, copyTo, delete, fetchProperties, getAttribute, getEnum, getID, getInputStream, getItemClass, getOutputStream, getParent, getParent, getParentID, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getReader, getRootContainer, getSession, getWriter, isMissing, moveTo, removeAttribute, removeProperty, setAttribute, setProperties, setProperty, setProperty, setProperty |
Methods inherited from interface com.compoze.collab.exchange.IExchangeItem |
getBodyRtf, getContactNames, getFlagStatus, getFlagText, getHideAttachments, getMileage, getPriority, getSensitivity, getSubjectPrefix, isHidden, setBodyRtf, setContactNames, setFlagStatus, setFlagText, setHideAttachments, setMileage, setPriority, setSensitivity, setSubjectPrefix |
Methods inherited from interface com.compoze.collab.IAttachmentSupport |
addAttachment, getAttachment, getAttachmentCount, getAttachments, hasAttachment |
Field Detail |
public static final int KEYID_ACTUAL_WORK
int
ID for the ACTUAL_WORK
key.public static final int KEYID_BILLING_INFO
int
ID for the BILLING_INFO
key.public static final int KEYID_COMPANIES
int
ID for the COMPANIES
key.public static final int KEYID_DATE_COMPLETED
int
ID for the DATE_COMPLETED
key.public static final int KEYID_DUE_CALENDAR
int
ID for the DUE_CALENDAR
key.public static final int KEYID_IS_COMPLETE
int
ID for the IS_COMPLETE
key.public static final int KEYID_IS_TEAM_TASK
int
ID for the IS_TEAM_TASK
key.public static final int KEYID_OWNER
int
ID for the OWNER
key.public static final int KEYID_PERCENT_COMPLETE
int
ID for the PERCENT_COMPLETE
key.public static final int KEYID_RECURRENCE_PATTERN
int
ID for the RECURRENCE_PATTERN
key.public static final int KEYID_REMINDER_DATE
int
ID for the REMINDER_DATE
key.public static final int KEYID_START_CALENDAR
int
ID for the START_CALENDAR
key.public static final int KEYID_TOTAL_WORK
int
ID for the TOTAL_WORK
key.public static final int KEYID_DELEGATOR
int
ID for the DELEGATOR
key.public static final int KEYID_ASSOCIATED_TASK_LINK
int
ID for the ASSOCIATED_TASK_LINK
key.public static final Key ACTUAL_WORK
public static final Key BILLING_INFO
public static final Key COMPANIES
public static final Key DATE_COMPLETED
public static final Key DUE_CALENDAR
public static final Key IS_COMPLETE
public static final Key IS_TEAM_TASK
public static final Key PERCENT_COMPLETE
public static final Key RECURRENCE_PATTERN
public static final Key REMINDER_DATE
public static final Key START_CALENDAR
public static final Key TOTAL_WORK
public static final Key DELEGATOR
public static final Key OWNER
public static final Key ASSOCIATED_TASK_LINK
public static final ItemClass CLASS
Method Detail |
public void setActualWork(int iActualWork) throws CollaborationException
iActualWork
- the actual workCollaborationException
- if there was an error setting the actual workpublic int getActualWork() throws CollaborationException
CollaborationException
- if there was an error getting the actual workPropertyMissingException
- if the property was requested but not availableACTUAL_WORK
public void setBillingInfo(java.lang.String sBillingInfo) throws CollaborationException
sBillingInfo
- the billing infoCollaborationException
- if there was an error setting the billing infopublic java.lang.String getBillingInfo() throws CollaborationException
CollaborationException
- if there was an error getting the billing infosetBillingInfo(String)
public void setCompanies(java.lang.String[] sCompanies) throws CollaborationException
sCompanies
- the companiesCollaborationException
- if there was an error setting the companiespublic java.lang.String[] getCompanies() throws CollaborationException
CollaborationException
- if there was an error getting the companiessetCompanies(String[])
public void setDelegator(java.lang.String sDelegator) throws CollaborationException
sDelegator
- the delegator for this task.CollaborationException
- if there was an error setting the delegatorpublic java.lang.String getDelegator() throws CollaborationException
CollaborationException
- if there was an error getting the delegatorsetDelegator(String)
public void setOwner(java.lang.String sOwner) throws CollaborationException
sOwner
- the owner for this task.CollaborationException
- if there was an error setting the ownerpublic java.lang.String getOwner() throws CollaborationException
CollaborationException
- if there was an error getting the ownersetOwner(String)
public void setDateCompleted(java.util.Date dateCompleted) throws CollaborationException
null
object will set the
following keys and values:
ITask.STATUS
to COMPLETED
.
IExchangeTask.PERCENT_COMPLETE
to 1.0
.
IExchangeTask.IS_COMPLETE
to true
.
dateCompleted
- the date completed (null
implies no
completed date).CollaborationException
- if there was an error setting the date completedpublic java.util.Date getDateCompleted() throws CollaborationException
CollaborationException
- if there was an error getting the date completedsetDateCompleted(Date)
public java.util.Calendar getDueCalendar() throws CollaborationException
CollaborationException
- if there was an error getting the due calendarpublic void setHasReminder(boolean bHasReminder) throws CollaborationException
bHasReminder
- the 'has reminder' flagCollaborationException
- if there was an error setting the 'has reminder' flagpublic boolean getHasReminder() throws CollaborationException
CollaborationException
- if there was an error getting the 'has reminder' flagPropertyMissingException
- if the property was requested but not availablesetHasReminder(boolean)
public void setPercentComplete(double dPercentComplete) throws CollaborationException
IS_COMPLETE
key.
== 1.0
:
ITask.STATUS
to COMPLETED
.
IExchangeTask.IS_COMPLETE
to true
.
== 0.0
:
ITask.STATUS
to NOT_STARTED
.
IExchangeTask.IS_COMPLETE
to false
.
IExchangeTask.DATE_COMPLETE
to null
.
< 1.0 && > 0.0
and isComplete()
is true
:
ITask.STATUS
to IN_PROGRESS
.
IExchangeTask.IS_COMPLETE
to false
.
IExchangeTask.DATE_COMPLETE
to null
.
dPercentComplete
- the percent complete. This value must be >= 0.0,
and <= 1.0.CollaborationException
- if there was an error setting the percent completeIS_COMPLETE
public double getPercentComplete() throws CollaborationException
CollaborationException
- if there was an error getting the percent completePropertyMissingException
- if the property was requested but not availablesetPercentComplete(double)
public void setRecurrencePattern(TaskRecurrencePattern pattern) throws CollaborationException
ITask.IS_RECURRING
to reflect the specified pattern.pattern
- the recurrence pattern. If set to null
, then
the pattern is removed from the task.CollaborationException
- if there was an error setting the recurrence patternpublic TaskRecurrencePattern getRecurrencePattern() throws CollaborationException
CollaborationException
- if there was an error getting the recurrence patternsetRecurrencePattern(TaskRecurrencePattern)
public void setReminderDate(java.util.Date reminderDate) throws CollaborationException
reminderDate
- the reminder date. (null
implies no
reminder date and removes the reminder from the task).CollaborationException
- if there was an error setting the reminder datepublic java.util.Date getReminderDate() throws CollaborationException
CollaborationException
- if there was an error getting the reminder datesetReminderDate(Date)
public java.util.Calendar getStartCalendar() throws CollaborationException
CollaborationException
- if there was an error getting the start calendarpublic void setTotalWork(int iTotalWork) throws CollaborationException
iTotalWork
- the total workCollaborationException
- if there was an error setting the total workpublic int getTotalWork() throws CollaborationException
CollaborationException
- if there was an error getting the total workPropertyMissingException
- if the property was requested but not availablesetTotalWork(int)
public boolean isComplete() throws CollaborationException
CollaborationException
- if there was an error getting the complete statusPropertyMissingException
- if the property was requested but not availablepublic boolean isCurrentUserRecipient() throws CollaborationException
true
if the current user is a recipient of the taskCollaborationException
- if there was an error getting the current recipientpublic boolean isTeamTask() throws CollaborationException
true
if the task is a team assigned taskCollaborationException
- if there was an error getting if the task is assignedPropertyMissingException
- if the property was requested but not availablepublic void decline(boolean bSend, boolean bSaveInSent) throws CollaborationException
bSend
- sends a decline message back to the task
originator.bSaveInSent
- if sending, save to sent itemsOperationUnsupportedException
- alwayspublic void skip() throws CollaborationException
CollaborationException
- if there was an error skipping a task instancepublic void markComplete(boolean bComplete, boolean bSend, boolean bSaveInSent) throws CollaborationException
IS_RECURRING
, then creates the next task in the series, if
one exists.markComplete
in interface ITask
bComplete
- true
if the task is completed,
false otherwisebSend
- true
to send the status if neededbSaveInSent
- if sending, true
to save a copy- Throws:
CollaborationException
- if there was an error updating the task- See Also:
RECURRENCE_PATTERN
,
IS_COMPLETE
,
ITask.DUE_DATE
,
ITask.IS_RECURRING
public void setStatus(TaskStatus status) throws CollaborationException
IS_COMPLETE
key.
TaskStatusEnum.COMPLETED
:
IExchangeTask.PERCENT_COMPLETE
to 1.0
.
IExchangeTask.IS_COMPLETE
to true
.
TaskStatusEnum.NOT_STARTED
:
IExchangeTask.PERCENT_COMPLETE
to 0.0
.
IExchangeTask.IS_COMPLETE
to false
.
IExchangeTask.DATE_COMPLETE
to null
.
isComplete()
is true
:
IExchangeTask.PERCENT_COMPLETE
to 0.0
.
IExchangeTask.IS_COMPLETE
to false
.
IExchangeTask.DATE_COMPLETE
to null
.
setStatus
in interface ITask
status
- the statusCollaborationException
- if there was an error setting the status
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |