Class GroupUserDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.user.GroupUserDao
-
- All Implemented Interfaces:
IDataProviderDao<GroupUser>
@Repository @Transactional public class GroupUserDao extends Object implements IDataProviderDao<GroupUser>
-
-
Constructor Summary
Constructors Constructor Description GroupUserDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()Count the number of instances ofIDataProviderDaolongcount(long groupId)longcount(String search)Count the number of instances ofIDataProviderDaovoiddelete(GroupUser entity, Long userId)Delete an instance ofIDataProviderDaoList<GroupUser>get(long start, long count)Get a list of instances ofIDataProviderDaoList<GroupUser>get(long groupId, long start, long count)List<GroupUser>get(long groupId, String search, long start, long count, String sort)GroupUserget(Long id)Get an instance of anIDataProviderDaoList<GroupUser>get(String search, long start, long count, String sort)Get a list of instances ofIDataProviderDaoGroupUsergetByGroupAndUser(Long groupId, Long userId)List<User>getGroupModerators(Long id)longgetGroupUserCountAddedAfter(Long id, Date date)booleanisUserInGroup(long groupId, long userId)GroupUserupdate(GroupUser 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
-
-
-
-
Method Detail
-
get
public GroupUser get(Long id)
Description copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<GroupUser>- Parameters:
id- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
public List<GroupUser> get(long start, long count)
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<GroupUser>- Parameters:
start- - the start to range to retrievecount- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
public List<GroupUser> get(String search, long start, long count, String sort)
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<GroupUser>- Parameters:
search- - string search criteria to filter entitiesstart- - the start to range to retrievecount- - maximum instance count to retrievesort- - column and sort order- Returns:
- list of instances in the range specified
-
isUserInGroup
public boolean isUserInGroup(long groupId, long userId)
-
count
public long count()
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<GroupUser>- Returns:
- count of instances
-
count
public long count(String search)
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<GroupUser>- Parameters:
search- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
count
public long count(long groupId)
-
update
public GroupUser update(GroupUser entity, Long userId)
Description copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
updatein interfaceIDataProviderDao<GroupUser>- Parameters:
entity- - entity to be updateduserId- - user performed update- Returns:
- - updated entity
-
delete
public void delete(GroupUser entity, Long userId)
Description copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
deletein interfaceIDataProviderDao<GroupUser>- Parameters:
entity- - entity to be deleteduserId- - user performed delete
-
-