Class RoomDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.room.RoomDao
-
- All Implemented Interfaces:
IDataProviderDao<Room>
,IGroupAdminDataProviderDao<Room>
@Repository @Transactional public class RoomDao extends Object implements IGroupAdminDataProviderDao<Room>
-
-
Field Summary
Fields Modifier and Type Field Description static String
GRP_FILES
static String
GRP_GROUPS
static String
GRP_MODERATORS
-
Constructor Summary
Constructors Constructor Description RoomDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
adminCount(String search, Long adminId)
Count the number of instances ofIGroupAdminDataProviderDao
List<Room>
adminGet(String search, Long adminId, long start, long count, String order)
Get a list of instances ofIGroupAdminDataProviderDao
long
count()
Count the number of instances ofIDataProviderDao
long
count(String search)
Count the number of instances ofIDataProviderDao
void
delete(Room entity, Long userId)
Delete an instance ofIDataProviderDao
List<Room>
get()
List<Room>
get(long start, long count)
Get a list of instances ofIDataProviderDao
Room
get(Long id)
Get an instance of anIDataProviderDao
Room
get(String tag)
List<Room>
get(String search, long start, long count, String sort)
Get a list of instances ofIDataProviderDao
List<Room>
get(List<Long> ids)
List<Room>
getAppointedRoomsByUser(long userId)
Room
getExternal(String externalType, String externalId)
Room
getExternal(Room.Type type, String externalType, String externalId)
List<RoomFile>
getFiles()
List<Room>
getGroupRooms(long groupId)
List<RoomGroup>
getGroups()
List<Room>
getMyRooms(Long userId, String confLbl, String restrLbl)
List<Room>
getPublicRooms()
List<Room>
getPublicRooms(Room.Type type)
List<Room>
getRecent(Long userId)
List<Long>
getSipRooms(List<Long> ids)
Room
getUserRoom(Long ownerId, Room.Type type, String name)
Room
update(Room 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
-
Methods inherited from interface org.apache.openmeetings.db.dao.IGroupAdminDataProviderDao
adminCount, adminGet
-
-
-
-
Field Detail
-
GRP_MODERATORS
public static final String GRP_MODERATORS
- See Also:
- Constant Field Values
-
GRP_GROUPS
public static final String GRP_GROUPS
- See Also:
- Constant Field Values
-
GRP_FILES
public static final String GRP_FILES
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public Room get(Long id)
Description copied from interface:IDataProviderDao
Get an instance of anIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<Room>
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
public List<Room> get(long start, long count)
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<Room>
- Parameters:
start
- - the start to range to retrievecount
- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
public List<Room> get(String search, long start, long count, String sort)
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<Room>
- 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
-
adminGet
public List<Room> adminGet(String search, Long adminId, long start, long count, String order)
Description copied from interface:IGroupAdminDataProviderDao
Get a list of instances ofIGroupAdminDataProviderDao
- Specified by:
adminGet
in interfaceIGroupAdminDataProviderDao<Room>
- Parameters:
search
- - string search criteria to filter entitiesadminId
- - id of group admin userstart
- - 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<Room>
- Returns:
- count of instances
-
count
public long count(String search)
Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<Room>
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
adminCount
public long adminCount(String search, Long adminId)
Description copied from interface:IGroupAdminDataProviderDao
Count the number of instances ofIGroupAdminDataProviderDao
- Specified by:
adminCount
in interfaceIGroupAdminDataProviderDao<Room>
- Parameters:
search
- - string search criteria to filter entitiesadminId
- - id of group admin user- Returns:
- count of instances satisfying given search criteria
-
update
public Room update(Room entity, Long userId)
Description copied from interface:IDataProviderDao
Update an instance ofIDataProviderDao
- Specified by:
update
in interfaceIDataProviderDao<Room>
- Parameters:
entity
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
delete
public void delete(Room entity, Long userId)
Description copied from interface:IDataProviderDao
Delete an instance ofIDataProviderDao
- Specified by:
delete
in interfaceIDataProviderDao<Room>
- Parameters:
entity
- - entity to be deleteduserId
- - user performed delete
-
-