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
-
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 existsvoid
setCalendarEventContributions
(List<CalendarEventContribution> calendarEventContributions)
-
Constructor Details
-
CalendarEventContributionServiceImpl
public CalendarEventContributionServiceImpl()
-
-
Method Details
-
getSingleContribution
Description copied from interface:CalendarEventContributionService
get a contribution for an entity name that was contributed without a calendar type id throws if no contribution exists- Specified by:
getSingleContribution
in interfaceCalendarEventContributionService
- Parameters:
entityName
- the entity name inCalendarEventContribution.entityName
- Returns:
- the contribution
-
getSingleContribution
Description copied from interface:CalendarEventContributionService
get a contribution for an entity name that was contributed with a calendar type id throws if no contribution exists- Specified by:
getSingleContribution
in interfaceCalendarEventContributionService
- Parameters:
entityName
- the entity name inCalendarEventContribution.entityName
calendarTypeId
- the id inCalendarEventContribution.calendarTypeId
- Returns:
- the contribution
-
getContributions
Description copied from interface:CalendarEventContributionService
get all contributions committed for an entity name which have a 'calendarTypeId'.- Specified by:
getContributions
in interfaceCalendarEventContributionService
- Parameters:
entityName
- the entity name inCalendarEventContribution.entityName
- Returns:
- all contributions for this entity name
-
getAllContributions
Description copied from interface:CalendarEventContributionService
get all contributions- Specified by:
getAllContributions
in interfaceCalendarEventContributionService
- Returns:
- all contributions
-
getCalendarEntityType
Description copied from interface:CalendarEventContributionService
load the entity type for a calendar- Specified by:
getCalendarEntityType
in interfaceCalendarEventContributionService
- Parameters:
calendar
- the calendar used to loadCalendarEventContribution
- Returns:
- the entity type
-
getCalendarRelationName
Description copied from interface:CalendarEventContributionService
load the relation from a source entity to the calendar for a calendar- Specified by:
getCalendarRelationName
in interfaceCalendarEventContributionService
- Parameters:
calendar
- the calendar type to loadCalendarEventContribution
- Returns:
- the relation name
-
getCalendarEventSourceRelationNames
- Specified by:
getCalendarEventSourceRelationNames
in interfaceCalendarEventContributionService
-
setCalendarEventContributions
@Autowired public void setCalendarEventContributions(List<CalendarEventContribution> calendarEventContributions)
-