|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.groupware.RepeatPattern
This class represents the repeating pattern. A repeating
pattern defines how an entity repeats, for example, daily.
Use the methods starting with create
to
create common repeating patterns.
Inner Class Summary | |
static class |
RepeatPattern.ByWeek
This class represents the by weeks. |
static class |
RepeatPattern.Day
This class represents the day. |
static class |
RepeatPattern.Interval
This class represents the repeating interval. |
static class |
RepeatPattern.MonthDayFormat
This class provider utility methods for formatting repeating month-day patterns. |
static class |
RepeatPattern.MonthlyInterval
This class represents the monthly interval. |
static class |
RepeatPattern.RepeatFor
This class stores values for repeating 'for'. |
static class |
RepeatPattern.Type
This class stores values for repeating types. |
static class |
RepeatPattern.Weekends
This class represents the weekends. |
Field Summary | |
static int |
UPDATE_RULE_ALL
|
static int |
UPDATE_RULE_INSTANCE
|
Constructor Summary | |
RepeatPattern(RepeatPattern.Type type,
java.util.Date startDate,
RepeatPattern.Interval interval,
java.util.Date untilDate,
int iOccurrences,
int[] iWeeklyDays,
RepeatPattern.RepeatFor repeatFor)
Constructor. |
Method Summary | |
static RepeatPattern |
createAnnual(java.util.Date startDate,
RepeatPattern.Interval interval)
Creates an annual repeating pattern (always). |
static RepeatPattern |
createAnnual(java.util.Date startDate,
RepeatPattern.Interval interval,
java.util.Date untilDate)
Creates an annual repeating pattern. |
static RepeatPattern |
createAnnual(java.util.Date startDate,
RepeatPattern.Interval interval,
int iOccurrences)
Creates an annual repeating pattern. |
static RepeatPattern |
createAnnual(java.util.Date startDate,
RepeatPattern.Interval interval,
RepeatPattern.RepeatFor repeatFor)
Creates an annual repeating pattern. |
static RepeatPattern |
createDaily(java.util.Date startDate,
RepeatPattern.Interval interval)
Creates a daily repeating pattern (always). |
static RepeatPattern |
createDaily(java.util.Date startDate,
RepeatPattern.Interval interval,
java.util.Date untilDate)
Creates a daily repeating pattern. |
static RepeatPattern |
createDaily(java.util.Date startDate,
RepeatPattern.Interval interval,
int iOccurrences)
Creates a daily repeating pattern. |
static RepeatPattern |
createDaily(java.util.Date startDate,
RepeatPattern.Interval interval,
RepeatPattern.RepeatFor repeatFor)
Creates a daily repeating pattern. |
static RepeatPattern |
createMonthly(java.util.Date startDate,
RepeatPattern.Interval interval)
Creates a monthly repeating pattern (always). |
static RepeatPattern |
createMonthly(java.util.Date startDate,
RepeatPattern.Interval interval,
java.util.Date untilDate)
Creates a monthly repeating pattern. |
static RepeatPattern |
createMonthly(java.util.Date startDate,
RepeatPattern.Interval interval,
int iOccurrences)
Creates a monthly repeating pattern. |
static RepeatPattern |
createMonthly(java.util.Date startDate,
RepeatPattern.Interval interval,
RepeatPattern.RepeatFor repeatFor)
Creates a monthly repeating pattern. |
static RepeatPattern |
createWeekly(java.util.Date startDate,
RepeatPattern.Interval interval)
Creates a weekly repeating pattern (always). |
static RepeatPattern |
createWeekly(java.util.Date startDate,
RepeatPattern.Interval interval,
java.util.Date untilDate)
Creates a weekly repeating pattern. |
static RepeatPattern |
createWeekly(java.util.Date startDate,
RepeatPattern.Interval interval,
int iOccurrences)
Creates a weekly repeating pattern. |
static RepeatPattern |
createWeekly(java.util.Date startDate,
RepeatPattern.Interval interval,
RepeatPattern.RepeatFor repeatFor)
Creates a weekly repeating pattern. |
RepeatPattern.Interval |
getInterval()
Gets the interval. |
int[] |
getMonthlyDays()
Gets the monthly days. |
int |
getOccurrences()
Gets the number of occurrences. |
RepeatPattern.RepeatFor |
getRepeatFor()
Gets the repeat for. |
java.util.Date |
getStartDate()
Gets the start date. |
RepeatPattern.Type |
getType()
Gets the type. |
java.util.Date |
getUntilDate()
Gets the until date. |
RepeatPattern.Weekends |
getWeekends()
Gets the weekends. |
int[] |
getWeeklyDays()
Gets the weekly days. |
boolean |
isAlways()
Checks if this pattern repeats always. |
void |
setMonthlyDays(int[] iMonthlyDays)
Sets the monthly days. |
void |
setStartDate(java.util.Date startDate)
Sets the start date. |
void |
setWeekends(RepeatPattern.Weekends weekends)
Sets the weekends. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UPDATE_RULE_ALL
public static final int UPDATE_RULE_INSTANCE
Constructor Detail |
public RepeatPattern(RepeatPattern.Type type, java.util.Date startDate, RepeatPattern.Interval interval, java.util.Date untilDate, int iOccurrences, int[] iWeeklyDays, RepeatPattern.RepeatFor repeatFor) throws InvalidPatternException
type
- the repeat type (may not be null
)startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)untilDate
- the until date (must be after the start date)iOccurrences
- the number of occurrencesiWeeklyDays
- an array of days (see SUNDAY
-SATURDAY
constants)repeatFor
- the repeat for or null
for noneMethod Detail |
public RepeatPattern.RepeatFor getRepeatFor()
null
if not setpublic int getOccurrences()
public RepeatPattern.Interval getInterval()
public RepeatPattern.Type getType()
public boolean isAlways()
true
if this pattern repeats always; false
otherwisepublic java.util.Date getUntilDate()
null
if not setpublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- the start datepublic RepeatPattern.Weekends getWeekends()
public int[] getWeeklyDays()
public int[] getMonthlyDays()
public void setMonthlyDays(int[] iMonthlyDays)
iMonthlyDays
- the monthly dayspublic void setWeekends(RepeatPattern.Weekends weekends)
weekends
- the weekendspublic static RepeatPattern createDaily(java.util.Date startDate, RepeatPattern.Interval interval) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)public static RepeatPattern createDaily(java.util.Date startDate, RepeatPattern.Interval interval, java.util.Date untilDate) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)untilDate
- the until date (may not be null
and must be after the start date)public static RepeatPattern createDaily(java.util.Date startDate, RepeatPattern.Interval interval, int iOccurrences) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)iOccurrences
- the number of occurrencespublic static RepeatPattern createDaily(java.util.Date startDate, RepeatPattern.Interval interval, RepeatPattern.RepeatFor repeatFor) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)repeatFor
- the repeat for (may not be null
)public static RepeatPattern createAnnual(java.util.Date startDate, RepeatPattern.Interval interval) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)public static RepeatPattern createAnnual(java.util.Date startDate, RepeatPattern.Interval interval, java.util.Date untilDate) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)untilDate
- the until date (may not be null
and must be after the start date)public static RepeatPattern createAnnual(java.util.Date startDate, RepeatPattern.Interval interval, int iOccurrences) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)iOccurrences
- the number of occurrencespublic static RepeatPattern createAnnual(java.util.Date startDate, RepeatPattern.Interval interval, RepeatPattern.RepeatFor repeatFor) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)repeatFor
- the repeat for (may not be null
)public static RepeatPattern createWeekly(java.util.Date startDate, RepeatPattern.Interval interval, int iOccurrences) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)iOccurrences
- the number of occurrencespublic static RepeatPattern createWeekly(java.util.Date startDate, RepeatPattern.Interval interval, java.util.Date untilDate) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)untilDate
- the until date (may not be null
and must be after the start date)public static RepeatPattern createWeekly(java.util.Date startDate, RepeatPattern.Interval interval) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)public static RepeatPattern createWeekly(java.util.Date startDate, RepeatPattern.Interval interval, RepeatPattern.RepeatFor repeatFor) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)repeatFor
- the repeat for (may not be null
)public static RepeatPattern createMonthly(java.util.Date startDate, RepeatPattern.Interval interval, int iOccurrences) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)iOccurrences
- the number of occurrencespublic static RepeatPattern createMonthly(java.util.Date startDate, RepeatPattern.Interval interval, java.util.Date untilDate) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)untilDate
- the until date (may not be null
and must be after the start date)public static RepeatPattern createMonthly(java.util.Date startDate, RepeatPattern.Interval interval) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)public static RepeatPattern createMonthly(java.util.Date startDate, RepeatPattern.Interval interval, RepeatPattern.RepeatFor repeatFor) throws InvalidPatternException
startDate
- the start date (may not be null
)interval
- the interval (i.e. every, every other, every third)repeatFor
- the repeat for (may not be null
)
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |