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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
count()
Count the number of instances ofIDataProviderDao
long
Count the number of instances ofIDataProviderDao
void
delete
(OmCalendar c) Deletes the Calendar on the Database, along with all the Appointments associated with it.void
delete
(OmCalendar entity, Long userId) Delete an instance ofIDataProviderDao
get()
get
(long start, long count) Get a list of instances ofIDataProviderDao
Returns 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 ofIDataProviderDao
Return 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 ofIDataProviderDao
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDao
get
-
Constructor Details
-
OmCalendarDao
public OmCalendarDao()
-
-
Method Details
-
get
-
get
Returns the Calendar Specified by the Calendar ID.- Specified by:
get
in interfaceIDataProviderDao<OmCalendar>
- Parameters:
calId
- Calendar ID of the Calendar to return.- Returns:
- Returns the Calendar if found, else returns null
-
getByUser
Return all the Calendars that belong to the User.- Parameters:
userId
- User ID to whom the calendars belong.- Returns:
- List of Calendars
-
getGoogleCalendars
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
Creates or Updates the given calendar.- Parameters:
c
- Calendar to Update- Returns:
- Updated Calendar
-
delete
Deletes the Calendar on the Database, along with all the Appointments associated with it.- Parameters:
c
- Calendar to Delete
-
get
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<OmCalendar>
- Parameters:
start
- - the start to range to retrievecount
- - 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 ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<OmCalendar>
- Parameters:
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrieveorder
- - 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 ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<OmCalendar>
- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<OmCalendar>
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
update
Description copied from interface:IDataProviderDao
Update an instance ofIDataProviderDao
- Specified by:
update
in interfaceIDataProviderDao<OmCalendar>
- Parameters:
entity
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
delete
Description copied from interface:IDataProviderDao
Delete an instance ofIDataProviderDao
- Specified by:
delete
in interfaceIDataProviderDao<OmCalendar>
- Parameters:
entity
- - entity to be deleteduserId
- - user performed delete
-