|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.almanach.model.EventOccurrence
public class EventOccurrence
An occurrence of an event in the time. Periodic events are made up of several of occurrences in the time up to their end date. The occurrences can be compared among them by the start date.
Constructor Summary | |
---|---|
protected |
EventOccurrence(EventDetail event,
com.silverpeas.calendar.Datable<?> startDate,
com.silverpeas.calendar.Datable<?> endDate)
Constructs a new occurrence of the specified event. |
Method Summary | |
---|---|
static EventOccurrence |
anOccurrenceOf(EventDetail event,
com.silverpeas.calendar.Datable<?> startDate,
com.silverpeas.calendar.Datable<?> endDate)
Creates an occurrence of the specified event starting and ending at the specified date and optionally times. |
static EventOccurrence |
anOccurrenceOf(EventDetail event,
com.silverpeas.calendar.Date startDate,
com.silverpeas.calendar.Date endDate)
Creates an occurrence of the specified event starting and ending at the specified dates. |
int |
compareTo(EventOccurrence otherOccurrence)
|
static com.silverpeas.calendar.Datable<?> |
endingAt(com.silverpeas.calendar.Datable<?> endingDate)
Convenient method to improve the readability when calling the anOccurrenceOf method. |
com.silverpeas.calendar.Datable<?> |
getEndDate()
Gets the end date of this occurrence. |
String |
getEndDateTimeInISO()
Gets the end date and time of this event in the ISO 8601 format (with minute precision). |
EventDetail |
getEventDetail()
Gets the details about the event this occurrence belongs to. |
com.silverpeas.calendar.Datable<?> |
getStartDate()
Gets the start date of this occurrence. |
String |
getStartDateTimeInISO()
Gets the start date and time of this event in the ISO 8601 format (with minute precision). |
boolean |
isAllDay()
Does this occurrence occur all the day defined? |
boolean |
isPriority()
Is this event has a priority? |
static com.silverpeas.calendar.Datable<?> |
startingAt(com.silverpeas.calendar.Datable<?> startingDate)
Convenient method to improve the readability when calling the anOccurrenceOf method. |
EventOccurrence |
withPriority(boolean priority)
Sets the priority of this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EventOccurrence(EventDetail event, com.silverpeas.calendar.Datable<?> startDate, com.silverpeas.calendar.Datable<?> endDate)
event
- the detail about the event for which an occurrence is constructed.Method Detail |
---|
public static EventOccurrence anOccurrenceOf(EventDetail event, com.silverpeas.calendar.Datable<?> startDate, com.silverpeas.calendar.Datable<?> endDate)
event
- the event.
public static EventOccurrence anOccurrenceOf(EventDetail event, com.silverpeas.calendar.Date startDate, com.silverpeas.calendar.Date endDate)
event
- the event.
public static com.silverpeas.calendar.Datable<?> startingAt(com.silverpeas.calendar.Datable<?> startingDate)
startingDate
- the start date of the occurrence.
public static com.silverpeas.calendar.Datable<?> endingAt(com.silverpeas.calendar.Datable<?> endingDate)
endingDate
- the end date of the occurrence.
public com.silverpeas.calendar.Datable<?> getEndDate()
public com.silverpeas.calendar.Datable<?> getStartDate()
public EventDetail getEventDetail()
public boolean isPriority()
public EventOccurrence withPriority(boolean priority)
priority
- the event priority.
public boolean isAllDay()
public String getStartDateTimeInISO()
public String getEndDateTimeInISO()
public int compareTo(EventOccurrence otherOccurrence)
compareTo
in interface Comparable<EventOccurrence>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |