@Transactional public class FileExplorerItemDao extends Object
Constructor and Description |
---|
FileExplorerItemDao() |
Modifier and Type | Method and Description |
---|---|
Long |
add(String fileName,
String fileHash,
Long parentId,
Long ownerId,
Long roomId,
Long insertedBy,
FileItem.Type type,
String wmlFilePath,
String externalId,
String externalType) |
void |
delete(FileExplorerItem f) |
void |
delete(String externalId,
String externalType) |
List<FileExplorerItem> |
get() |
FileExplorerItem |
get(Long id) |
FileExplorerItem |
get(String externalId,
String externalType) |
FileExplorerItem |
getByHash(String hash) |
List<FileExplorerItem> |
getByOwner(Long ownerId) |
List<FileExplorerItem> |
getByParent(Long parentId) |
List<FileExplorerItem> |
getByRoom(Long roomId) |
List<FileExplorerItem> |
getFileExplorerItemsByRoomAndOwner(Long roomId,
Long ownerId) |
FileExplorerItem |
move(long id,
long parentId,
long ownerId,
long roomId) |
FileExplorerItem |
rename(Long id,
String name) |
FileExplorerItem |
update(FileExplorerItem f) |
public Long add(String fileName, String fileHash, Long parentId, Long ownerId, Long roomId, Long insertedBy, FileItem.Type type, String wmlFilePath, String externalId, String externalType)
public List<FileExplorerItem> getFileExplorerItemsByRoomAndOwner(Long roomId, Long ownerId)
public List<FileExplorerItem> getByRoom(Long roomId)
public List<FileExplorerItem> getByOwner(Long ownerId)
public List<FileExplorerItem> getByParent(Long parentId)
public FileExplorerItem getByHash(String hash)
public FileExplorerItem get(Long id)
public FileExplorerItem get(String externalId, String externalType)
public List<FileExplorerItem> get()
public void delete(FileExplorerItem f)
public FileExplorerItem rename(Long id, String name)
id
- name
- public FileExplorerItem update(FileExplorerItem f)
public FileExplorerItem move(long id, long parentId, long ownerId, long roomId)
id
- newParentFileExplorerItemId
- isOwner
- Copyright © 2012–2016 Apache Software Foundation. All rights reserved.