com.moyosoft.exchange.task
Interface ExchangeTask

All Superinterfaces:
ExchangeItem

public interface ExchangeTask
extends ExchangeItem

Represents a task stored in an Exchange folder.

A new task can be created with the method ExchangeFolder.createTask(). To save the new task to the folder, call the method save().

This class provides getter and setter methods to access or modify the task's properties.

See Also:
ExchangeFolder.createTask(), ExchangeItem.save()

Method Summary
 void clearRecurrencePattern()
          Clears the recurrence pattern of this item making it non-recurring.
 void delete(boolean moveToDeletedItems, boolean deleteOnlyThisOccurrence)
          Deletes this item.
 int getActualWork()
           
 java.util.Date getAssignedTime()
           
 java.lang.String getBillingInformation()
           
 int getChangeCount()
           
 java.util.List<java.lang.String> getCompanies()
           
 java.util.Date getCompleteDate()
           
 java.util.List<java.lang.String> getContacts()
           
 TaskDelegateState getDelegationState()
           
 java.lang.String getDelegator()
           
 java.util.Date getDueDate()
           
 java.lang.String getMileage()
           
 java.lang.String getOwner()
           
 double getPercentComplete()
           
 TaskRecurrencePattern getRecurrencePattern()
          Returns the recurrence pattern of this item.
 java.util.Date getStartDate()
           
 TaskStatus getStatus()
           
 java.lang.String getStatusDescription()
           
 int getTaskType()
          Returns the following task type values: 0 = The default for all task items.
 int getTotalWork()
           
 boolean isComplete()
           
 boolean isRecurring()
           
 boolean isTeamTask()
           
 void setActualWork(int actualWork)
           
 void setBillingInformation(java.lang.String billingInformation)
           
 void setCompanies(java.util.List<java.lang.String> companies)
           
 void setCompleteDate(java.util.Date completeDate)
           
 void setContacts(java.util.List<java.lang.String> contacts)
           
 void setDelegator(java.lang.String delegator)
           
 void setDueDate(java.util.Date dueDate)
           
 void setIsRecurring(boolean isRecurring)
           
 void setMileage(java.lang.String mileage)
           
 void setPercentComplete(double percentComplete)
           
 void setStartDate(java.util.Date startDate)
           
 void setStatus(TaskStatus status)
           
 void setStatusDescription(java.lang.String statusDescription)
           
 void setTotalWork(int totalWork)
           
 
Methods inherited from interface com.moyosoft.exchange.item.ExchangeItem
copyTo, copyTo, delete, getAttachments, getBody, getBodyAsText, getBodyType, getCategories, getCulture, getDateTimeCreated, getDateTimeReceived, getDateTimeSent, getDisplayCc, getDisplayTo, getExtendedProperties, getImportance, getInReplyTo, getInternetMessageHeaders, getItemClass, getItemId, getItemIdChangeKey, getItemType, getLastModifiedName, getLastModifiedTime, getMimeContent, getMimeContentBytes, getMimeContentCharacterSet, getMimeContentReader, getMimeContentStream, getParentFolder, getParentFolderId, getParentFolderIdChangeKey, getReminderDueBy, getReminderMinutesBeforeStart, getResponsesTypes, getSensitivity, getSize, getSubject, hasVisibleAttachments, isDraft, isFromMe, isReminderSet, isResend, isStored, isSubmitted, moveTo, moveTo, save, save, saveTo, setBody, setBody, setCategories, setCulture, setImportance, setMimeContent, setMimeContent, setMimeContent, setReminder, setSensitivity, setSubject
 

Method Detail

getActualWork

int getActualWork()
                  throws ExchangeServiceException
Throws:
ExchangeServiceException

setActualWork

void setActualWork(int actualWork)
                   throws ExchangeServiceException
Throws:
ExchangeServiceException

getAssignedTime

java.util.Date getAssignedTime()
                               throws ExchangeServiceException
Throws:
ExchangeServiceException

getBillingInformation

java.lang.String getBillingInformation()
                                       throws ExchangeServiceException
Throws:
ExchangeServiceException

setBillingInformation

void setBillingInformation(java.lang.String billingInformation)
                           throws ExchangeServiceException
Throws:
ExchangeServiceException

getChangeCount

int getChangeCount()
                   throws ExchangeServiceException
Throws:
ExchangeServiceException

getCompanies

java.util.List<java.lang.String> getCompanies()
                                              throws ExchangeServiceException
Throws:
ExchangeServiceException

setCompanies

void setCompanies(java.util.List<java.lang.String> companies)
                  throws ExchangeServiceException
Throws:
ExchangeServiceException

getCompleteDate

java.util.Date getCompleteDate()
                               throws ExchangeServiceException
Throws:
ExchangeServiceException

setCompleteDate

void setCompleteDate(java.util.Date completeDate)
                     throws ExchangeServiceException
Throws:
ExchangeServiceException

getContacts

java.util.List<java.lang.String> getContacts()
                                             throws ExchangeServiceException
Throws:
ExchangeServiceException

setContacts

void setContacts(java.util.List<java.lang.String> contacts)
                 throws ExchangeServiceException
Throws:
ExchangeServiceException

getDelegationState

TaskDelegateState getDelegationState()
                                     throws ExchangeServiceException
Throws:
ExchangeServiceException

getDelegator

java.lang.String getDelegator()
                              throws ExchangeServiceException
Throws:
ExchangeServiceException

setDelegator

void setDelegator(java.lang.String delegator)
                  throws ExchangeServiceException
Throws:
ExchangeServiceException

getDueDate

java.util.Date getDueDate()
                          throws ExchangeServiceException
Throws:
ExchangeServiceException

setDueDate

void setDueDate(java.util.Date dueDate)
                throws ExchangeServiceException
Throws:
ExchangeServiceException

getTaskType

int getTaskType()
                throws ExchangeServiceException
Returns the following task type values:

0 = The default for all task items.
1 = A task request.
2 = A task acceptance from a recipient of a task request.
3 = A task declination from a recipient of a task request.
4 = An update to a previous task request.
5 = Not used.

Throws:
ExchangeServiceException

isComplete

boolean isComplete()
                   throws ExchangeServiceException
Throws:
ExchangeServiceException

isRecurring

boolean isRecurring()
                    throws ExchangeServiceException
Throws:
ExchangeServiceException

setIsRecurring

void setIsRecurring(boolean isRecurring)
                    throws ExchangeServiceException
Throws:
ExchangeServiceException

isTeamTask

boolean isTeamTask()
                   throws ExchangeServiceException
Throws:
ExchangeServiceException

getMileage

java.lang.String getMileage()
                            throws ExchangeServiceException
Throws:
ExchangeServiceException

setMileage

void setMileage(java.lang.String mileage)
                throws ExchangeServiceException
Throws:
ExchangeServiceException

getOwner

java.lang.String getOwner()
                          throws ExchangeServiceException
Throws:
ExchangeServiceException

getPercentComplete

double getPercentComplete()
                          throws ExchangeServiceException
Throws:
ExchangeServiceException

setPercentComplete

void setPercentComplete(double percentComplete)
                        throws ExchangeServiceException
Throws:
ExchangeServiceException

clearRecurrencePattern

void clearRecurrencePattern()
                            throws ExchangeServiceException
Clears the recurrence pattern of this item making it non-recurring. The changes are effective after this item is saved.

Throws:
ExchangeServiceException - if any errors occur during the communication with Exchange.

getRecurrencePattern

TaskRecurrencePattern getRecurrencePattern()
                                           throws ExchangeServiceException
Returns the recurrence pattern of this item.

Throws:
ExchangeServiceException - if any errors occur during the communication with Exchange.

getStartDate

java.util.Date getStartDate()
                            throws ExchangeServiceException
Throws:
ExchangeServiceException

setStartDate

void setStartDate(java.util.Date startDate)
                  throws ExchangeServiceException
Throws:
ExchangeServiceException

getStatus

TaskStatus getStatus()
                     throws ExchangeServiceException
Throws:
ExchangeServiceException

setStatus

void setStatus(TaskStatus status)
               throws ExchangeServiceException
Throws:
ExchangeServiceException

getStatusDescription

java.lang.String getStatusDescription()
                                      throws ExchangeServiceException
Throws:
ExchangeServiceException

setStatusDescription

void setStatusDescription(java.lang.String statusDescription)
                          throws ExchangeServiceException
Throws:
ExchangeServiceException

getTotalWork

int getTotalWork()
                 throws ExchangeServiceException
Throws:
ExchangeServiceException

setTotalWork

void setTotalWork(int totalWork)
                  throws ExchangeServiceException
Throws:
ExchangeServiceException

delete

void delete(boolean moveToDeletedItems,
            boolean deleteOnlyThisOccurrence)
            throws ExchangeServiceException
Deletes this item.

Parameters:
moveToDeletedItems - specifies whether the item is simply moved to the Deleted Items folder or definitely deleted.
deleteOnlyThisOccurrence - specifies whether only this occurrence of a recurring task should be deleted, otherwise all occurrences will be deleted.
Throws:
ExchangeServiceException - if any errors occur during the communication with Exchange.