Class OmCalendarDao

java.lang.Object
org.apache.openmeetings.db.dao.calendar.OmCalendarDao
All Implemented Interfaces:
IDataProviderDao<OmCalendar>

@Repository @Transactional public class OmCalendarDao extends Object implements IDataProviderDao<OmCalendar>
  • Constructor Details

    • OmCalendarDao

      public OmCalendarDao()
  • Method Details

    • get

      public List<OmCalendar> get()
    • get

      public OmCalendar get(Long calId)
      Returns the Calendar Specified by the Calendar ID.
      Specified by:
      get in interface IDataProviderDao<OmCalendar>
      Parameters:
      calId - Calendar ID of the Calendar to return.
      Returns:
      Returns the Calendar if found, else returns null
    • getByUser

      public List<OmCalendar> getByUser(Long userId)
      Return all the Calendars that belong to the User.
      Parameters:
      userId - User ID to whom the calendars belong.
      Returns:
      List of Calendars
    • getGoogleCalendars

      public List<OmCalendar> getGoogleCalendars(Long userId)
      Returns all the Google Calendars associated with the user.
      Parameters:
      userId - User ID of the owner of the Calendar
      Returns:
      List of Google Calendars.
    • update

      public OmCalendar update(OmCalendar c)
      Creates or Updates the given calendar.
      Parameters:
      c - Calendar to Update
      Returns:
      Updated Calendar
    • delete

      public void delete(OmCalendar c)
      Deletes the Calendar on the Database, along with all the Appointments associated with it.
      Parameters:
      c - Calendar to Delete
    • get

      public List<OmCalendar> get(long start, long count)
      Description copied from interface: IDataProviderDao
      Get a list of instances of IDataProviderDao
      Specified by:
      get in interface IDataProviderDao<OmCalendar>
      Parameters:
      start - - the start to range to retrieve
      count - - maximum instance count to retrieve
      Returns:
      list of instances in the range specified
    • get

      public List<OmCalendar> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order)
      Description copied from interface: IDataProviderDao
      Get a list of instances of IDataProviderDao
      Specified by:
      get in interface IDataProviderDao<OmCalendar>
      Parameters:
      search - - string search criteria to filter entities
      start - - the start to range to retrieve
      count - - maximum instance count to retrieve
      order - - column and sort order
      Returns:
      list of instances in the range specified
    • count

      public long count()
      Description copied from interface: IDataProviderDao
      Count the number of instances of IDataProviderDao
      Specified by:
      count in interface IDataProviderDao<OmCalendar>
      Returns:
      count of instances
    • count

      public long count(String search)
      Description copied from interface: IDataProviderDao
      Count the number of instances of IDataProviderDao
      Specified by:
      count in interface IDataProviderDao<OmCalendar>
      Parameters:
      search - - string search criteria to filter entities
      Returns:
      count of instances satisfying given search criteria
    • update

      public OmCalendar update(OmCalendar entity, Long userId)
      Description copied from interface: IDataProviderDao
      Update an instance of IDataProviderDao
      Specified by:
      update in interface IDataProviderDao<OmCalendar>
      Parameters:
      entity - - entity to be updated
      userId - - user performed update
      Returns:
      - updated entity
    • delete

      public void delete(OmCalendar entity, Long userId)
      Description copied from interface: IDataProviderDao
      Delete an instance of IDataProviderDao
      Specified by:
      delete in interface IDataProviderDao<OmCalendar>
      Parameters:
      entity - - entity to be deleted
      userId - - user performed delete