com.moyosoft.connector.ms.outlook.task
Class OutlookTask

java.lang.Object
  |
  +--com.moyosoft.connector.ms.outlook.item.OutlookItem
        |
        +--com.moyosoft.connector.ms.outlook.task.OutlookTask
All Implemented Interfaces:
IAttachmentsContainer

public class OutlookTask
extends OutlookItem
implements IAttachmentsContainer


Constructor Summary
OutlookTask(com.moyosoft.connector.com.Dispatch dispatch)
           
OutlookTask(Outlook outlookApplication)
          Creates a new task in the default tasks folder
OutlookTask(OutlookFolder folder)
          Creates a new task in the specified folder
 
Method Summary
 OutlookTask assign()
           
 void cancelResponseState()
           
 void clearRecurrencePattern()
           
 void close(InspectorClose saveMode)
           
 OutlookAttachment createAttachment(java.io.File pAttachmentFile, AttachmentType pType)
           
 int getActualWork()
           
 AttachmentsCollection getAttachments()
           
 int getAttachmentsCount()
           
 java.lang.String getBillingInformation()
           
 java.lang.String getBody()
           
 java.lang.String getCardData()
           
 java.lang.String getCategories()
           
 java.lang.String getCompanies()
           
 ConflictsCollection getConflicts()
           
 java.lang.String getContactNames()
           
 java.lang.String getContacts()
           
 java.lang.String getConversationIndex()
           
 java.lang.String getConversationTopic()
           
 java.util.Date getDateCompleted()
           
 TaskDelegationState getDelegationState()
          The 'DelegationState' property is only supported by Outlook 2002 or higher.
 java.lang.String getDelegator()
           
 DownloadState getDownloadState()
           
 java.util.Date getDueDate()
           
 FormDescription getFormDescription()
           
 ImportanceType getImportance()
           
 Inspector getInspector()
           
 int getInternetCodepage()
          The 'InternetCodepage' property is only supported by Outlook 2002 or higher.
 ItemPropertiesCollection getItemProperties()
           
 RemoteStatus getMarkForDownload()
           
 java.lang.String getMessageClass()
           
 java.lang.String getMileage()
           
 int getOrdinal()
           
 java.lang.String getOwner()
           
 TaskOwnership getOwnership()
           
 int getPercentComplete()
           
 RecipientsCollection getRecipients()
           
 RecurrencePattern getRecurrencePattern()
           
 java.lang.String getReminderSoundFile()
           
 java.util.Date getReminderTime()
           
 TaskResponseType getResponseState()
           
 java.lang.String getRole()
           
 java.lang.String getSchedulePlusPriority()
           
 Account getSendUsingAccount()
          Returns the account used when sending this message.
 SensitivityType getSensitivity()
           
 int getSize()
           
 java.util.Date getStartDate()
           
 TaskStatus getStatus()
           
 java.lang.String getStatusOnCompletionRecipients()
           
 java.lang.String getStatusUpdateRecipients()
           
 java.lang.String getSubject()
           
 int getTotalWork()
           
 OutlookItemType getType()
           
 UserPropertiesCollection getUserProperties()
           
 boolean isAutoResolvedWinner()
          The 'AutoResolvedWinner' property is only supported by Outlook 2003 or higher.
 boolean isComplete()
           
 boolean isConflict()
           
 boolean isNoAging()
           
 boolean isRecurring()
           
 boolean isReminderOverrideDefault()
           
 boolean isReminderPlaySound()
           
 boolean isReminderSet()
           
 boolean isSaved()
           
 boolean isTeamTask()
           
 boolean isUnRead()
           
 void markComplete()
           
 OutlookTask respond(TaskResponseType response, boolean dontDisplayResponseDialog, boolean promptUser)
           
 void send()
           
 void setActualWork(int value)
           
 void setBillingInformation(java.lang.String value)
           
 void setBody(java.lang.String value)
           
 void setCardData(java.lang.String value)
           
 void setCategories(java.lang.String value)
           
 void setCompanies(java.lang.String value)
           
 void setComplete(boolean value)
           
 void setContactNames(java.lang.String value)
           
 void setContacts(java.lang.String value)
           
 void setDateCompleted(java.util.Date value)
           
 void setDueDate(java.util.Date value)
           
 void setImportance(ImportanceType value)
           
 void setInternetCodepage(int value)
          The 'InternetCodepage' property is only supported by Outlook 2002 or higher.
 void setMarkForDownload(RemoteStatus value)
           
 void setMessageClass(java.lang.String value)
           
 void setMileage(java.lang.String value)
           
 void setNoAging(boolean value)
           
 void setOrdinal(int value)
           
 void setOwner(java.lang.String value)
           
 void setPercentComplete(int value)
           
 void setReminderOverrideDefault(boolean value)
           
 void setReminderPlaySound(boolean value)
           
 void setReminderSet(boolean value)
           
 void setReminderSoundFile(java.lang.String value)
           
 void setReminderTime(java.util.Date value)
           
 void setRole(java.lang.String value)
           
 void setSchedulePlusPriority(java.lang.String value)
           
 void setSendUsingAccount(Account account)
          Define the account to be used when sending this message.
 void setSensitivity(SensitivityType value)
           
 void setStartDate(java.util.Date value)
           
 void setStatus(TaskStatus value)
           
 void setStatusOnCompletionRecipients(java.lang.String value)
           
 void setStatusUpdateRecipients(java.lang.String value)
           
 void setSubject(java.lang.String value)
           
 void setTeamTask(boolean value)
           
 void setTotalWork(int value)
           
 void setUnRead(boolean value)
           
 void showCategoriesDialog()
           
 boolean skipRecurrence()
           
 
Methods inherited from class com.moyosoft.connector.ms.outlook.item.OutlookItem
copy, create, delete, deleteMapiProperty, deleteMapiProperty, display, display, dispose, equals, getCreationTime, getDispatch, getEntryId, getItemId, getLastModificationTime, getLinks, getMapiProperty, getMapiProperty, getParentFolder, getPropertyAccessor, move, printOut, save, saveAs, saveAs, saveAs, saveAs, setMapiProperty, setMapiProperty
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutlookTask

public OutlookTask(OutlookFolder folder)
            throws com.moyosoft.connector.com.ComponentObjectModelException
Creates a new task in the specified folder

Parameters:
folder - the folder where the new task will be created
Throws:
com.moyosoft.connector.com.ComponentObjectModelException - if a COM error occurs.

OutlookTask

public OutlookTask(Outlook outlookApplication)
            throws com.moyosoft.connector.com.ComponentObjectModelException
Creates a new task in the default tasks folder

Parameters:
outlookApplication - the Outlook application's object
Throws:
com.moyosoft.connector.com.ComponentObjectModelException - if a COM error occurs.

OutlookTask

public OutlookTask(com.moyosoft.connector.com.Dispatch dispatch)
Method Detail

getType

public OutlookItemType getType()
Specified by:
getType in class OutlookItem

getAttachments

public AttachmentsCollection getAttachments()
Specified by:
getAttachments in interface IAttachmentsContainer

createAttachment

public OutlookAttachment createAttachment(java.io.File pAttachmentFile,
                                          AttachmentType pType)
Specified by:
createAttachment in interface IAttachmentsContainer

getAttachmentsCount

public int getAttachmentsCount()
Specified by:
getAttachmentsCount in interface IAttachmentsContainer

getBillingInformation

public java.lang.String getBillingInformation()

setBillingInformation

public void setBillingInformation(java.lang.String value)

getBody

public java.lang.String getBody()

setBody

public void setBody(java.lang.String value)

getCategories

public java.lang.String getCategories()

setCategories

public void setCategories(java.lang.String value)

getCompanies

public java.lang.String getCompanies()

setCompanies

public void setCompanies(java.lang.String value)

getConversationIndex

public java.lang.String getConversationIndex()

getConversationTopic

public java.lang.String getConversationTopic()

getFormDescription

public FormDescription getFormDescription()

getInspector

public Inspector getInspector()

getImportance

public ImportanceType getImportance()

setImportance

public void setImportance(ImportanceType value)

getMessageClass

public java.lang.String getMessageClass()

setMessageClass

public void setMessageClass(java.lang.String value)

getMileage

public java.lang.String getMileage()

setMileage

public void setMileage(java.lang.String value)

isNoAging

public boolean isNoAging()

setNoAging

public void setNoAging(boolean value)

isSaved

public boolean isSaved()

getSensitivity

public SensitivityType getSensitivity()

setSensitivity

public void setSensitivity(SensitivityType value)

getSize

public int getSize()

getSubject

public java.lang.String getSubject()

setSubject

public void setSubject(java.lang.String value)

isUnRead

public boolean isUnRead()

setUnRead

public void setUnRead(boolean value)

getUserProperties

public UserPropertiesCollection getUserProperties()

close

public void close(InspectorClose saveMode)

getActualWork

public int getActualWork()

setActualWork

public void setActualWork(int value)

getCardData

public java.lang.String getCardData()

setCardData

public void setCardData(java.lang.String value)

isComplete

public boolean isComplete()

setComplete

public void setComplete(boolean value)

getContacts

public java.lang.String getContacts()

setContacts

public void setContacts(java.lang.String value)

getContactNames

public java.lang.String getContactNames()

setContactNames

public void setContactNames(java.lang.String value)

getDateCompleted

public java.util.Date getDateCompleted()

setDateCompleted

public void setDateCompleted(java.util.Date value)

getDelegationState

public TaskDelegationState getDelegationState()
The 'DelegationState' property is only supported by Outlook 2002 or higher. With other versions this method will throw a ComponentObjectModelException.


getDelegator

public java.lang.String getDelegator()

getDueDate

public java.util.Date getDueDate()

setDueDate

public void setDueDate(java.util.Date value)

isRecurring

public boolean isRecurring()

getOrdinal

public int getOrdinal()

setOrdinal

public void setOrdinal(int value)

getOwner

public java.lang.String getOwner()

setOwner

public void setOwner(java.lang.String value)

getOwnership

public TaskOwnership getOwnership()

getPercentComplete

public int getPercentComplete()

setPercentComplete

public void setPercentComplete(int value)

getRecipients

public RecipientsCollection getRecipients()

getReminderTime

public java.util.Date getReminderTime()

setReminderTime

public void setReminderTime(java.util.Date value)

isReminderOverrideDefault

public boolean isReminderOverrideDefault()

setReminderOverrideDefault

public void setReminderOverrideDefault(boolean value)

isReminderPlaySound

public boolean isReminderPlaySound()

setReminderPlaySound

public void setReminderPlaySound(boolean value)

isReminderSet

public boolean isReminderSet()

setReminderSet

public void setReminderSet(boolean value)

getReminderSoundFile

public java.lang.String getReminderSoundFile()

setReminderSoundFile

public void setReminderSoundFile(java.lang.String value)

getResponseState

public TaskResponseType getResponseState()

getRole

public java.lang.String getRole()

setRole

public void setRole(java.lang.String value)

getSchedulePlusPriority

public java.lang.String getSchedulePlusPriority()

setSchedulePlusPriority

public void setSchedulePlusPriority(java.lang.String value)

getStartDate

public java.util.Date getStartDate()

setStartDate

public void setStartDate(java.util.Date value)

getStatus

public TaskStatus getStatus()

setStatus

public void setStatus(TaskStatus value)

getStatusOnCompletionRecipients

public java.lang.String getStatusOnCompletionRecipients()

setStatusOnCompletionRecipients

public void setStatusOnCompletionRecipients(java.lang.String value)

getStatusUpdateRecipients

public java.lang.String getStatusUpdateRecipients()

setStatusUpdateRecipients

public void setStatusUpdateRecipients(java.lang.String value)

isTeamTask

public boolean isTeamTask()

setTeamTask

public void setTeamTask(boolean value)

getTotalWork

public int getTotalWork()

setTotalWork

public void setTotalWork(int value)

assign

public OutlookTask assign()

cancelResponseState

public void cancelResponseState()

clearRecurrencePattern

public void clearRecurrencePattern()

getRecurrencePattern

public RecurrencePattern getRecurrencePattern()

markComplete

public void markComplete()

respond

public OutlookTask respond(TaskResponseType response,
                           boolean dontDisplayResponseDialog,
                           boolean promptUser)

send

public void send()

skipRecurrence

public boolean skipRecurrence()

getDownloadState

public DownloadState getDownloadState()

showCategoriesDialog

public void showCategoriesDialog()

getItemProperties

public ItemPropertiesCollection getItemProperties()

getInternetCodepage

public int getInternetCodepage()
The 'InternetCodepage' property is only supported by Outlook 2002 or higher. With other versions this method will throw a ComponentObjectModelException.


setInternetCodepage

public void setInternetCodepage(int value)
The 'InternetCodepage' property is only supported by Outlook 2002 or higher. With other versions this method will throw a ComponentObjectModelException.


getMarkForDownload

public RemoteStatus getMarkForDownload()

setMarkForDownload

public void setMarkForDownload(RemoteStatus value)

isConflict

public boolean isConflict()

isAutoResolvedWinner

public boolean isAutoResolvedWinner()
The 'AutoResolvedWinner' property is only supported by Outlook 2003 or higher. With other versions this method will throw a ComponentObjectModelException.


getConflicts

public ConflictsCollection getConflicts()

getSendUsingAccount

public Account getSendUsingAccount()
Returns the account used when sending this message. The accounts are only supported by Outlook 2007 or later; with other versions this method will throw an ComponentObjectModelException.
This method is only available in the Professional edition of Java Outlook Connector.


setSendUsingAccount

public void setSendUsingAccount(Account account)
Define the account to be used when sending this message. The accounts are only supported by Outlook 2007 or later; with other versions this method will throw an ComponentObjectModelException.
This method is only available in the Professional edition of Java Outlook Connector.