Class CalendarImpl
java.lang.Object
ch.tocco.nice2.optional.calendar.impl.ical.CalendarImpl
- All Implemented Interfaces:
Calendar
-
Constructor Summary
ConstructorDescriptionCalendarImpl
(@Nullable Long id, String uniqueId, String entityType, String relationName, @Nullable org.joda.time.DateTimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(CalendarEvent event) boolean
The entity model that this calendar is associated to.Returns all events from this calendar.getEvents
(DateTimeValue date) Returns a list ofCalendarEvent
s that occur on the specified day.getEvents
(DateTimeValue start, DateTimeValue end) Returns a list ofCalendarEvent
s of this calendar within the specified period (inclusive).net.fortuna.ical4j.model.Calendar
getICal()
@Nullable Long
getId()
The name of the relation that links arbitary entities toCalendar_event
s of this calendar.org.joda.time.DateTimeZone
Returns the standard time zone used by this calender.Returns the name of this calendar.int
hashCode()
void
setDescription
(String description) void
setEntityType
(String entityType) void
void
setRelationName
(String relationName) void
setTimeZone
(@Nullable org.joda.time.DateTimeZone timeZone) Sets the default time zone for this calendar.void
setUniqueId
(String uniqueId) toString()
-
Constructor Details
-
Method Details
-
getTimeZone
public org.joda.time.DateTimeZone getTimeZone()Description copied from interface:Calendar
Returns the standard time zone used by this calender. If no timezone has been explicitely set, UTC is returned.- Specified by:
getTimeZone
in interfaceCalendar
-
setTimeZone
public void setTimeZone(@Nullable @Nullable org.joda.time.DateTimeZone timeZone) Description copied from interface:Calendar
Sets the default time zone for this calendar. Anull
value will set the time zone to UTC.- Specified by:
setTimeZone
in interfaceCalendar
-
getEntityType
Description copied from interface:Calendar
The entity model that this calendar is associated to.- Specified by:
getEntityType
in interfaceCalendar
-
getRelationName
Description copied from interface:Calendar
The name of the relation that links arbitary entities toCalendar_event
s of this calendar. It is the name fromCalendar_event
to another entity, for example:Calendar_event ---relationName--> Room
- Specified by:
getRelationName
in interfaceCalendar
-
setRelationName
-
setId
-
setEntityType
-
getId
-
getUniqueId
Description copied from interface:Calendar
Returns the name of this calendar.- Specified by:
getUniqueId
in interfaceCalendar
-
setUniqueId
-
getDescription
- Specified by:
getDescription
in interfaceCalendar
-
setDescription
- Specified by:
setDescription
in interfaceCalendar
-
getEvents
Description copied from interface:Calendar
Returns a list of
CalendarEvent
s that occur on the specified day. The calendar is searched for events from the start until the end of the day specified by the argument.Recurring events are resolved to its recurrence set.
-
getEvents
Description copied from interface:Calendar
Returns a list of
CalendarEvent
s of this calendar within the specified period (inclusive). This will resolve recurring events to its recurrence set.If both, start and end date, are of type date and denote the same point in time, this method returns the same result as
Calendar.getEvents(DateTimeValue)
. -
getEvents
Description copied from interface:Calendar
Returns all events from this calendar. This will not resolve recurring events to its recurrence set. -
addEvent
-
getICal
public net.fortuna.ical4j.model.Calendar getICal() -
equals
-
hashCode
public int hashCode() -
toString
-