Class CalendarImpl
java.lang.Object
ch.tocco.nice2.optional.calendar.impl.ical.CalendarImpl
- All Implemented Interfaces:
Calendar
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarImpl(@Nullable Long id, String uniqueId, String entityType, String relationName, @Nullable org.joda.time.DateTimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(CalendarEvent event) booleanThe entity model that this calendar is associated to.Returns all events from this calendar.getEvents(DateTimeValue date) Returns a list ofCalendarEvents that occur on the specified day.getEvents(DateTimeValue start, DateTimeValue end) Returns a list ofCalendarEvents of this calendar within the specified period (inclusive).net.fortuna.ical4j.model.CalendargetICal()@Nullable LonggetId()The name of the relation that links arbitary entities toCalendar_events of this calendar.org.joda.time.DateTimeZoneReturns the standard time zone used by this calender.Returns the name of this calendar.inthashCode()voidsetDescription(String description) voidsetEntityType(String entityType) voidvoidsetRelationName(String relationName) voidsetTimeZone(@Nullable org.joda.time.DateTimeZone timeZone) Sets the default time zone for this calendar.voidsetUniqueId(String uniqueId) toString()
-
Constructor Details
-
CalendarImpl
-
-
Method Details
-
getTimeZone
public org.joda.time.DateTimeZone getTimeZone()Description copied from interface:CalendarReturns the standard time zone used by this calender. If no timezone has been explicitely set, UTC is returned.- Specified by:
getTimeZonein interfaceCalendar
-
setTimeZone
public void setTimeZone(@Nullable @Nullable org.joda.time.DateTimeZone timeZone) Description copied from interface:CalendarSets the default time zone for this calendar. Anullvalue will set the time zone to UTC.- Specified by:
setTimeZonein interfaceCalendar
-
getEntityType
Description copied from interface:CalendarThe entity model that this calendar is associated to.- Specified by:
getEntityTypein interfaceCalendar
-
getRelationName
Description copied from interface:CalendarThe name of the relation that links arbitary entities toCalendar_events of this calendar. It is the name fromCalendar_eventto another entity, for example:Calendar_event ---relationName--> Room- Specified by:
getRelationNamein interfaceCalendar
-
setRelationName
-
setId
-
setEntityType
-
getId
-
getUniqueId
Description copied from interface:CalendarReturns the name of this calendar.- Specified by:
getUniqueIdin interfaceCalendar
-
setUniqueId
-
getDescription
- Specified by:
getDescriptionin interfaceCalendar
-
setDescription
- Specified by:
setDescriptionin interfaceCalendar
-
getEvents
Description copied from interface:CalendarReturns a list of
CalendarEvents 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:CalendarReturns a list of
CalendarEvents 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:CalendarReturns 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
-
toString
-