|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ServiceObject
microsoft.exchange.webservices.data.Item
microsoft.exchange.webservices.data.Task
public class Task
Represents a Task item. Properties available on tasks are defined in the TaskSchema class.
Constructor Summary | |
---|---|
|
Task(ExchangeService service)
* Initializes an unsaved local instance of Task.To bind to an existing task, use Task.Bind() instead. |
protected |
Task(ItemAttachment parentAttachment)
* Initializes a new instance of the class. |
Method Summary | |
---|---|
static Task |
bind(ExchangeService service,
ItemId id)
* Binds to an existing task and loads its first class properties. |
static Task |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
* Binds to an existing task and loads the specified set of properties. |
void |
deleteCurrentOccurrence(DeleteMode deleteMode)
* Deletes the current occurrence of a recurring task. |
java.lang.Integer |
getActualWork()
Gets the actual amount of time that is spent on the task. |
java.util.Date |
getAssignedTime()
Gets the date and time the task was assigned. |
java.lang.String |
getBillingInformation()
Gets the billing information of the task. |
java.lang.Integer |
getChangeCount()
Gets the number of times the task has changed since it was created. |
StringList |
getCompanies()
Gets a list of companies associated with the task. |
java.util.Date |
getCompleteDate()
Gets the date and time on which the task was completed. |
StringList |
getContacts()
Gets a list of contacts associated with the task. |
protected AffectedTaskOccurrence |
getDefaultAffectedTaskOccurrences()
Gets the default setting for how to treat affected task occurrences on Delete. |
TaskDelegationState |
getDelegationState()
Gets the current delegation state of the task. |
java.lang.String |
getDelegator()
Gets the name of the delegator of this task. |
java.util.Date |
getDueDate()
Gets a list of contacts associated with the task. |
java.lang.Boolean |
getIsComplete()
Gets a value indicating whether the task is complete. |
java.lang.Boolean |
getIsRecurring()
Gets a value indicating whether the task is recurring. |
java.lang.Boolean |
getIsTeamTask()
Gets a value indicating whether the task is a team task. |
protected boolean |
getIsTimeZoneHeaderRequired(boolean isUpdateOperation)
* Gets a value indicating whether a time zone SOAP header should be emitted in a CreateItem or UpdateItem request so this item can be property saved or updated. |
java.lang.String |
getMileage()
Gets the mileage of the task. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
TaskMode |
getMode()
Gets a value indicating the mode of the task. |
java.lang.String |
getOwner()
Gets the name of the owner of the task. |
java.lang.Double |
getPercentComplete()
Gets the completeion percentage of the task. |
Recurrence |
getRecurrence()
Gets the recurrence pattern for this task. |
protected ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object. |
java.util.Date |
getStartDate()
Gets the date and time on which the task starts. |
TaskStatus |
getStatus()
Gets the status of the task. |
java.lang.String |
getStatusDescription()
Gets a string representing the status of the task, localized according to the PreferredCulture property of the ExchangeService object the task is bound to. |
java.lang.Integer |
getTotalWork()
Gets the total amount of work spent on the task. |
void |
setActualWork(java.lang.Integer value)
Sets the checks if is read. |
void |
setBillingInformation(java.lang.String value)
Sets the billing information. |
void |
setCompanies(StringList value)
Sets the companies. |
void |
setCompleteDate(java.util.Date value)
Sets the complete date. |
void |
setContacts(StringList value)
Sets the contacts. |
void |
setDueDate(java.util.Date value)
Sets the due date. |
void |
setMileage(java.lang.String value)
Sets the mileage. |
void |
setPercentComplete(java.lang.String value)
Sets the percent complete. |
void |
setRecurrence(Recurrence value)
Sets the recurrence. |
void |
setStartDate(java.util.Date value)
Sets the start date. |
void |
setStatus(TaskStatus value)
Sets the status. |
void |
setTotalWork(java.lang.Integer value)
Sets the total work. |
Task |
updateTask(ConflictResolutionMode conflictResolutionMode)
* Applies the local changes that have been made to this task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Task(ExchangeService service) throws java.lang.Exception
service
- the service
java.lang.Exception
- the exceptionprotected Task(ItemAttachment parentAttachment) throws java.lang.Exception
parentAttachment
- the parent attachment
java.lang.Exception
- the exceptionMethod Detail |
---|
public static Task bind(ExchangeService service, ItemId id, PropertySet propertySet) throws java.lang.Exception
service
- the serviceid
- the idpropertySet
- the property set
java.lang.Exception
- the exceptionpublic static Task bind(ExchangeService service, ItemId id) throws java.lang.Exception
service
- the serviceid
- the id
java.lang.Exception
- the exceptionprotected ServiceObjectSchema getSchema()
getSchema
in class Item
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class Item
protected boolean getIsTimeZoneHeaderRequired(boolean isUpdateOperation)
getIsTimeZoneHeaderRequired
in class Item
isUpdateOperation
- the is update operation
public void deleteCurrentOccurrence(DeleteMode deleteMode) throws ServiceLocalException, java.lang.Exception
deleteMode
- the delete mode
ServiceLocalException
- the service local exception
java.lang.Exception
- the exceptionpublic Task updateTask(ConflictResolutionMode conflictResolutionMode) throws ServiceResponseException, java.lang.Exception
conflictResolutionMode
- the conflict resolution mode
ServiceResponseException
- the service response exception
java.lang.Exception
- the exceptionpublic java.lang.Integer getActualWork() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setActualWork(java.lang.Integer value) throws java.lang.Exception
value
- the new checks if is read
java.lang.Exception
- the exceptionpublic java.util.Date getAssignedTime() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getBillingInformation() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setBillingInformation(java.lang.String value) throws java.lang.Exception
value
- the new billing information
java.lang.Exception
- the exceptionpublic java.lang.Integer getChangeCount() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic StringList getCompanies() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setCompanies(StringList value) throws java.lang.Exception
value
- the new companies
java.lang.Exception
- the exceptionpublic java.util.Date getCompleteDate() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setCompleteDate(java.util.Date value) throws java.lang.Exception
value
- the new complete date
java.lang.Exception
- the exceptionpublic StringList getContacts() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setContacts(StringList value) throws java.lang.Exception
value
- the new contacts
java.lang.Exception
- the exceptionpublic TaskDelegationState getDelegationState() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getDelegator() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.util.Date getDueDate() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setDueDate(java.util.Date value) throws java.lang.Exception
value
- the new due date
java.lang.Exception
- the exceptionpublic TaskMode getMode() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.Boolean getIsComplete() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.Boolean getIsRecurring() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.Boolean getIsTeamTask() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.String getMileage() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setMileage(java.lang.String value) throws java.lang.Exception
value
- the new mileage
java.lang.Exception
- the exceptionpublic java.lang.String getOwner() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.Double getPercentComplete() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setPercentComplete(java.lang.String value) throws java.lang.Exception
value
- the new percent complete
java.lang.Exception
- the exceptionpublic Recurrence getRecurrence() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setRecurrence(Recurrence value) throws java.lang.Exception
value
- the new recurrence
java.lang.Exception
- the exceptionpublic java.util.Date getStartDate() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setStartDate(java.util.Date value) throws java.lang.Exception
value
- the new start date
java.lang.Exception
- the exceptionpublic TaskStatus getStatus() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setStatus(TaskStatus value) throws java.lang.Exception
value
- the new status
java.lang.Exception
- the exceptionpublic java.lang.String getStatusDescription() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic java.lang.Integer getTotalWork() throws ServiceLocalException
ServiceLocalException
- the service local exceptionpublic void setTotalWork(java.lang.Integer value) throws java.lang.Exception
value
- the new total work
java.lang.Exception
- the exceptionprotected AffectedTaskOccurrence getDefaultAffectedTaskOccurrences()
getDefaultAffectedTaskOccurrences
in class Item
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |