Task

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public class Task implements System.IDisposable, Closeable

Represents the exchange task information.

Constructors

Constructor Description
Task()

Methods

Method Description
getRelatedTo() Gets or sets a related UID
setRelatedTo(String value) Gets or sets a related UID
getSubject() Gets or sets a task subject.
setSubject(String value) Gets or sets a task subject.
getStartDate() Gets or sets a start date of task.
setStartDate(Date value) Gets or sets a start date of task.
getDueDate() Gets or sets the date by which the user expects work on the task to be complete.
setDueDate(Date value) Gets or sets the date by which the user expects work on the task to be complete.
getPriority() Gets or sets a task priority.
setPriority(int value) Gets or sets a task priority.
getPercentComplete() Gets or sets a pecent of task completion.
setPercentComplete(float value) Gets or sets a pecent of task completion.
getBody() Gets or sets a task body.
setBody(String value) Gets or sets a task body.
getUniqueId() Gets or sets unique identifier
setUniqueId(String value) Gets or sets unique identifier
getSequenceId() Gets or sets the sequence id.
setSequenceId(int value) Gets or sets the sequence id.
getAttendees() Gets or sets the attendees.
setAttendees(MailAddressCollection value) Gets or sets the attendees.
getOrganizer() Gets or sets the organizer.
setOrganizer(MailAddress value) Gets or sets the organizer.
getMethod() Gets or sets iTIP methods associated with an task.
setMethod(int value) Gets or sets iTIP methods associated with an task.
getAttachments() Gets or sets a collection of file attached to the task.
setAttachments(AttachmentCollection value) Gets or sets a collection of file attached to the task.
request() Requests the object.
close()
save(OutputStream stream) Saves current object to the given stream using MSG format.
save(OutputStream stream, int saveFormat) Saves current object to the given stream using specified format.
save(String filePath) Saves current object into file using MSG format.
save(String filePath, int saveFormat) Saves current object into file using specified format.
dispose() Release all resources.

Task()

public Task()

getRelatedTo()

public final String getRelatedTo()

Gets or sets a related UID

Returns: java.lang.String

setRelatedTo(String value)

public final void setRelatedTo(String value)

Gets or sets a related UID

Parameters:

Parameter Type Description
value java.lang.String

getSubject()

public final String getSubject()

Gets or sets a task subject.

Returns: java.lang.String

setSubject(String value)

public final void setSubject(String value)

Gets or sets a task subject.

Parameters:

Parameter Type Description
value java.lang.String

getStartDate()

public final Date getStartDate()

Gets or sets a start date of task.

Returns: java.util.Date

setStartDate(Date value)

public final void setStartDate(Date value)

Gets or sets a start date of task.

Parameters:

Parameter Type Description
value java.util.Date

getDueDate()

public final Date getDueDate()

Gets or sets the date by which the user expects work on the task to be complete.

Returns: java.util.Date

setDueDate(Date value)

public final void setDueDate(Date value)

Gets or sets the date by which the user expects work on the task to be complete.

Parameters:

Parameter Type Description
value java.util.Date

getPriority()

public final int getPriority()

Gets or sets a task priority.

Returns: int

setPriority(int value)

public final void setPriority(int value)

Gets or sets a task priority.

Parameters:

Parameter Type Description
value int

getPercentComplete()

public final float getPercentComplete()

Gets or sets a pecent of task completion.

Returns: float

setPercentComplete(float value)

public final void setPercentComplete(float value)

Gets or sets a pecent of task completion.

Parameters:

Parameter Type Description
value float

getBody()

public final String getBody()

Gets or sets a task body.

Returns: java.lang.String

setBody(String value)

public final void setBody(String value)

Gets or sets a task body.

Parameters:

Parameter Type Description
value java.lang.String

getUniqueId()

public final String getUniqueId()

Gets or sets unique identifier

Returns: java.lang.String

setUniqueId(String value)

public final void setUniqueId(String value)

Gets or sets unique identifier

Parameters:

Parameter Type Description
value java.lang.String

getSequenceId()

public final int getSequenceId()

Gets or sets the sequence id.

Value: The sequence id.

Returns: int

setSequenceId(int value)

public final void setSequenceId(int value)

Gets or sets the sequence id.

Value: The sequence id.

Parameters:

Parameter Type Description
value int

getAttendees()

public final MailAddressCollection getAttendees()

Gets or sets the attendees.

Returns: MailAddressCollection

setAttendees(MailAddressCollection value)

public final void setAttendees(MailAddressCollection value)

Gets or sets the attendees.

Parameters:

Parameter Type Description
value MailAddressCollection

getOrganizer()

public final MailAddress getOrganizer()

Gets or sets the organizer.

Returns: MailAddress

setOrganizer(MailAddress value)

public final void setOrganizer(MailAddress value)

Gets or sets the organizer.

Parameters:

Parameter Type Description
value MailAddress

getMethod()

public final int getMethod()

Gets or sets iTIP methods associated with an task.

Returns: int

setMethod(int value)

public final void setMethod(int value)

Gets or sets iTIP methods associated with an task.

Parameters:

Parameter Type Description
value int

getAttachments()

public final AttachmentCollection getAttachments()

Gets or sets a collection of file attached to the task.

Returns: AttachmentCollection

setAttachments(AttachmentCollection value)

public final void setAttachments(AttachmentCollection value)

Gets or sets a collection of file attached to the task.

Parameters:

Parameter Type Description
value AttachmentCollection

request()

public final AlternateView request()

Requests the object.

Returns: AlternateView - AlternateViewAlternateView that represents the format to view an email message.

close()

public void close()

save(OutputStream stream)

public void save(OutputStream stream)

Saves current object to the given stream using MSG format.

Parameters:

Parameter Type Description
stream java.io.OutputStream A stream to save to.

save(OutputStream stream, int saveFormat)

public void save(OutputStream stream, int saveFormat)

Saves current object to the given stream using specified format.

Parameters:

Parameter Type Description
stream java.io.OutputStream A stream to save to.
saveFormat int A save format.

save(String filePath)

public void save(String filePath)

Saves current object into file using MSG format.

Parameters:

Parameter Type Description
filePath java.lang.String A file name.

save(String filePath, int saveFormat)

public void save(String filePath, int saveFormat)

Saves current object into file using specified format.

Parameters:

Parameter Type Description
filePath java.lang.String A file name.
saveFormat int A save format.

dispose()

public final void dispose()

Release all resources.