|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.exchange.AbstractItem | +--com.compoze.exchange.Message | +--com.compoze.exchange.Task
This class is an Exchange task. Task instances are obtained
from the Tasks
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.MESSAGE_ID
and PropertyKey.MESSAGE_TYPE
properties to be loaded beforehand. Any additional
property requirements are indicated on each individual method.
Field Summary | |
static PropertyKey[] |
ALL_PROPS
Contains an array of all of the properties available on a task. |
Fields inherited from class com.compoze.exchange.AbstractItem |
m_props, m_session |
Method Summary | |
int |
getActualWork()
Gets the actual work of the task. |
java.lang.String |
getBillingInfo()
Gets the billing info of the task. |
java.lang.String[] |
getCompanies()
Gets the companies of the task. |
java.lang.String[] |
getContactNames()
Gets the contact names of the task. |
java.util.Date |
getDateCompleted()
Gets the date completed of the task. |
java.util.Calendar |
getDueCalendar()
Gets the due date of the task as a calendar object configured to the GMT time zone. |
java.util.Date |
getDueDate()
Gets the due date of the task. |
boolean |
getHasReminder()
Gets whether the task has a reminder. |
java.lang.String |
getMileage()
Gets the mileage of the task. |
double |
getPercentComplete()
Gets the percent complete of the task. |
TaskRecurrencePattern |
getRecurrencePattern()
Gets the recurrence pattern. |
java.util.Date |
getReminderDate()
Gets the date for the reminder. |
java.util.Calendar |
getStartCalendar()
Gets the start date of the task as a calendar object configured to the GMT time zone. |
java.util.Date |
getStartDate()
Gets the start date of the task. |
TaskStatus |
getTaskStatus()
Gets the status of the task. |
int |
getTotalWork()
Gets the total work of the task. |
boolean |
isComplete()
Checks the complete flag of the task. |
boolean |
isCurrentUserRecipient()
Determines if the current user is a recipient of the message. |
boolean |
isRecurring()
Gets whether the task is recurring or not. |
boolean |
isTaskRequest()
Determines if a task is a task request. |
boolean |
isTeamTask()
Gets whether or not not this task is a "team task". |
void |
serverDecline(PropertyValue[] propValues,
boolean bSend,
boolean bSaveInSent)
Declines a task that has already been accepted. |
void |
serverMarkComplete(PropertyValue[] propValues,
boolean bSend,
boolean bSaveInSent)
Marks this task complete and creates a message to the task originator if this task was delegated through a task request. |
void |
serverSkip()
Sets the task due date to the next available due date (only for recurring, non-regenerating tasks). |
void |
serverUpdate(boolean bSaveSent)
Updates a task and sends a task request update if applicable. |
void |
setActualWork(int iActualWork)
Sets the actual work of the task. |
void |
setBillingInfo(java.lang.String sBillingInfo)
Sets the billing info of the task. |
void |
setCompanies(java.lang.String[] companies)
Sets the companies of the task. |
void |
setComplete(boolean bFlag)
Sets the complete flag of the task. |
void |
setContactNames(java.lang.String[] contactNames)
Sets the contact names of the task. |
void |
setDateCompleted(java.util.Date dateCompleted)
Sets the date completed of the task. |
void |
setDateCompleted(int iMonth,
int iDay,
int iYear)
Sets the date completed. |
void |
setDueDate(java.util.Date dueDate)
Sets the due date of the task. |
void |
setDueDate(int iMonth,
int iDay,
int iYear)
Sets the due date of the task. |
void |
setHasReminder(boolean bSetReminder)
Sets whether the task has a reminder. |
void |
setMileage(java.lang.String sMileage)
Sets the mileage of the task. |
void |
setPercentComplete(double dPercentComplete)
Sets the percent complete of the task. |
void |
setRecurrencePattern(TaskRecurrencePattern pattern)
Sets the recurrence pattern for this task (set to TaskRecurrencePattern.NONE to clear). |
void |
setReminderDate(java.util.Date date)
Sets the date for the reminder. |
void |
setSender(AddressEntry addressEntry)
This method is not allowed on this Message type. |
void |
setStartDate(java.util.Date startDate)
Sets the start date of the task. |
void |
setStartDate(int iMonth,
int iDay,
int iYear)
Sets the start date of the task. |
void |
setTaskStatus(TaskStatus status)
Sets the status of the task. |
void |
setTotalWork(int iTotalWork)
Sets the total work of the task. |
Methods inherited from class com.compoze.exchange.AbstractItem |
get, getBoolean, getByteArray, getDate, getDouble, getInt, getInvalidPropertyValues, getPropertyKeys, getString, getStringArray, getUpdatedPropertyValues, set, setBoolean, setByteArray, setDate, setDouble, setInt, setString, setStringArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final PropertyKey[] ALL_PROPS
Method Detail |
public java.lang.String getBillingInfo() throws ExchangeException
PropertyKey.BILLING_INFO
public void setBillingInfo(java.lang.String sBillingInfo) throws ExchangeException
sBillingInfo
- the billing info of the taskPropertyKey.BILLING_INFO
public java.lang.String getMileage() throws ExchangeException
PropertyKey.MILEAGE
public void setMileage(java.lang.String sMileage) throws ExchangeException
sMileage
- the mileage of the taskPropertyKey.MILEAGE
public java.lang.String[] getCompanies() throws ExchangeException
PropertyKey.COMPANIES
public void setCompanies(java.lang.String[] companies) throws ExchangeException
companies
- the companies of the taskPropertyKey.COMPANIES
public java.lang.String[] getContactNames() throws ExchangeException
PropertyKey.CONTACT_NAMES
public void setContactNames(java.lang.String[] contactNames) throws ExchangeException
contactNames
- the contact names of the taskPropertyKey.CONTACT_NAMES
public java.util.Date getStartDate() throws ExchangeException
PropertyKey.TASK_START_DATE
,
(Date)
,
(int, int, int)
public java.util.Calendar getStartCalendar() throws ExchangeException
PropertyKey.TASK_START_DATE
public void setStartDate(java.util.Date startDate) throws ExchangeException
startDate
- the start date of the taskPropertyKey.TASK_START_DATE
public void setStartDate(int iMonth, int iDay, int iYear) throws ExchangeException
iMonth
- the month (0 == January)iDay
- the day of the month (first day of month is 1)iYear
- the yearpublic java.util.Date getDueDate() throws ExchangeException
PropertyKey.TASK_DUE_DATE
,
(Date)
,
(int, int, int)
public java.util.Calendar getDueCalendar() throws ExchangeException
PropertyKey.TASK_DUE_DATE
public void setDueDate(java.util.Date dueDate) throws ExchangeException
dueDate
- the due date of the taskPropertyKey.TASK_DUE_DATE
,
(int, int, int)
public void setDueDate(int iMonth, int iDay, int iYear) throws ExchangeException
iMonth
- the month (0 == January)iDay
- the day of the month (first day of month is 1)iYear
- the yearpublic java.util.Date getDateCompleted() throws ExchangeException
PropertyKey.TASK_DATE_COMPLETED
public void setDateCompleted(java.util.Date dateCompleted) throws ExchangeException
dateCompleted
- the date completed of the task (null
for not complete)PropertyKey.TASK_DATE_COMPLETED
public void setDateCompleted(int iMonth, int iDay, int iYear) throws ExchangeException
iMonth
- the month (0 == January)iDay
- the day of the month (first day of month is 1)iYear
- the yearpublic double getPercentComplete() throws ExchangeException
examples: 100% = 1.000000e+000 25% = 2.500000e-001 10% = 1.000000e-001 5% = 5.000000e-002 2.5% = 2.500000e-002
PropertyKey.TASK_PERCENT_COMPLETE
public void setPercentComplete(double dPercentComplete) throws ExchangeException
examples: 100% = 1.000000e+000 25% = 2.500000e-001 10% = 1.000000e-001 5% = 5.000000e-002 2.5% = 2.500000e-002
dPercentComplete
- the percent completePropertyKey.TASK_PERCENT_COMPLETE
public int getTotalWork() throws ExchangeException
PropertyKey.TASK_TOTAL_WORK
public void setTotalWork(int iTotalWork) throws ExchangeException
iTotalWork
- the total work of the task (in minutes)PropertyKey.TASK_TOTAL_WORK
public int getActualWork() throws ExchangeException
PropertyKey.TASK_ACTUAL_WORK
public void setActualWork(int iActualWork) throws ExchangeException
iActualWork
- the actual work of the task (in minutes)PropertyKey.TASK_ACTUAL_WORK
public TaskStatus getTaskStatus() throws ExchangeException
PropertyKey.TASK_STATUS
public void setTaskStatus(TaskStatus status) throws ExchangeException
TaskStatus.COMPLETED
,
the task complete flag is also set to true
.status
- the status of the task (may not be null
)PropertyKey.TASK_STATUS
,
setComplete(boolean)
public void setComplete(boolean bFlag) throws ExchangeException
bFlag
- the complete flag of the task; true
for complete; false
otherwisePropertyKey.TASK_COMPLETE
public boolean isComplete() throws ExchangeException
true
if the task is complete; false
otherwisePropertyKey.TASK_COMPLETE
public boolean isCurrentUserRecipient() throws ExchangeException
true
if the current user is a recipient of the
messagepublic boolean isRecurring() throws ExchangeException
true
if the task is recurring, false
if notPropertyKey.TASK_IS_RECURRING
public boolean getHasReminder() throws ExchangeException
true
if the reminder was set, false
otherwise.PropertyKey.TASK_REMINDER_SET
public void setHasReminder(boolean bSetReminder) throws ExchangeException
bSetReminder
- set to true
to set the reminder,
false
to unset the reminder.PropertyKey.TASK_REMINDER_SET
public java.util.Date getReminderDate() throws ExchangeException
PropertyKey.TASK_REMINDER_DATE
public void setReminderDate(java.util.Date date) throws ExchangeException
date
- the reminder datePropertyKey.TASK_REMINDER_DATE
public void setSender(AddressEntry addressEntry) throws ExchangeException
Message
type.setSender
in class Message
ExchangeException
- this method is not allowedpublic boolean isTaskRequest() throws ExchangeException
MESSAGE_TYPE
property must be retrieved for this
property to return the correct value.true
if the task is a task requestPropertyKey.MESSAGE_TYPE
public void serverUpdate(boolean bSaveSent) throws ExchangeException
TASK_IS_TEAM_TASK
properties are required
for this method to succeed.bSaveSent
- if true
, save the task request
update message in the sent items folderPropertyKey.TASK_IS_TEAM_TASK
public void serverMarkComplete(PropertyValue[] propValues, boolean bSend, boolean bSaveInSent) throws ExchangeException
TASK_IS_TEAM_TASK
, MESSAGE_RECIPIENT_INFO
and
TASK_IS_RECURRING
, TASK_RECURRENCE_PATTERN
.
properties must be retrieved in for this method to succeed.propVals
- Additional values to set on the notification email
that will be generated if this is a team task.bSend
- if true
then send the message, otherwise
do not.bSaveInSent
- if true
then a copy of the sent message in
the Sent Items folder.PropertyKey.TASK_IS_TEAM_TASK
,
PropertyKey.TASK_IS_RECURRING
,
PropertyKey.MESSAGE_RECIPIENT_INFO
public void serverSkip() throws ExchangeException
TASK_IS_RECURRING
and TASK_RECURRENCE_PATTERN
properties to be available on the
task.ExchangeException
- if one of the required properties is not
available or there was a problem updating the task or the task
is regenerativePropertyKey.TASK_IS_RECURRING
,
PropertyKey.TASK_RECURRENCE_PATTERN
public boolean isTeamTask() throws ExchangeException
true
if this task has been delegated to
at least two recipients, false
otherwise.ExchangeException
- if there was a problem retrieving this
propertyPropertyKey.TASK_IS_TEAM_TASK
public void setRecurrencePattern(TaskRecurrencePattern pattern) throws ExchangeException
TaskRecurrencePattern.NONE
to clear). This method will also set
the isRecurring()
property.pattern
- the recurrence pattern to setExchangeException
- if there was an error setting the pattern, or
if the pattern was invalidgetRecurrencePattern()
public TaskRecurrencePattern getRecurrencePattern() throws ExchangeException
ExchangeException
- if there was an error getting the pattern, or
if the pattern was invalidsetRecurrencePattern(TaskRecurrencePattern)
public void serverDecline(PropertyValue[] propValues, boolean bSend, boolean bSaveInSent) throws ExchangeException
MESSAGE_RECIPIENT_INFO
is required for this method to
succeed.propValues
- the values to use on the message sent to the
originator. A message will only be created if
this task has been delegated to exactly 1 person.bSend
- if true
then send the decline message
to the originator.bSaveInSent
- if true
then save a copy of the sent
message to the originator in the Sent Items folder.ExchangeException
- if there was a problem declining the
task or sending the decline message.PropertyKey.MESSAGE_RECIPIENT_INFO
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |