Class CalendarEntryDTO

    • Constructor Detail

      • CalendarEntryDTO

        public CalendarEntryDTO()
        Creates an empty CalendarEntry, which can be populated with set calls.
    • Method Detail

      • setTitle

        public void setTitle​(String title)
        Sets the Title ("what") of the event
        Specified by:
        setTitle in interface CalendarEntry
      • setStart

        public void setStart​(Date start)
        Sets the event start date and time
        Specified by:
        setStart in interface CalendarEntry
      • setEnd

        public void setEnd​(Date end)
        Sets the event end date and time
        Specified by:
        setEnd in interface CalendarEntry
      • getLastRecurrence

        public Date getLastRecurrence()
        Gets the date of the last instance of this recurring event
        Specified by:
        getLastRecurrence in interface CalendarEntry
      • setLastRecurrence

        public void setLastRecurrence​(Date lastRecurrence)
        Sets the date of the last instance of this recurring event
        Specified by:
        setLastRecurrence in interface CalendarEntry
      • isOutlook

        public boolean isOutlook()
        Is this an outlook based event?
        Specified by:
        isOutlook in interface CalendarEntry
      • setOutlook

        public void setOutlook​(boolean outlook)
        Sets if this is an outlook based event or not
        Specified by:
        setOutlook in interface CalendarEntry
      • setOutlookUID

        public void setOutlookUID​(String outlookUID)
        Sets the UID used by Outlook for this event. When a UID is set, normally the isOutlook flag is set too.
        Specified by:
        setOutlookUID in interface CalendarEntry
      • getSharePointDocFolder

        public String getSharePointDocFolder()
        Gets the SharePoint "Doc Folder" for the event. Only used for SharePoint based events
        Specified by:
        getSharePointDocFolder in interface CalendarEntry
      • setSharePointDocFolder

        public void setSharePointDocFolder​(String docFolder)
        Sets the SharePoint "Doc Folder" for the event. Only used for SharePoint based events
        Specified by:
        setSharePointDocFolder in interface CalendarEntry
      • getCreatedAt

        public Date getCreatedAt()
        Gets when this entry was created
        Specified by:
        getCreatedAt in interface CalendarEntry
        Returns:
        the creation date and time
      • setCreatedAt

        public void setCreatedAt​(Date createdAt)
      • getModifiedAt

        public Date getModifiedAt()
        Gets when this entry was modified
        Specified by:
        getModifiedAt in interface CalendarEntry
        Returns:
        the modification date and time
      • setModifiedAt

        public void setModifiedAt​(Date modifiedAt)
      • isAllDay

        public static boolean isAllDay​(CalendarEntry entry)
        Does the given CalendarEntry define an all-day event? An All Day Event is defined as one starting at midnight on a day, and ending at midnight. For a single day event, the start and end dates should be the same, and the times for both are UTC midnight. For a multi day event, the start and end times are UTC midnight, for the first and last days respectively.