Class CalendarResourceURIs


  • @Bean
    @Singleton
    public final class CalendarResourceURIs
    extends Object
    Base URIs from which the REST-based resources representing calendar and event entities are defined.
    Author:
    Yohann Chastagnier
    • Constructor Detail

      • CalendarResourceURIs

        public CalendarResourceURIs()
    • Method Detail

      • ofCalendar

        public URI ofCalendar​(Calendar calendar)
        Centralizes the build of a calendar URI.
        Parameters:
        calendar - the aimed calendar.
        Returns:
        the URI of specified calendar.
      • ofOccurrence

        public URI ofOccurrence​(CalendarEventOccurrence occurrence)
        Centralizes the build of a occurrence URI.
        Parameters:
        occurrence - the aimed occurrence.
        Returns:
        the URI of specified occurrence.
      • ofOccurrencePermalink

        public URI ofOccurrencePermalink​(CalendarEventOccurrence occurrence)
        Centralizes the build of an occurrence permalink URI.
        Parameters:
        occurrence - te aimed occurrence.
        Returns:
        the permalink URI of specified occurrence.
      • ofOccurrenceView

        public URI ofOccurrenceView​(CalendarEventOccurrence occurrence)
        Centralizes the build of a occurrence view page URI.
        Parameters:
        occurrence - the aimed occurrence.
        Returns:
        the URI of specified occurrence.