public class CalendarItemTimerTask
extends java.lang.Object
Constructor and Description |
---|
CalendarItemTimerTask(CalendarService.BusyStatusEnum state,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String id,
boolean executeNow,
RecurringPattern pattern)
Constructs new CalendarItemTimerTask instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getEndDate()
Returns the end date of the calendar item
|
java.lang.String |
getId()
Returns the ID of the calendar item.
|
RecurringPattern |
getPattern()
Returns the RecurringPattern instance associated with the
calendar item.
|
java.util.Date |
getStartDate()
Returns the start date of the calendar item
|
CalendarService.BusyStatusEnum |
getStatus()
Returns the free busy status of the calendar item.
|
void |
remove()
Removes the task.
|
void |
scheduleTasks()
Schedules the start and end tasks of the calendar item.
|
void |
setPattern(RecurringPattern pattern)
Sets the RecurringPattern associated with the calendar item.
|
protected void |
start()
This method is executed in the beginning of the calendar item.
|
protected void |
stop()
This method is executed in the end of the calendar item.
|
public CalendarItemTimerTask(CalendarService.BusyStatusEnum state, java.util.Date startDate, java.util.Date endDate, java.lang.String id, boolean executeNow, RecurringPattern pattern)
state
- the state of the calendar item.startDate
- the start date of the calendar item.endDate
- the end date of the calendar item.id
- the ID of the calendar item.executeNow
- Indicates if the start task should be executed
immediately or notpattern
- the RecurringPattern instance associated with the
calendar item. It must be null if the calendar item is not
recurring.public RecurringPattern getPattern()
public java.lang.String getId()
protected void start()
protected void stop()
public void scheduleTasks()
public void remove()
public CalendarService.BusyStatusEnum getStatus()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public void setPattern(RecurringPattern pattern)
pattern
- the pattern to set
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.