jec.dto
Class RecurrenceDTO

java.lang.Object
  extended by jec.dto.RecurrenceDTO
All Implemented Interfaces:
java.io.Serializable

public class RecurrenceDTO
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 int RECURTYPE_DAILY
           
 int RECURTYPE_MONTHLY
           
 int RECURTYPE_SINGLE
           
 int RECURTYPE_WEEKLY
           
 int RECURTYPE_YEARLY
           
 
Constructor Summary
RecurrenceDTO()
           
 
Method Summary
 java.lang.String getPatternEnd()
          the recurrence will end at this date, set as this example pattern: YYYY-mm-ddThh:mm:ss.MMMZ (2008-12-31T05:00:00.000Z).
If not set, the recurrence will not end.
 int getRecurtype()
           
 java.lang.String getRrule()
           
 int getTimezoneId()
           
 void setPatternEnd(java.lang.String patternEnd)
          the recurrence will end at this date, set as this example pattern: YYYY-mm-ddThh:mm:ss.MMMZ (2008-12-31T05:00:00.000Z).
If not set, the recurrence will not end.
 void setRecurtype(int recurtype)
          Use this class public constants to set.
 void setRrule(java.lang.String rrule)
          use the below RFC to set this String correctly:
http://www.ietf.org/rfc/rfc2445.txt paragraf "4.3.10 Recurrence Rule" and "4.8.5.4 Recurrence Rule.
 void setTimezoneId(int timezoneId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECURTYPE_SINGLE

public int RECURTYPE_SINGLE

RECURTYPE_DAILY

public int RECURTYPE_DAILY

RECURTYPE_WEEKLY

public int RECURTYPE_WEEKLY

RECURTYPE_MONTHLY

public int RECURTYPE_MONTHLY

RECURTYPE_YEARLY

public int RECURTYPE_YEARLY
Constructor Detail

RecurrenceDTO

public RecurrenceDTO()
Method Detail

getRrule

public java.lang.String getRrule()

setRrule

public void setRrule(java.lang.String rrule)
use the below RFC to set this String correctly:
http://www.ietf.org/rfc/rfc2445.txt paragraf "4.3.10 Recurrence Rule" and "4.8.5.4 Recurrence Rule. Here are some examples:
Every work day: FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR;WKST=MO
Every day: FREQ=DAILY;INTERVAL=1,FR;WKST=MO
Every week: FREQ=WEEKLY;WKST=SU;INTERVAL=1;BYDAY=TH
make sure you set the recurtype that corresponds to this String, if you set a daily pattern, then the recurtype should be Daily also (RECURTYPE_DAILY).

Parameters:
rrule -

getTimezoneId

public int getTimezoneId()

setTimezoneId

public void setTimezoneId(int timezoneId)

getRecurtype

public int getRecurtype()

setRecurtype

public void setRecurtype(int recurtype)
Use this class public constants to set. RECURTYPE_SINGLE = 0; RECURTYPE_DAILY = 1; RECURTYPE_WEEKLY = 2; RECURTYPE_MONTHLY = 3; RECURTYPE_YEARLY = 4;

Parameters:
recurtype -

getPatternEnd

public java.lang.String getPatternEnd()
the recurrence will end at this date, set as this example pattern: YYYY-mm-ddThh:mm:ss.MMMZ (2008-12-31T05:00:00.000Z).
If not set, the recurrence will not end.

Returns:

setPatternEnd

public void setPatternEnd(java.lang.String patternEnd)
the recurrence will end at this date, set as this example pattern: YYYY-mm-ddThh:mm:ss.MMMZ (2008-12-31T05:00:00.000Z).
If not set, the recurrence will not end.