Class CalendarImpl

java.lang.Object
ch.tocco.nice2.optional.calendar.impl.ical.CalendarImpl
All Implemented Interfaces:
Calendar

public class CalendarImpl extends Object implements Calendar
  • Constructor Details Link icon

    • CalendarImpl Link icon

      public CalendarImpl(@Nullable @Nullable Long id, String uniqueId, String entityType, String relationName, @Nullable @Nullable org.joda.time.DateTimeZone timeZone)
  • Method Details Link icon

    • getTimeZone Link icon

      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 interface Calendar
    • setTimeZone Link icon

      public void setTimeZone(@Nullable @Nullable org.joda.time.DateTimeZone timeZone)
      Description copied from interface: Calendar
      Sets the default time zone for this calendar. A null value will set the time zone to UTC.
      Specified by:
      setTimeZone in interface Calendar
    • getEntityType Link icon

      public String getEntityType()
      Description copied from interface: Calendar
      The entity model that this calendar is associated to.
      Specified by:
      getEntityType in interface Calendar
    • getRelationName Link icon

      public String getRelationName()
      Description copied from interface: Calendar
      The name of the relation that links arbitary entities to Calendar_events of this calendar. It is the name from Calendar_event to another entity, for example:
      
         Calendar_event ---relationName--> Room
       
      Specified by:
      getRelationName in interface Calendar
    • setRelationName Link icon

      public void setRelationName(String relationName)
    • setId Link icon

      public void setId(Long id)
    • setEntityType Link icon

      public void setEntityType(String entityType)
    • getId Link icon

      @Nullable public @Nullable Long getId()
      Specified by:
      getId in interface Calendar
    • getUniqueId Link icon

      public String getUniqueId()
      Description copied from interface: Calendar
      Returns the name of this calendar.
      Specified by:
      getUniqueId in interface Calendar
    • setUniqueId Link icon

      public void setUniqueId(String uniqueId)
    • getDescription Link icon

      public String getDescription()
      Specified by:
      getDescription in interface Calendar
    • setDescription Link icon

      public void setDescription(String description)
      Specified by:
      setDescription in interface Calendar
    • getEvents Link icon

      public List<CalendarEvent> getEvents(DateTimeValue date)
      Description copied from interface: Calendar

      Returns 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.

      Specified by:
      getEvents in interface Calendar
    • getEvents Link icon

      public List<CalendarEvent> getEvents(DateTimeValue start, DateTimeValue end)
      Description copied from interface: Calendar

      Returns 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).

      Specified by:
      getEvents in interface Calendar
    • getEvents Link icon

      public List<CalendarEvent> getEvents()
      Description copied from interface: Calendar
      Returns all events from this calendar. This will not resolve recurring events to its recurrence set.
      Specified by:
      getEvents in interface Calendar
    • addEvent Link icon

      public void addEvent(CalendarEvent event)
      Specified by:
      addEvent in interface Calendar
    • getICal Link icon

      public net.fortuna.ical4j.model.Calendar getICal()
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object