Interface CalendarEntityService

All Known Implementing Classes:
CalendarEntityServiceImpl

public interface CalendarEntityService
used to handle Calendar entities
  • Method Summary

    Modifier and Type
    Method
    Description
    getOrCreateEntityCalendar(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 one
    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

      Entity getSystemCalendar(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
      Parameters:
      entityName - the entity model to load the calendar for
      Returns:
      an optional containing the system calendar if it exists, empty otherwise
    • getOrCreateEntityCalendar

      Entity getOrCreateEntityCalendar(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 one
      Parameters:
      sourceEntity - the source entity to get the Calendar for
      entityName - the entity name for which to get the contribution
      calendarTypeId - the Calendar_type unique_id for which to get the contribution
      Returns:
      the Calendar for the source entity