Class CalendarEventContributionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.calendar.impl.contributions.CalendarEventContributionServiceImpl
- All Implemented Interfaces:
CalendarEventContributionService
@Component
public class CalendarEventContributionServiceImpl
extends Object
implements CalendarEventContributionService
-
Constructor Summary
Constructors -
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, String calendarTypeId) get a contribution for an entity name that was contributed with a calendar type id throws if no contribution existsvoidsetCalendarEventContributions(List<CalendarEventContribution> calendarEventContributions)
-
Constructor Details
-
CalendarEventContributionServiceImpl
public CalendarEventContributionServiceImpl()
-
-
Method Details
-
getSingleContribution
Description copied from interface:CalendarEventContributionServiceget a contribution for an entity name that was contributed without a calendar type id throws if no contribution exists- Specified by:
getSingleContributionin interfaceCalendarEventContributionService- Parameters:
entityName- the entity name inCalendarEventContribution.entityName- Returns:
- the contribution
-
getSingleContribution
Description copied from interface:CalendarEventContributionServiceget a contribution for an entity name that was contributed with a calendar type id throws if no contribution exists- Specified by:
getSingleContributionin interfaceCalendarEventContributionService- Parameters:
entityName- the entity name inCalendarEventContribution.entityNamecalendarTypeId- the id inCalendarEventContribution.calendarTypeId- Returns:
- the contribution
-
getContributions
Description copied from interface:CalendarEventContributionServiceget all contributions committed for an entity name which have a 'calendarTypeId'.- Specified by:
getContributionsin interfaceCalendarEventContributionService- Parameters:
entityName- the entity name inCalendarEventContribution.entityName- Returns:
- all contributions for this entity name
-
getAllContributions
Description copied from interface:CalendarEventContributionServiceget all contributions- Specified by:
getAllContributionsin interfaceCalendarEventContributionService- Returns:
- all contributions
-
getCalendarEntityType
Description copied from interface:CalendarEventContributionServiceload the entity type for a calendar- Specified by:
getCalendarEntityTypein interfaceCalendarEventContributionService- Parameters:
calendar- the calendar used to loadCalendarEventContribution- Returns:
- the entity type
-
getCalendarRelationName
Description copied from interface:CalendarEventContributionServiceload the relation from a source entity to the calendar for a calendar- Specified by:
getCalendarRelationNamein interfaceCalendarEventContributionService- Parameters:
calendar- the calendar type to loadCalendarEventContribution- Returns:
- the relation name
-
getCalendarEventSourceRelationNames
- Specified by:
getCalendarEventSourceRelationNamesin interfaceCalendarEventContributionService
-
setCalendarEventContributions
@Autowired public void setCalendarEventContributions(List<CalendarEventContribution> calendarEventContributions)
-