|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.common.pim.model.calendar.CalendarContent
com.funambol.common.pim.model.calendar.Task
public class Task
An object representing a task (todo) contained in a calendar item, with all the information supported by Funambol it contains. This is the "foundational model" of a task, used to exchange information about such items between server and connectors. It can also be used by clients. This object provide normalization of the following properties: - status - complete - percent complete if one or more of these propeties state that the task is completed, the other properties will be filled with proper values. That is, if one of the properties listed above says that the task is completed both the left properties will say the same: status = 4 => complete = true, percent complete = 100 complete = true=> status = 4 , percent complete = 100 percent complete = 100 => complete = true, status = 4 On the other side, if none of these properties say that the task is completed, the date completed property is returned as empty, without considering any values set before: status != 4, percent complete != 100, complete = false => date complete = null
Field Summary | |
---|---|
static java.lang.String |
HUNDRED_PERCENT
|
Fields inherited from class com.funambol.common.pim.model.calendar.CalendarContent |
---|
accessClass, allDay, attendees, busyStatus, categories, contact, created, dalarm, description, dtEnd, dtStamp, dtStart, duration, folder, lastModified, latitude, location, longitude, meetingStatus, mileage, organizer, palarm, priority, recurrencePattern, reminder, sequence, status, summary, uid, url, xTags |
Constructor Summary | |
---|---|
Task()
Creates en empty task. |
Method Summary | |
---|---|
Property |
getActualWork()
Returns the time spent so far for the completion of the task. |
Property |
getBillingInformation()
Returns information for the task's billing. |
Property |
getComplete()
Returns whether the task has been completed or not. |
PropertyWithTimeZone |
getDateCompleted()
Returns the date/time when the task has been completed. |
PropertyWithTimeZone |
getDueDate()
Returns the due date. |
Property |
getImportance()
Returns the task's importance. |
Property |
getOwner()
Returns the owner of the task. |
Property |
getPercentComplete()
Returns the task's completion percentage. |
Property |
getSensitivity()
Returns the task's sensitivity. |
Property |
getStatus()
Returns the status of the task item. |
Property |
getTeamTask()
Returns whether this is a team task or an individual one. |
Property |
getTotalWork()
Returns the total time that should be spent for the completion of the task. |
Property |
isTeamTask()
Deprecated. Since version 7.1.0, getTeamTask should be used instead, because methods starting with "is" usually return booleans. |
void |
setActualWork(Property actualWork)
Setter for property actualWork. |
void |
setBillingInformation(Property billingInformation)
Setter for property billingInformation. |
void |
setComplete(Property complete)
Setter for property complete. |
void |
setDateCompleted(Property dateCompleted)
Setter for property dateCompleted on the basis of a Property (without time zone). |
void |
setDateCompleted(PropertyWithTimeZone dateCompleted)
Setter for property dateCompleted. |
void |
setDueDate(Property dueDate)
Setter for the due date on the basis of a Property (without time zone). |
void |
setDueDate(PropertyWithTimeZone dueDate)
Setter for the due date. |
void |
setImportance(Property importance)
Setter for the importance. |
void |
setOwner(Property owner)
Setter for property owner. |
void |
setPercentComplete(Property percentComplete)
Setter for property percentComplete. |
void |
setSensitivity(Property sensitivity)
Setter for the sensitivity. |
void |
setTeamTask(Property teamTask)
Setter for property teamTask. |
void |
setTotalWork(Property totalWork)
Setter for property totalWork. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HUNDRED_PERCENT
Constructor Detail |
---|
public Task()
Method Detail |
---|
public Property getActualWork()
public Property getBillingInformation()
public PropertyWithTimeZone getDateCompleted()
public Property getOwner()
public Property getPercentComplete()
public Property isTeamTask()
public Property getTeamTask()
public Property getTotalWork()
public Property getComplete()
public void setActualWork(Property actualWork)
actualWork
- new value of property actualWorkpublic void setBillingInformation(Property billingInformation)
billingInformation
- new value of property billingInformationpublic void setComplete(Property complete)
complete
- new value of property completepublic void setDateCompleted(PropertyWithTimeZone dateCompleted)
dateCompleted
- new value of property dateCompletedpublic void setDateCompleted(Property dateCompleted)
dateCompleted
- new value of property dateCompleted as a Property
(the time zone is set to null)public void setOwner(Property owner)
owner
- new value of property ownerpublic void setPercentComplete(Property percentComplete)
percentComplete
- new value of property percentCompletepublic void setTeamTask(Property teamTask)
teamTask
- new value of property teamTaskpublic void setTotalWork(Property totalWork)
totalWork
- new value of property totalWorkpublic PropertyWithTimeZone getDueDate()
public void setDueDate(PropertyWithTimeZone dueDate)
dueDate
- new value of property dtEndpublic void setDueDate(Property dueDate)
dueDate
- new value of property dtEnd as a Property (the time zone
is set to null)public Property getImportance()
public void setImportance(Property importance)
importance
- new value of property prioritypublic Property getSensitivity()
public void setSensitivity(Property sensitivity)
sensitivity
- new value of property accessClasspublic Property getStatus()
getStatus
in class CalendarContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |