Interface CalendarEventContributionService

All Known Implementing Classes:
CalendarEventContributionServiceImpl

public interface CalendarEventContributionService
used to easily handle CalendarEventContribution
  • Method Details

    • getSingleContribution

      CalendarEventContribution getSingleContribution(String entityName)
      get a contribution for an entity name that was contributed without a calendar type id throws if no contribution exists
      Parameters:
      entityName - the entity name in CalendarEventContribution.entityName
      Returns:
      the contribution
    • getSingleContribution

      CalendarEventContribution getSingleContribution(String entityName, @Nullable @Nullable String calendarTypeId)
      get a contribution for an entity name that was contributed with a calendar type id throws if no contribution exists
      Parameters:
      entityName - the entity name in CalendarEventContribution.entityName
      calendarTypeId - the id in CalendarEventContribution.calendarTypeId
      Returns:
      the contribution
    • getContributions

      Collection<CalendarEventContribution> getContributions(String entityName)
      get all contributions committed for an entity name which have a 'calendarTypeId'.
      Parameters:
      entityName - the entity name in CalendarEventContribution.entityName
      Returns:
      all contributions for this entity name
    • getAllContributions

      Collection<CalendarEventContribution> getAllContributions()
      get all contributions
      Returns:
      all contributions
    • getCalendarEntityType

      String getCalendarEntityType(Entity calendar)
      load the entity type for a calendar
      Parameters:
      calendar - the calendar used to load CalendarEventContribution
      Returns:
      the entity type
    • getCalendarRelationName

      String getCalendarRelationName(Entity calendar)
      load the relation from a source entity to the calendar for a calendar
      Parameters:
      calendar - the calendar type to load CalendarEventContribution
      Returns:
      the relation name
    • getCalendarEventSourceRelationNames

      Set<String> getCalendarEventSourceRelationNames(Entity calendar)