Interface CalendarEventContributionService
- All Known Implementing Classes:
CalendarEventContributionServiceImpl
public interface CalendarEventContributionService
used to easily handle
CalendarEventContribution
-
Method Summary
Modifier and TypeMethodDescriptionget all contributionsgetCalendarEntityType
(Entity calendar) load the entity type for a calendargetCalendarEventSourceRelationNames
(Entity calendar) getCalendarRelationName
(Entity calendar) load the relation from a source entity to the calendar for a calendargetContributions
(String entityName) get all contributions committed for an entity name which have a 'calendarTypeId'.getSingleContribution
(String entityName) get a contribution for an entity name that was contributed without a calendar type id throws if no contribution existsgetSingleContribution
(String entityName, @Nullable String calendarTypeId) get a contribution for an entity name that was contributed with a calendar type id throws if no contribution exists
-
Method Details
-
getSingleContribution
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 inCalendarEventContribution.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 inCalendarEventContribution.entityName
calendarTypeId
- the id inCalendarEventContribution.calendarTypeId
- Returns:
- the contribution
-
getContributions
get all contributions committed for an entity name which have a 'calendarTypeId'.- Parameters:
entityName
- the entity name inCalendarEventContribution.entityName
- Returns:
- all contributions for this entity name
-
getAllContributions
Collection<CalendarEventContribution> getAllContributions()get all contributions- Returns:
- all contributions
-
getCalendarEntityType
load the entity type for a calendar- Parameters:
calendar
- the calendar used to loadCalendarEventContribution
- Returns:
- the entity type
-
getCalendarRelationName
load the relation from a source entity to the calendar for a calendar- Parameters:
calendar
- the calendar type to loadCalendarEventContribution
- Returns:
- the relation name
-
getCalendarEventSourceRelationNames
-