|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.collab.exchange.RecurrencePattern
com.compoze.collab.exchange.TaskRecurrencePattern
public final class TaskRecurrencePattern
This class is used to represent the recurrence pattern for a task. Recurring Tasks have the ability to regenerate themselves. This functionality is available for Daily, Weekly, Monthly and Yearly tasks, but not Monthly Nth or Yearly Nth. Specifying a regenerative task will force an initially calculated end date, discarding any specified date, since the end date becomes variable.
Field Summary | |
---|---|
static TaskRecurrencePattern |
NONE
This constant represents no recurrence, and may be passed in to clear the recurrence pattern on an existing task. |
Method Summary | |
---|---|
static TaskRecurrencePattern |
createDaily(java.util.Date startDate,
java.util.Date endDate,
int iInterval)
Creates a daily task recurrence pattern with an end date. |
static TaskRecurrencePattern |
createDaily(java.util.Date startDate,
int iInterval)
Creates a daily task recurrence pattern with no end date. |
static TaskRecurrencePattern |
createDaily(java.util.Date startDate,
int iInterval,
int iOccurrences)
Creates a daily recurrence pattern for a number of occurrences. |
static TaskRecurrencePattern |
createDailyRegenerate(java.util.Date startDate,
int iRegenerate)
Creates a regenerating daily recurrence pattern with no end date. |
static TaskRecurrencePattern |
createDailyRegenerate(java.util.Date startDate,
int iRegenerate,
int iOccurrences)
Creates a regenerating daily recurrence pattern for a number of occurrences. |
static TaskRecurrencePattern |
createMonthly(java.util.Date startDate,
java.util.Date endDate,
int iDayOfMonth,
int iInterval)
Creates a monthly recurrence pattern with an end date. |
static TaskRecurrencePattern |
createMonthly(java.util.Date startDate,
int iDayOfMonth,
int iInterval)
Creates a monthly task recurrence pattern with no end date. |
static TaskRecurrencePattern |
createMonthly(java.util.Date startDate,
int iDayOfMonth,
int iInterval,
int iOccurrences)
Creates a monthly recurrence pattern for a number of occurrences. |
static TaskRecurrencePattern |
createMonthlyNth(java.util.Date startDate,
java.util.Date endDate,
RecurrenceInstance instance,
DaysOfWeek daysOfWeek,
int iInterval)
Creates a monthly nth recurrence pattern with an end date. |
static TaskRecurrencePattern |
createMonthlyNth(java.util.Date startDate,
RecurrenceInstance instance,
DaysOfWeek daysOfWeek,
int iInterval)
Creates a monthly nth recurrence pattern with no end date. |
static TaskRecurrencePattern |
createMonthlyNth(java.util.Date startDate,
RecurrenceInstance instance,
DaysOfWeek daysOfWeek,
int iInterval,
int iOccurrences)
Creates a monthly nth recurrence pattern for occurrences. |
static TaskRecurrencePattern |
createMonthlyRegenerate(java.util.Date startDate,
int iRegenerate)
Creates a regenerative monthly recurrence pattern with no end date. |
static TaskRecurrencePattern |
createMonthlyRegenerate(java.util.Date startDate,
int iRegenerate,
int iOccurrences)
Creates a regenerative monthly recurrence pattern with occurrences. |
static TaskRecurrencePattern |
createWeekly(java.util.Date startDate,
java.util.Date endDate,
DaysOfWeek daysOfWeek,
int iInterval)
Creates a weekly recurrence pattern with an end date. |
static TaskRecurrencePattern |
createWeekly(java.util.Date startDate,
DaysOfWeek daysOfWeek,
int iInterval)
Creates a weekly recurrence pattern with no end date. |
static TaskRecurrencePattern |
createWeekly(java.util.Date startDate,
DaysOfWeek daysOfWeek,
int iInterval,
int iOccurrences)
Creates a weekly recurrence pattern for a number of occurrences. |
static TaskRecurrencePattern |
createWeeklyRegenerate(java.util.Date startDate,
int iRegenerate)
Creates a regenerative weekly recurrence pattern with no end date. |
static TaskRecurrencePattern |
createWeeklyRegenerate(java.util.Date startDate,
int iRegenerate,
int iOccurrences)
Creates a regenerative weekly recurrence pattern for a number of occurrences. |
static TaskRecurrencePattern |
createYearly(java.util.Date startDate,
java.util.Date endDate,
int iMonthOfYear,
int iDayOfMonth)
Creates a yearly task recurrence pattern with an end date. |
static TaskRecurrencePattern |
createYearly(java.util.Date startDate,
int iMonthOfYear,
int iDayOfMonth)
Creates a yearly task recurrence pattern with no end date. |
static TaskRecurrencePattern |
createYearly(java.util.Date startDate,
int iMonthOfYear,
int iDayOfMonth,
int iOccurrences)
Creates a yearly task recurrence pattern ending for a number of occurrences. |
static TaskRecurrencePattern |
createYearlyNth(java.util.Date startDate,
java.util.Date endDate,
RecurrenceInstance instance,
DaysOfWeek daysOfWeek,
int iMonthOfYear)
Creates a yearly nth recurrence pattern with an end date. |
static TaskRecurrencePattern |
createYearlyNth(java.util.Date startDate,
RecurrenceInstance instance,
DaysOfWeek daysOfWeek,
int iMonthOfYear)
Creates a yearly nth recurrence pattern with no end date. |
static TaskRecurrencePattern |
createYearlyNth(java.util.Date startDate,
RecurrenceInstance instance,
DaysOfWeek daysOfWeek,
int iMonthOfYear,
int iOccurrences)
Creates a yearly nth recurrence pattern with a number of occurrences. |
static TaskRecurrencePattern |
createYearlyRegenerate(java.util.Date startDate,
int iRegenerate)
Creates a regenerating yearly recurrence pattern with no end date. |
static TaskRecurrencePattern |
createYearlyRegenerate(java.util.Date startDate,
int iRegenerate,
int iOccurrences)
Creates a regenerating yearly recurrence pattern with a number of occurrences. |
boolean |
equals(java.lang.Object o)
Compares equality of two patterns. |
static TaskRecurrencePattern |
getFrom(IExchangeTask task)
Gets the pattern of a task. |
int |
getRegenerate()
Gets the regeneration interval for the pattern type. |
boolean |
isRegenerating()
Returns if this pattern is regenerative. |
void |
setTo(IExchangeTask task)
Sets the to a task, but does not update member variables of the task. |
java.lang.String |
toString()
Gets the string representation of the pattern. |
Methods inherited from class com.compoze.collab.exchange.RecurrencePattern |
---|
getDayOfMonth, getDaysOfWeek, getEndType, getInstance, getInterval, getMonthOfYear, getOccurrences, getPatternEndDate, getPatternStartDate, getType |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TaskRecurrencePattern NONE
Method Detail |
---|
public static TaskRecurrencePattern createDaily(java.util.Date startDate, int iInterval)
startDate
- the start date of the task (not null
)iInterval
- the number of days between recurrences
public static TaskRecurrencePattern createDaily(java.util.Date startDate, java.util.Date endDate, int iInterval)
startDate
- the start date of the task (not null
)endDate
- the end date of the task (or null
if the pattern
has no end)iInterval
- the number of days between recurrences
public static TaskRecurrencePattern createDaily(java.util.Date startDate, int iInterval, int iOccurrences)
startDate
- the start date of the task (not null
)iInterval
- the number of days between recurrencesiOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createDailyRegenerate(java.util.Date startDate, int iRegenerate, int iOccurrences)
startDate
- the start date of the task (not null
)iRegenerate
- the number of days between recurrencesiOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createDailyRegenerate(java.util.Date startDate, int iRegenerate)
startDate
- the start date of the task (not null
)iRegenerate
- the number of days between recurrences
public static TaskRecurrencePattern createWeekly(java.util.Date startDate, DaysOfWeek daysOfWeek, int iInterval)
startDate
- the start date of the task (not null
)daysOfWeek
- the days of week to recur (or null
to use
the day of the week of the start date)iInterval
- the number of weeks between recurrences
public static TaskRecurrencePattern createWeekly(java.util.Date startDate, java.util.Date endDate, DaysOfWeek daysOfWeek, int iInterval)
startDate
- the start date of the task (not null
)endDate
- the end date of the task (or null
if the pattern
has no end)daysOfWeek
- the days of week to recur (or null
to use
the day of the week of the start date)iInterval
- the number of weeks between recurrences
public static TaskRecurrencePattern createWeekly(java.util.Date startDate, DaysOfWeek daysOfWeek, int iInterval, int iOccurrences)
startDate
- the start date of the task (not null
)daysOfWeek
- the days of week to recur (or null
to use
the day of the week of the start date)iInterval
- the number of weeks between recurrencesiOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createWeeklyRegenerate(java.util.Date startDate, int iRegenerate, int iOccurrences)
startDate
- the start date of the task (not null
)iRegenerate
- the interval at which to regenerate the task (any number but
zero will cancel out any setting for endDate
)iOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createWeeklyRegenerate(java.util.Date startDate, int iRegenerate)
startDate
- the start date of the task (not null
)iRegenerate
- the interval at which to regenerate the task (must be greater
than zero)
public static TaskRecurrencePattern createMonthly(java.util.Date startDate, int iDayOfMonth, int iInterval)
startDate
- the start date of the task (not null
)iDayOfMonth
- the day of the month to recur (or 0
to use
the day of the month of the start date)iInterval
- the number of months between recurrences
public static TaskRecurrencePattern createMonthly(java.util.Date startDate, java.util.Date endDate, int iDayOfMonth, int iInterval)
startDate
- the start date of the task (not null
)endDate
- the end date of the task (or null
if the pattern
has no end)iDayOfMonth
- the day of the month to recur (or 0
to use
the day of the month of the start date)iInterval
- the number of months between recurrences
public static TaskRecurrencePattern createMonthly(java.util.Date startDate, int iDayOfMonth, int iInterval, int iOccurrences)
startDate
- the start date of the task (not null
)iDayOfMonth
- the day of the month to recur (or 0
to use
the day of the month of the start date)iInterval
- the number of months between recurrencesiOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createMonthlyRegenerate(java.util.Date startDate, int iRegenerate)
startDate
- the start date of the task (not null
)iRegenerate
- the interval at which to regenerate the task (any number but
zero will cancel out any setting for endDate
)
public static TaskRecurrencePattern createMonthlyRegenerate(java.util.Date startDate, int iRegenerate, int iOccurrences)
startDate
- the start date of the task (not null
)iRegenerate
- the interval at which to regenerate the task (any number but
zero will cancel out any setting for endDate
)iOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createMonthlyNth(java.util.Date startDate, RecurrenceInstance instance, DaysOfWeek daysOfWeek, int iInterval)
startDate
- the start date of the task (not null
)instance
- the instance of the days of the week that the task recursdaysOfWeek
- the days of week (or null
to use the day of the
week of the start date)iInterval
- the number of months between recurrences
public static TaskRecurrencePattern createMonthlyNth(java.util.Date startDate, RecurrenceInstance instance, DaysOfWeek daysOfWeek, int iInterval, int iOccurrences)
startDate
- the start date of the task (not null
)instance
- the instance of the days of the week that the task recursdaysOfWeek
- the days of week (or null
to use the day of the
week of the start date)iInterval
- the number of months between recurrencesiOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createMonthlyNth(java.util.Date startDate, java.util.Date endDate, RecurrenceInstance instance, DaysOfWeek daysOfWeek, int iInterval)
startDate
- the start date of the task (not null
)endDate
- the end date of the task (or null
if the pattern
has no end)instance
- the instance of the days of the week that the task recursdaysOfWeek
- the days of week (or null
to use the day of the
week of the start date)iInterval
- the number of months between recurrences
public static TaskRecurrencePattern createYearly(java.util.Date startDate, int iMonthOfYear, int iDayOfMonth)
startDate
- the start date of the task (not null
)iMonthOfYear
- the month of the year to recur (or 0
to use
the month of the year of the start date)iDayOfMonth
- the day of the month to recur (or 0
to use
the day of the month of the start date)
public static TaskRecurrencePattern createYearly(java.util.Date startDate, java.util.Date endDate, int iMonthOfYear, int iDayOfMonth)
startDate
- the start date of the task (not null
)endDate
- the end date of the task (or null
if the pattern
has no end)iMonthOfYear
- the month of the year to recur (or 0
to use
the month of the year of the start date)iDayOfMonth
- the day of the month to recur (or 0
to use
the day of the month of the start date)
public static TaskRecurrencePattern createYearly(java.util.Date startDate, int iMonthOfYear, int iDayOfMonth, int iOccurrences)
startDate
- the start date of the task (not null
)iMonthOfYear
- the month of the year to recur (or 0
to use
the month of the year of the start date)iDayOfMonth
- the day of the month to recur (or 0
to use
the day of the month of the start date)iOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createYearlyRegenerate(java.util.Date startDate, int iRegenerate)
startDate
- the start date of the task (not null
)iRegenerate
- the interval at which to regenerate the task (any number but
zero will cancel out any setting for endDate
)
public static TaskRecurrencePattern createYearlyRegenerate(java.util.Date startDate, int iRegenerate, int iOccurrences)
startDate
- the start date of the task (not null
)iRegenerate
- the interval at which to regenerate the task (any number but
zero will cancel out any setting for endDate
)iOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createYearlyNth(java.util.Date startDate, RecurrenceInstance instance, DaysOfWeek daysOfWeek, int iMonthOfYear)
startDate
- the start date of the task (not null
)instance
- the instance of the days of the week that the task recursdaysOfWeek
- the days of week (or null
to use the day of the
week of the start date)iMonthOfYear
- the month of the year to recur (or 0
to use
the month of the year of the start date)
public static TaskRecurrencePattern createYearlyNth(java.util.Date startDate, RecurrenceInstance instance, DaysOfWeek daysOfWeek, int iMonthOfYear, int iOccurrences)
startDate
- the start date of the task (not null
)instance
- the instance of the days of the week that the task recursdaysOfWeek
- the days of week (or null
to use the day of the
week of the start date)iMonthOfYear
- the month of the year to recur (or 0
to use
the month of the year of the start date)iOccurrences
- the number of times the task recurs (greater or equal
to one)
public static TaskRecurrencePattern createYearlyNth(java.util.Date startDate, java.util.Date endDate, RecurrenceInstance instance, DaysOfWeek daysOfWeek, int iMonthOfYear)
startDate
- the start date of the task (not null
)endDate
- the end date of the task (or null
if the pattern
has no end)instance
- the instance of the days of the week that the task recursdaysOfWeek
- the days of week (or null
to use the day of the
week of the start date)iMonthOfYear
- the month of the year to recur (or 0
to use
the month of the year of the start date)
public int getRegenerate()
public boolean isRegenerating()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if the two patterns are equal.public void setTo(IExchangeTask task) throws CollaborationException
TaskRecurrencePattern
to call it.
task
- the task to set the pattern on
CollaborationException
public static TaskRecurrencePattern getFrom(IExchangeTask task) throws CollaborationException
task
- the task to retrieve the pattern from.
CollaborationException
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |