Class FileItemDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.file.BaseFileItemDao
-
- org.apache.openmeetings.db.dao.file.FileItemDao
-
- All Implemented Interfaces:
IDataProviderDao<BaseFileItem>
@Repository @Transactional public class FileItemDao extends BaseFileItemDao
- Author:
- sebastianwagner
-
-
Field Summary
-
Fields inherited from class org.apache.openmeetings.db.dao.file.BaseFileItemDao
em
-
-
Constructor Summary
Constructors Constructor Description FileItemDao()
-
Method Summary
-
Methods inherited from class org.apache.openmeetings.db.dao.file.BaseFileItemDao
count, count, delete, delete, get, get, get, getAny, getAny, getBase, update, updateBase
-
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
-
getByGroup
public List<FileItem> getByGroup(Long groupId, List<BaseFileItem.Type> filter)
-
getByParent
public List<FileItem> getByParent(Long parentId, List<BaseFileItem.Type> filter)
-
get
public FileItem get(Long id)
Description copied from interface:IDataProviderDao
Get an instance of anIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<BaseFileItem>
- Overrides:
get
in classBaseFileItemDao
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
rename
public FileItem rename(Long id, String name)
- Parameters:
id
- - id of file item to renamename
- - new name- Returns:
- renamed item
-
move
public FileItem move(long id, long parentId, long ownerId, long roomId)
- Parameters:
id
- - id of file item to moveparentId
- - id of parent itemownerId
- - id of item ownerroomId
- - id of room- Returns:
- moved item
-
getAllRoomFiles
public List<BaseFileItem> getAllRoomFiles(String search, long start, long count, Long roomId, List<Group> groups)
-
get
public List<BaseFileItem> get(Collection<String> ids)
-
getOwnSize
public long getOwnSize(Long userId)
-
getRoomSize
public long getRoomSize(Long roomId)
-
getSize
public long getSize(FileItem f)
-
-