Module org.apache.openmeetings.db
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaovoiddelete(OmCalendar c) Deletes the Calendar on the Database, along with all the Appointments associated with it.voiddelete(OmCalendar entity, Long userId) Delete an instance ofIDataProviderDaoget()get(long start, long count) Get a list of instances ofIDataProviderDaoReturns the Calendar Specified by the Calendar ID.get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDaoReturn all the Calendars that belong to the User.getGoogleCalendars(Long userId) Returns all the Google Calendars associated with the user.update(OmCalendar c) Creates or Updates the given calendar.update(OmCalendar entity, Long userId) Update an instance ofIDataProviderDaoMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDaoget
- 
Constructor Details- 
OmCalendarDaopublic OmCalendarDao()
 
- 
- 
Method Details- 
get
- 
getReturns the Calendar Specified by the Calendar ID.- Specified by:
- getin interface- IDataProviderDao<OmCalendar>
- Parameters:
- calId- Calendar ID of the Calendar to return.
- Returns:
- Returns the Calendar if found, else returns null
 
- 
getByUserReturn all the Calendars that belong to the User.- Parameters:
- userId- User ID to whom the calendars belong.
- Returns:
- List of Calendars
 
- 
getGoogleCalendarsReturns all the Google Calendars associated with the user.- Parameters:
- userId- User ID of the owner of the Calendar
- Returns:
- List of Google Calendars.
 
- 
updateCreates or Updates the given calendar.- Parameters:
- c- Calendar to Update
- Returns:
- Updated Calendar
 
- 
deleteDeletes the Calendar on the Database, along with all the Appointments associated with it.- Parameters:
- c- Calendar to Delete
 
- 
getDescription copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin 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
 
- 
getpublic List<OmCalendar> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin 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
 
- 
countpublic long count()Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<OmCalendar>
- Returns:
- count of instances
 
- 
countDescription copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<OmCalendar>
- Parameters:
- search- - string search criteria to filter entities
- Returns:
- count of instances satisfying given search criteria
 
- 
updateDescription copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
- updatein interface- IDataProviderDao<OmCalendar>
- Parameters:
- entity- - entity to be updated
- userId- - user performed update
- Returns:
- - updated entity
 
- 
deleteDescription copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
- deletein interface- IDataProviderDao<OmCalendar>
- Parameters:
- entity- - entity to be deleted
- userId- - user performed delete
 
 
-