|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.calendar.CalendarEvent
@DateRange(startDate="startDate", endDate="endDate") public class CalendarEvent
The event in a calendar. An event in the calendar is described by a starting and an ending date and a name. The start and end dates in an event must be in the same type (either a date or a datable).
Method Summary | ||
---|---|---|
static
|
anEventAt(T startDate)
Creates a new calendar event starting and ending at the specified date. |
|
static
|
anEventAt(T startDate,
T endDate)
Creates a new calendar event starting at the specified start date and ending at the specified end date. |
|
CalendarEvent |
endingAt(Datable<?> endDate)
Sets an end date to this event. |
|
CalendarEvent |
from(SilverpeasContent content)
|
|
String |
getAccessLevel()
Gets the classification of this event. |
|
CalendarEventAttendees |
getAttendees()
Gets the attendees to this event. |
|
CalendarEventCategories |
getCategories()
Gets the categories to which this event belongs. |
|
String |
getDescription()
Gets a description about this event. |
|
Datable<?> |
getEndDate()
Gets the date at which this event ends. |
|
String |
getId()
|
|
String |
getLocation()
Gets the location where this event should occur. |
|
int |
getPriority()
Gets the priority of this event. |
|
CalendarEventRecurrence |
getRecurrence()
Gets the recurrence of this recurring event. |
|
Datable<?> |
getStartDate()
Gets the date at which this event should starts |
|
String |
getTitle()
Gets the title of this event. |
|
URL |
getUrl()
Sets an URL of a resource describing or representing this event. |
|
CalendarEvent |
identifiedBy(String appId,
String eventId)
|
|
boolean |
isOnAllDay()
Is this event occurring on all the day(s)? |
|
boolean |
isRecurring()
Is this event a recurring one? |
|
CalendarEvent |
recur(CalendarEventRecurrence recurrence)
Recurs this event with the specified event recurrence. |
|
CalendarEvent |
startingAt(Datable<?> startDate)
Modifies the start date of this event. |
|
CalendarEvent |
withAccessLevel(String accessLevel)
Specifies the access level to this event. |
|
CalendarEvent |
withDescription(String description)
Sets a description ot this event. |
|
CalendarEvent |
withLocation(String location)
Sets a location where this event should occur. |
|
CalendarEvent |
withPriority(int priority)
Sets a priority to this event. |
|
CalendarEvent |
withTitle(String title)
Sets a title to this event. |
|
CalendarEvent |
withUrl(URL url)
Gets the URL of a resource describing or representing this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends Datable<?>> CalendarEvent anEventAt(T startDate)
startDate
- the start date of the event.
public static <T extends Datable<?>> CalendarEvent anEventAt(T startDate, T endDate)
startDate
- the start date of the event. The start date defines the inclusive date at
which the event starts.endDate
- the end date of the event. The end date defines the non-inclusive date at which
the event ends up.
public CalendarEvent withAccessLevel(String accessLevel)
accessLevel
- the new access level to this event.
public CalendarEvent endingAt(Datable<?> endDate)
endDate
- the event end date.
public CalendarEvent withPriority(int priority)
priority
- an event priority.
public String getLocation()
public CalendarEvent withLocation(String location)
location
- the location of this event.
public URL getUrl()
public CalendarEvent withUrl(URL url)
url
- the URL of a resource in connection with this event.
public CalendarEvent startingAt(Datable<?> startDate)
startDate
- the new event start date.
public CalendarEventAttendees getAttendees()
public CalendarEventCategories getCategories()
public String getAccessLevel()
public String getDescription()
public Datable<?> getEndDate()
public String getTitle()
public int getPriority()
public Datable<?> getStartDate()
public CalendarEvent recur(CalendarEventRecurrence recurrence)
recurrence
- the recurrence defining the recurring property of this event.
public CalendarEvent withTitle(String title)
title
- the title to set.
public CalendarEvent withDescription(String description)
description
- the description to set.
public CalendarEventRecurrence getRecurrence()
public boolean isRecurring()
public boolean isOnAllDay()
public CalendarEvent from(SilverpeasContent content)
public CalendarEvent identifiedBy(String appId, String eventId)
public String getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |