|
Compoze Software, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.exchange.RecurrencePattern
This class contains the parameters for recurring appointments. The following properties control the recurrence behavior:
Property | Description |
RecurrenceType | The type of recurrence (daily, weekly, monthly, monthly nth, yearly and yearly nth). |
DayOfMonth | The day of the month that the appointment recurs. |
DayOfWeekMask | The days of the week that the appointment recurs. See
DaysOfWeek .
|
Duration | The duration of the recurring appointment in minutes. |
StartTime | The starting time for each occurrence of the appointment. |
EndTime | The ending time for each occurrence of the appointment. |
Instance | The instance of the day within the month that the appointment recurs. |
Interval | The number of recurrence units between recurrences of the appointment. |
MonthOfYear | The month of the year on which the appointment recurs. |
Occurrences | The number of occurrences in the recurrence pattern. |
PatternDates | Sets the start and end dates of the pattern (i.e. the PatternStartDate property is the day on or after which the appointment first recurs and the PatternEndDate is the day on or before which the appointment last recurs). |
There is a limit of December 31, 3999 on the pattern start date and 1,489,999 on the occurrences. If either of these properties exceeds its limit, setNoEndDate (true) is automatically called, occurrences is reset to 1,490,000, the pattern end date is reset to the month and day of the pattern start date in the year 4001, and the recurrence pattern is considered to extend infinitely far into the future.
Field Summary | |
static RecurrencePattern |
NONE
This constant represents no recurrence, and may be passed in to clear the recurrence pattern on an existing appointment. |
Method Summary | |
static RecurrencePattern |
createDaily(java.util.Date startTime,
java.util.Date endTime,
int iInterval,
boolean bNoEndDate,
int iOccurrences,
java.util.Date patternStartDate,
java.util.Date patternEndDate)
Creates a daily recurrence. |
static RecurrencePattern |
createMonthly(java.util.Date startTime,
java.util.Date endTime,
int iDayOfMonth,
int iInterval,
boolean bNoEndDate,
int iOccurrences,
java.util.Date patternStartDate,
java.util.Date patternEndDate)
Creates a monthly recurrence. |
static RecurrencePattern |
createMonthlyNth(java.util.Date startTime,
java.util.Date endTime,
DaysOfWeek daysOfWeek,
int iInstance,
int iInterval,
boolean bNoEndDate,
int iOccurrences,
java.util.Date patternStartDate,
java.util.Date patternEndDate)
Creates a monthly nth recurrence. |
static RecurrencePattern |
createWeekly(java.util.Date startTime,
java.util.Date endTime,
DaysOfWeek daysOfWeek,
int iInterval,
boolean bNoEndDate,
int iOccurrences,
java.util.Date patternStartDate,
java.util.Date patternEndDate)
Creates a weekly recurrence. |
static RecurrencePattern |
createYearly(java.util.Date startTime,
java.util.Date endTime,
int iDayOfMonth,
int iInterval,
int iMonthOfYear,
boolean bNoEndDate,
int iOccurrences,
java.util.Date patternStartDate,
java.util.Date patternEndDate)
Creates a yearly recurrence. |
static RecurrencePattern |
createYearlyNth(java.util.Date startTime,
java.util.Date endTime,
DaysOfWeek daysOfWeek,
int iInstance,
int iMonthOfYear,
boolean bNoEndDate,
int iOccurrences,
java.util.Date patternStartDate,
java.util.Date patternEndDate)
Creates a yearly nth recurrence. |
int |
getDayOfMonth()
Gets the day of the month on which the appointment occurs (only valid for RecurrenceType.MONTHLY and RecurrenceType.YEARLY ). |
DaysOfWeek |
getDaysOfWeek()
Gets the days of the week on which the appointment recurs (only valid for RecurrenceType.WEEKLY , RecurrenceType.MONTHLY_NTH and
RecurrenceType.YEARLY_NTH ). |
int |
getDuration()
Gets the duration of the appointment. |
java.util.Date |
getEndTime()
Gets the end time of the appointment. |
int |
getInstance()
Gets the instance of the day within the month that the appointment recurs (only valid for RecurrenceType.MONTHLY_NTH and
RecurrenceType.YEARLY_NTH ). |
int |
getInterval()
Gets the number of recurrence units between recurrences of the appointment. |
int |
getMonthOfYear()
Gets the month of the year on which the appointment recurs (only valid for RecurrenceType.YEARLY and
RecurrenceType.YEARLY_NTH ). |
int |
getOccurrences()
Gets the number of occurrences in the recurrence pattern. |
java.util.Date |
getPatternEndDate()
Gets the date on or before which the appointment last recurs. |
java.util.Date |
getPatternStartDate()
Gets the date on or after which the appointment first recurs. |
RecurrenceType |
getRecurrenceType()
Gets the type of the recurrence. |
java.util.Date |
getStartTime()
Gets the start time of the event. |
boolean |
hasNoEndDate()
Returns true if the pattern has no end date. |
void |
setDayOfMonth(int iDayOfMonth)
Sets the day of the month on which the appointment occurs (only valid for RecurrenceType.MONTHLY and RecurrenceType.YEARLY ). |
void |
setDaysOfWeek(DaysOfWeek daysOfWeek)
Sets the days of the week on which the appointment recurs (only valid for RecurrenceType.WEEKLY , RecurrenceType.MONTHLY_NTH and
RecurrenceType.YEARLY_NTH ). |
void |
setEndTime(java.util.Date endTime)
Sets the end time of the appointment. |
void |
setInstance(int iInstance)
Sets the instance of the day within the month that the appointment recurs (only valid for RecurrenceType.MONTHLY_NTH and
RecurrenceType.YEARLY_NTH ). |
void |
setInterval(int iInterval)
Sets the number of recurrence units between recurrences of the appointment. |
void |
setMonthOfYear(int iMonthOfYear)
Sets the month of the year on which the appointment recurs (only valid for RecurrenceType.YEARLY and
RecurrenceType.YEARLY_NTH ). |
void |
setNoEndDate(boolean bNoEndDate)
Sets true if the pattern has no end date. |
void |
setOccurrences(int iOccurrences)
Sets the number of occurrences in the recurrence pattern. |
void |
setPatternEndDate(java.util.Date patternEndDate)
Sets the date on or before which the appointment last recurs. |
void |
setPatternStartDate(java.util.Date patternStartDate)
Sets the date on or after which the appointment first recurs. |
void |
setRecurrenceType(RecurrenceType type)
Sets the type of the recurrence. |
void |
setStartTime(java.util.Date startTime)
Sets the start time of the event. |
java.lang.String |
toString()
Creates a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final RecurrencePattern NONE
Method Detail |
public static RecurrencePattern createDaily(java.util.Date startTime, java.util.Date endTime, int iInterval, boolean bNoEndDate, int iOccurrences, java.util.Date patternStartDate, java.util.Date patternEndDate)
startTime
- the start time of the appointment (must not be
null
)endTime
- the end time of the appointment (must not be
null
)iInterval
- sets the number of recurrence units between
recurrences in the appointment (1
is the minimum value)bNoEndDate
- if true
, then the recurrence has
no end dateiOccurrences
- the number of occurrences (or 0
to not restrict the end date by number of
occurrences)patternStartDate
- the pattern start date (or null
to start on the date specified in
startTime
)patternEndDate
- the pattern end date (or null
to not restrict the ending date of the recurrence
pattern)public static RecurrencePattern createWeekly(java.util.Date startTime, java.util.Date endTime, DaysOfWeek daysOfWeek, int iInterval, boolean bNoEndDate, int iOccurrences, java.util.Date patternStartDate, java.util.Date patternEndDate)
startTime
- the start time of the appointment (must not be
null
)endTime
- the end time of the appointment (must not be
null
)daysOfWeek
- the days of the week to recur (or null
to use the day of the week of the pattern start date)iInterval
- sets the number of recurrence units between
recurrences in the appointment (1
is the minimum value)bNoEndDate
- if true
, then the recurrence has
no end dateiOccurrences
- the number of occurrences (or 0
to not restrict the end date by number of
occurrences)patternStartDate
- the pattern start date (or null
to start on the date specified in
startTime
)patternEndDate
- the pattern end date (or null
to not restrict the ending date of the recurrence
pattern)public static RecurrencePattern createMonthly(java.util.Date startTime, java.util.Date endTime, int iDayOfMonth, int iInterval, boolean bNoEndDate, int iOccurrences, java.util.Date patternStartDate, java.util.Date patternEndDate)
startTime
- the start time of the appointment (must not be
null
)endTime
- the end time of the appointment (must not be
null
)iDayOfMonth
- the day of the month to recur (or 0
to use the day of the month that the pattern
starts on)iInterval
- sets the number of recurrence units between
recurrences in the appointment (1
is the minimum value)bNoEndDate
- if true
, then the recurrence has
no end dateiOccurrences
- the number of occurrences (or 0
to not restrict the end date by number of
occurrences)patternStartDate
- the pattern start date (or null
to start on the date specified in
startTime
)patternEndDate
- the pattern end date (or null
to not restrict the ending date of the recurrence
pattern)public static RecurrencePattern createMonthlyNth(java.util.Date startTime, java.util.Date endTime, DaysOfWeek daysOfWeek, int iInstance, int iInterval, boolean bNoEndDate, int iOccurrences, java.util.Date patternStartDate, java.util.Date patternEndDate)
startTime
- the start time of the appointment (must not be
null
)endTime
- the end time of the appointment (must not be
null
)daysOfWeek
- the days of the week to recur, which may only
be one day (or null
to use the
day of the week of the pattern start date)iInstance
- the instance of the day within the month that
the appointment recursiInterval
- sets the number of recurrence units between
recurrences in the appointment (1
is the minimum value)bNoEndDate
- if true
, then the recurrence has
no end dateiOccurrences
- the number of occurrences (or 0
to not restrict the end date by number of
occurrences)patternStartDate
- the pattern start date (or null
to start on the date specified in
startTime
)patternEndDate
- the pattern end date (or null
to not restrict the ending date of the recurrence
pattern)public static RecurrencePattern createYearly(java.util.Date startTime, java.util.Date endTime, int iDayOfMonth, int iInterval, int iMonthOfYear, boolean bNoEndDate, int iOccurrences, java.util.Date patternStartDate, java.util.Date patternEndDate)
startTime
- the start time of the appointment (must not be
null
)endTime
- the end time of the appointment (must not be
null
)iDayOfMonth
- the day of the month to recuriInterval
- sets the number of recurrence units between
recurrences in the appointment (1
is the minimum value)iMonthOfYear
- the month of the yearbNoEndDate
- if true
, then the recurrence has
no end dateiOccurrences
- the number of occurrences (or 0
to not restrict the end date by number of
occurrences)patternStartDate
- the pattern start date (or null
to start on the date specified in
startTime
)patternEndDate
- the pattern end date (or null
to not restrict the ending date of the recurrence
pattern)public static RecurrencePattern createYearlyNth(java.util.Date startTime, java.util.Date endTime, DaysOfWeek daysOfWeek, int iInstance, int iMonthOfYear, boolean bNoEndDate, int iOccurrences, java.util.Date patternStartDate, java.util.Date patternEndDate)
startTime
- the start time of the appointment (must not be
null
)endTime
- the end time of the appointment (must not be
null
)daysOfWeek
- the days of the week to recur, which may only
be one day (or null
to use the
day of the week of the pattern start date)iInstance
- the instance of the day within the month that
the appointment recursiMonthOfYear
- the month of the yearbNoEndDate
- if true
, then the recurrence has
no end dateiOccurrences
- the number of occurrences (or 0
to not restrict the end date by number of
occurrences)patternStartDate
- the pattern start date (or null
to start on the date specified in
startTime
)patternEndDate
- the pattern end date (or null
to not restrict the ending date of the recurrence
pattern)public RecurrenceType getRecurrenceType()
public void setRecurrenceType(RecurrenceType type)
type
- the recurrence typepublic int getDayOfMonth()
RecurrenceType.MONTHLY
and RecurrenceType.YEARLY
).
public void setDayOfMonth(int iDayOfMonth)
RecurrenceType.MONTHLY
and RecurrenceType.YEARLY
).
iDayOfMonth
- the day of the month on which the appointment occurspublic DaysOfWeek getDaysOfWeek()
RecurrenceType.WEEKLY
, RecurrenceType.MONTHLY_NTH
and
RecurrenceType.YEARLY_NTH
).
public void setDaysOfWeek(DaysOfWeek daysOfWeek)
RecurrenceType.WEEKLY
, RecurrenceType.MONTHLY_NTH
and
RecurrenceType.YEARLY_NTH
).
daysOfWeek
- the days of the week on which the appointment recurspublic int getDuration()
public java.util.Date getEndTime()
public void setEndTime(java.util.Date endTime)
endTime
- the end timepublic int getInstance()
RecurrenceType.MONTHLY_NTH
and
RecurrenceType.YEARLY_NTH
).
public void setInstance(int iInstance)
RecurrenceType.MONTHLY_NTH
and
RecurrenceType.YEARLY_NTH
).
iInstance
- the instance of the day within the month that the
appointment recurspublic int getInterval()
public void setInterval(int iInterval)
iInterval
- the number of recurrence units between recurrences
of the appointmentpublic int getMonthOfYear()
RecurrenceType.YEARLY
and
RecurrenceType.YEARLY_NTH
).
public void setMonthOfYear(int iMonthOfYear)
RecurrenceType.YEARLY
and
RecurrenceType.YEARLY_NTH
).
iMonthOfYear
- the month of the year on which the appointment recurspublic boolean hasNoEndDate()
true
if the pattern has no end date. If this property
is true
, then Occurrences
is set to 1490000 and
PatternEndDate
is set to the date of PatternStartDate
in the year 4001.
public void setNoEndDate(boolean bNoEndDate)
true
if the pattern has no end date. If this property
is true
, then Occurrences
is set to 1490000 and
PatternEndDate
is set to the date of PatternStartDate
in the year 4001.
public int getOccurrences()
public void setOccurrences(int iOccurrences)
iOccurrences
- the number of occurrencespublic java.util.Date getPatternStartDate()
public void setPatternStartDate(java.util.Date patternStartDate)
public java.util.Date getPatternEndDate()
public void setPatternEndDate(java.util.Date patternEndDate)
patternEndDate
- the pattern end datepublic java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
startTime
- the start time of the eventpublic java.lang.String toString()
|
Compoze Software, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |