|
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. |
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 (has recipients). |
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 |
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
RECIPIENT_INFO_ARRAY
property must be retrieved for this
property to return the correct value.true
if the task is a task requestPropertyKey.MESSAGE_RECIPIENT_INFO_OVERVIEW
public void serverUpdate(boolean bSaveSent) throws ExchangeException
bSaveSent
- if true
, save the task request
update message in the sent items folder
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |