Interface CalendarEntityService
- All Known Implementing Classes:
CalendarEntityServiceImpl
public interface CalendarEntityService
used to handle Calendar entities
-
Method Summary
Modifier and TypeMethodDescriptiongetOrCreateEntityCalendar
(Entity sourceEntity, String entityName, String calendarTypeId) use to handle Calendar entities that are related to one specific source entity either loads an existing Calendar or creates a new onegetSystemCalendar
(String entityName) loads the system calendar for a given entity model do not use this for entity models that use one calendar for each entity
-
Method Details
-
getSystemCalendar
loads the system calendar for a given entity model do not use this for entity models that use one calendar for each entity- Parameters:
entityName
- the entity model to load the calendar for- Returns:
- an optional containing the system calendar if it exists, empty otherwise
-
getOrCreateEntityCalendar
use to handle Calendar entities that are related to one specific source entity either loads an existing Calendar or creates a new one- Parameters:
sourceEntity
- the source entity to get the Calendar forentityName
- the entity name for which to get the contributioncalendarTypeId
- the Calendar_type unique_id for which to get the contribution- Returns:
- the Calendar for the source entity
-