public class FileServiceImpl extends Object implements FileService
FileServiceImpl class.
NAME| Constructor and Description |
|---|
FileServiceImpl()
Constructor for FileServiceImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(File file,
boolean deleteRealFiles)
delete.
|
void |
deleteAll(List<File> files,
boolean deleteRealFiles)
deleteAll.
|
List<File> |
findByCriteria(String criteria,
boolean isCaseSens)
findByCriteria.
|
File |
findByID(Integer fileId)
findByID.
|
List<File> |
findByOwnerId(Integer registrationId)
findByOwnerId.
|
File |
findByPath(String path)
findByPath.
|
File |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
List<File> |
getFiles(Integer fileId)
getFiles.
|
List<File> |
getFiles(Integer fileId,
String metaType)
getFiles.
|
Integer |
insert(File file)
insert.
|
Integer |
insert(Registration registration,
File file)
insert.
|
boolean |
isExists(String fileName,
String folderStore)
isExists.
|
List<File> |
list()
list.
|
void |
setFileDAO(FileDAO dao)
setFileDAO.
|
Set<File> |
setWithHasFile(Set<File> list,
String metaType)
setWithHasFile.
|
void |
update(File file)
update.
|
void |
update(Registration registration,
File file)
update.
|
File |
updateDetached(File file)
updateDetached.
|
File |
updateDetached(Registration registration,
File file)
updateDetached.
|
public void setFileDAO(FileDAO dao)
setFileDAO.
Sets a private member variable with an instance of an implementation of FileDAO. This method is called by the Spring framework at run time.setFileDAO in interface FileServicedao - FileDAOpublic Integer insert(File file)
insert.
Inserts an instance of File into the database.insert in interface FileServicefile - a File object.public void update(File file)
update.
Updates an instance of File in the database.update in interface FileServicefile - a File object.public void delete(File file, boolean deleteRealFiles)
delete.
delete in interface FileServicefile - deleteRealFiles - public void deleteAll(List<File> files, boolean deleteRealFiles)
deleteAll.
deleteAll in interface FileServicefiles - deleteRealFiles - public boolean isExists(String fileName, String folderStore)
isExists.
isExists in interface FileServicefileName - a String object.folderStore - a String object.public List<File> getFiles(Integer fileId)
getFiles.
getFiles in interface FileServicefileId - a Integer object.List object.public List<File> getFiles(Integer fileId, String metaType)
getFiles.
getFiles in interface FileServicefileId - a Integer object.metaType - a String object.List object.public Set<File> setWithHasFile(Set<File> list, String metaType)
setWithHasFile.
setWithHasFile in interface FileServicelist - a Set object.metaType - a String object.Set object.public File findByPath(String path)
findByPath.
findByPath in interface FileServicepath - a String object.File object.public File findByID(Integer fileId)
findByID.
findByID in interface FileServicefileId - File object.public File findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession in interface FileServiceswAccession - a Integer object.File object.public List<File> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria in interface FileServicecriteria - a String object.isCaseSens - a boolean.List object.public File updateDetached(File file)
updateDetached.
updateDetached in interface FileServicefile - a File object.File object.public List<File> findByOwnerId(Integer registrationId)
findByOwnerId.
findByOwnerId in interface FileServiceregistrationId - a Integer object.List object.public List<File> list()
list.
list in interface FileServiceList object.public void update(Registration registration, File file)
update.
update in interface FileServiceregistration - a Registration object.file - a File object.public Integer insert(Registration registration, File file)
insert.
insert in interface FileServiceregistration - a Registration object.file - a File object.public File updateDetached(Registration registration, File file)
updateDetached.
updateDetached in interface FileServiceregistration - a Registration object.file - a File object.File object.Copyright © 2015 SeqWare. All rights reserved.