|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.service.calendar.RecurrenceInfo
public class RecurrenceInfo
Recurrence Info Object
Nested Class Summary | |
---|---|
protected static class |
RecurrenceInfo.RecurrenceWrapper
Wraps a RecurrenceInfo object with a TemporalExpression object. |
Field Summary | |
---|---|
protected java.util.List<java.util.Date> |
eDateList
|
protected java.util.List<RecurrenceRule> |
eRulesList
|
protected GenericValue |
info
|
static java.lang.String |
module
|
protected java.util.List<java.util.Date> |
rDateList
|
protected java.util.List<RecurrenceRule> |
rRulesList
|
protected java.util.Date |
startDate
|
Constructor Summary | |
---|---|
RecurrenceInfo(GenericValue info)
Creates new RecurrenceInfo |
Method Summary | |
---|---|
long |
first()
Returns the first recurrence. |
long |
getCurrentCount()
Returns the current count of this recurrence. |
java.util.Iterator<java.util.Date> |
getExceptionDateIterator()
Returns a sorted exception date iterator |
java.util.Iterator<RecurrenceRule> |
getExceptionRuleIterator()
Returns a exception recurrence iterator |
java.lang.String |
getID()
Returns the primary key for this value object |
java.util.Iterator<java.util.Date> |
getRecurrenceDateIterator()
Returns a sorted recurrence date iterator |
java.util.Iterator<RecurrenceRule> |
getRecurrenceRuleIterator()
Returns a recurrence rule iterator |
java.util.Date |
getStartDate()
Returns the startDate Date object. |
long |
getStartTime()
Returns the long value of the startDate. |
void |
incrementCurrentCount()
Increments the current count of this recurrence and updates the record. |
void |
incrementCurrentCount(boolean store)
Increments the current count of this recurrence. |
void |
init()
Initializes the rules for this RecurrenceInfo object. |
boolean |
isValidCurrent()
Checks the current recurrence validity at the moment. |
boolean |
isValidCurrent(long checkTime)
Checks the current recurrence validity for checkTime. |
long |
last()
Returns the estimated last recurrence. |
static RecurrenceInfo |
makeInfo(GenericDelegator delegator,
long startTime,
int frequency,
int interval,
int count)
|
static RecurrenceInfo |
makeInfo(GenericDelegator delegator,
long startTime,
int frequency,
int interval,
int count,
long endTime)
|
static RecurrenceInfo |
makeInfo(GenericDelegator delegator,
long startTime,
int frequency,
int interval,
long endTime)
|
long |
next()
Returns the next recurrence from now. |
long |
next(long fromTime)
Returns the next recurrence from the specified time. |
java.lang.String |
primaryKey()
|
void |
remove()
Removes the recurrence from persistant store. |
static TemporalExpression |
toTemporalExpression(RecurrenceInfo info)
Convert a RecurrenceInfo object to a TemporalExpression object. |
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 module
protected GenericValue info
protected java.util.Date startDate
protected java.util.List<RecurrenceRule> rRulesList
protected java.util.List<RecurrenceRule> eRulesList
protected java.util.List<java.util.Date> rDateList
protected java.util.List<java.util.Date> eDateList
Constructor Detail |
---|
public RecurrenceInfo(GenericValue info) throws RecurrenceInfoException
RecurrenceInfoException
Method Detail |
---|
public void init() throws RecurrenceInfoException
RecurrenceInfoException
public java.lang.String getID()
public java.util.Date getStartDate()
public long getStartTime()
public java.util.Iterator<RecurrenceRule> getRecurrenceRuleIterator()
public java.util.Iterator<java.util.Date> getRecurrenceDateIterator()
public java.util.Iterator<RecurrenceRule> getExceptionRuleIterator()
public java.util.Iterator<java.util.Date> getExceptionDateIterator()
public long getCurrentCount()
public void incrementCurrentCount() throws GenericEntityException
GenericEntityException
public void incrementCurrentCount(boolean store) throws GenericEntityException
GenericEntityException
public void remove() throws RecurrenceInfoException
RecurrenceInfoException
public long first()
public long last()
public long next()
public long next(long fromTime)
public boolean isValidCurrent()
public boolean isValidCurrent(long checkTime)
public java.lang.String primaryKey()
public static RecurrenceInfo makeInfo(GenericDelegator delegator, long startTime, int frequency, int interval, int count) throws RecurrenceInfoException
RecurrenceInfoException
public static RecurrenceInfo makeInfo(GenericDelegator delegator, long startTime, int frequency, int interval, long endTime) throws RecurrenceInfoException
RecurrenceInfoException
public static RecurrenceInfo makeInfo(GenericDelegator delegator, long startTime, int frequency, int interval, int count, long endTime) throws RecurrenceInfoException
RecurrenceInfoException
public static TemporalExpression toTemporalExpression(RecurrenceInfo info)
info
- A RecurrenceInfo instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |