public class StudyServiceImpl extends Object implements StudyService
StudyServiceImpl class.
NAME
Constructor and Description |
---|
StudyServiceImpl()
Constructor for StudyServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Study study,
boolean deleteRealFiles)
delete.
|
List<Study> |
findByCriteria(String criteria)
findByCriteria.
|
List<Study> |
findByCriteria(String criteria,
boolean isCaseSens)
findByCriteria.
|
Study |
findByID(Integer studyID)
findByID.
|
List<Study> |
findByOwnerID(Integer registrationId)
findByOwnerID.
|
Study |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
List<Study> |
findByTitle(String title)
findByTitle.
|
int |
getFailedCount(Study study)
getFailedCount.
|
List<File> |
getFiles(Integer studyId)
getFiles.
|
List<File> |
getFiles(Integer studyId,
String metaType)
getFiles.
|
int |
getFinishedCount(Study study)
getFinishedCount.
|
int |
getRunningCount(Study study)
getRunningCount.
|
StudyDAO |
getStudyDAO()
Getter for the field
studyDAO . |
StudyTypeDAO |
getStudyTypeDAO()
Getter for the field
studyTypeDAO . |
boolean |
hasTitleBeenUsed(String oldTitle,
String newTitle)
hasTitleBeenUsed.
|
Integer |
insert(Registration registration,
Study study)
insert.
|
Integer |
insert(Study study)
insert.
|
boolean |
isHasFile(Integer studyId)
isHasFile.
|
boolean |
isHasFile(Integer studyId,
String metaType)
isHasFile.
|
List<Study> |
list()
list.
|
List<Study> |
list(Registration registration)
list.
|
List<Study> |
list(Registration registration,
Boolean isAcs)
list.
|
List<Study> |
listMyShared(Registration registration,
Boolean isAcs)
listMyShared.
|
List<Study> |
listSharedWithMe(Registration registration)
listSharedWithMe.
|
List<Study> |
listSharedWithMe(Registration registration,
Boolean isAcs)
listSharedWithMe.
|
List<Study> |
listStudyHasFile(Registration registration,
String metaType,
Boolean isAsc)
listStudyHasFile.
|
List<Study> |
listWithHasFile(List<Study> list)
listWithHasFile.
|
List<Study> |
listWithHasFile(List<Study> list,
String metaType)
listWithHasFile.
|
void |
merge(Study study)
merge.
|
void |
setFileDAO(FileDAO fileDAO)
Sets a private member variable with an instance of an implementation of FileDAO.
|
void |
setStudyDAO(StudyDAO studyDAO)
setStudyDAO.
|
void |
setStudyTypeDAO(StudyTypeDAO studyTypeDAO)
Setter for the field
studyTypeDAO . |
void |
update(Registration registration,
Study study)
update.
|
void |
update(Study study)
update.
|
Study |
updateDetached(Registration registration,
Study study)
updateDetached.
|
Study |
updateDetached(Study study)
updateDetached.
|
void |
updateOwners(Integer swAccession)
updateOwners.
|
public void setStudyDAO(StudyDAO studyDAO)
setStudyDAO.
Sets a private member variable with an instance of an implementation of StudyDAO. This method is called by the Spring framework at run time.setStudyDAO
in interface StudyService
studyDAO
- a StudyDAO
object.StudyDAO
public void setFileDAO(FileDAO fileDAO)
fileDAO
- implementation of FileDAOFileDAO
public Integer insert(Study study)
insert.
Inserts an instance of Study into the database.insert
in interface StudyService
study
- a Study
object.Integer
object.public void update(Study study)
update.
Updates an instance of Study in the database.update
in interface StudyService
study
- a Study
object.public void merge(Study study)
merge.
merge
in interface StudyService
study
- a Study
object.public void delete(Study study, boolean deleteRealFiles)
delete.
Updates an instance of Study in the database.delete
in interface StudyService
study
- deleteRealFiles
- public List<File> getFiles(Integer studyId)
getFiles.
getFiles
in interface StudyService
studyId
- a Integer
object.List
object.public boolean isHasFile(Integer studyId)
isHasFile.
isHasFile
in interface StudyService
studyId
- a Integer
object.public List<File> getFiles(Integer studyId, String metaType)
getFiles.
getFiles
in interface StudyService
studyId
- a Integer
object.metaType
- a String
object.List
object.public boolean isHasFile(Integer studyId, String metaType)
isHasFile.
isHasFile
in interface StudyService
studyId
- a Integer
object.metaType
- a String
object.public List<Study> list(Registration registration)
list.
list
in interface StudyService
registration
- a Registration
object.List
object.public List<Study> list(Registration registration, Boolean isAcs)
list.
list
in interface StudyService
registration
- a Registration
object.isAcs
- a Boolean
object.List
object.public List<Study> listMyShared(Registration registration, Boolean isAcs)
listMyShared.
listMyShared
in interface StudyService
registration
- a Registration
object.isAcs
- a Boolean
object.List
object.public List<Study> listSharedWithMe(Registration registration)
listSharedWithMe.
listSharedWithMe
in interface StudyService
registration
- a Registration
object.List
object.public List<Study> listSharedWithMe(Registration registration, Boolean isAcs)
listSharedWithMe.
listSharedWithMe
in interface StudyService
registration
- a Registration
object.isAcs
- a Boolean
object.List
object.public List<Study> findByTitle(String title)
findByTitle.
Finds an instance of Study in the database by the Study emailAddress, and copies the Study properties to an instance of Study.findByTitle
in interface StudyService
title
- a String
object.Study
object.public Study findByID(Integer studyID)
findByID.
findByID
in interface StudyService
studyID
- Study
object.public Study findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession
in interface StudyService
swAccession
- a Integer
object.Study
object.public List<Study> findByOwnerID(Integer registrationId)
findByOwnerID.
findByOwnerID
in interface StudyService
registrationId
- a Integer
object.List
object.public List<Study> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria
in interface StudyService
criteria
- a String
object.isCaseSens
- a boolean.List
object.public List<Study> findByCriteria(String criteria)
findByCriteria.
findByCriteria
in interface StudyService
criteria
- a String
object.List
object.public boolean hasTitleBeenUsed(String oldTitle, String newTitle)
hasTitleBeenUsed.
Determines if an study title has already been used.hasTitleBeenUsed
in interface StudyService
oldTitle
- a String
object.newTitle
- a String
object.public List<Study> listWithHasFile(List<Study> list)
listWithHasFile.
listWithHasFile
in interface StudyService
list
- a List
object.List
object.public List<Study> listWithHasFile(List<Study> list, String metaType)
listWithHasFile.
listWithHasFile
in interface StudyService
list
- a List
object.metaType
- a String
object.List
object.public List<Study> list()
list.
list
in interface StudyService
List
object.public List<Study> listStudyHasFile(Registration registration, String metaType, Boolean isAsc)
listStudyHasFile.
listStudyHasFile
in interface StudyService
isAsc
- registration
- a Registration
object.metaType
- a String
object.List
object.public StudyTypeDAO getStudyTypeDAO()
Getter for the field studyTypeDAO
.
StudyTypeDAO
object.public void setStudyTypeDAO(StudyTypeDAO studyTypeDAO)
Setter for the field studyTypeDAO
.
studyTypeDAO
- a StudyTypeDAO
object.public Study updateDetached(Study study)
updateDetached.
updateDetached
in interface StudyService
study
- a Study
object.Study
object.public void updateOwners(Integer swAccession)
updateOwners.
updateOwners
in interface StudyService
swAccession
- a Integer
object.public void update(Registration registration, Study study)
update.
update
in interface StudyService
registration
- a Registration
object.study
- a Study
object.public Integer insert(Registration registration, Study study)
insert.
insert
in interface StudyService
registration
- a Registration
object.study
- a Study
object.Integer
object.public Study updateDetached(Registration registration, Study study)
updateDetached.
updateDetached
in interface StudyService
registration
- a Registration
object.study
- a Study
object.Study
object.public int getRunningCount(Study study)
getRunningCount.
getRunningCount
in interface StudyService
study
- a Study
object.public int getFinishedCount(Study study)
getFinishedCount.
getFinishedCount
in interface StudyService
study
- a Study
object.public int getFailedCount(Study study)
getFailedCount.
getFailedCount
in interface StudyService
study
- a Study
object.Copyright © 2015 SeqWare. All rights reserved.