public class LaneServiceImpl extends Object implements LaneService
LaneServiceImpl class.
NAME
Constructor and Description |
---|
LaneServiceImpl()
Constructor for LaneServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Lane lane,
boolean deleteRealFiles)
delete.
|
List<Lane> |
findByCriteria(String criteria,
boolean isCaseSens)
findByCriteria.
|
Lane |
findByID(Integer laneID)
findByID.
|
Lane |
findByName(String name)
findByName.
|
List<Lane> |
findByOwnerID(Integer registrationId)
findByOwnerID.
|
Lane |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
List<File> |
getFiles(Integer laneId)
getFiles.
|
List<File> |
getFiles(Integer studyId,
String metaType)
getFiles.
|
boolean |
hasNameBeenUsed(String oldName,
String newName)
hasNameBeenUsed.
|
void |
insert(Lane lane)
insert.
|
Integer |
insert(Registration registration,
Lane lane)
insert.
|
Integer |
insertLane(Registration registration,
Sample sample,
UploadSequence uploadSeqence,
FileType fileType)
insertLane.
|
boolean |
isHasFile(Integer laneId)
isHasFile.
|
boolean |
isHasFile(Integer studyId,
String metaType)
isHasFile.
|
List<Lane> |
list()
list.
|
List<Lane> |
list(List<Integer> laneIds)
list.
|
List<File> |
listFile(Registration reqistration,
String typeNode,
List<File> list,
String[] ids,
String[] statuses)
listFile.
|
SortedSet<Lane> |
listWithHasFile(SortedSet<Lane> list,
String metaType)
listWithHasFile.
|
void |
setFileDAO(FileDAO fileDAO)
Sets a private member variable with an instance of an implementation of FileDAO.
|
void |
setIUSDAO(IUSDAO IUSDAO)
Sets a private member variable with an instance of an implementation of IUSDAO.
|
void |
setLaneDAO(LaneDAO laneDAO)
setLaneDAO.
|
void |
setProcessingDAO(ProcessingDAO processingDAO)
Sets a private member variable with an instance of an implementation of ProcessingDAO.
|
SortedSet<Lane> |
setWithHasFile(SortedSet<Lane> list)
setWithHasFile.
|
void |
update(Lane lane)
update.
|
void |
update(Registration registration,
Lane lane)
update.
|
Lane |
updateDetached(Lane lane)
updateDetached.
|
Lane |
updateDetached(Registration registration,
Lane lane)
updateDetached.
|
Integer |
updateLane(Sample sample,
org.springframework.web.multipart.MultipartFile fileOne,
org.springframework.web.multipart.MultipartFile fileTwo,
String typeFile,
String folderStore,
Registration registration)
updateLane.
|
public void setLaneDAO(LaneDAO laneDAO)
setLaneDAO.
Sets a private member variable with an instance of an implementation of LaneDAO. This method is called by the Spring framework at run time.setLaneDAO
in interface LaneService
laneDAO
- a LaneDAO
object.LaneDAO
public void setProcessingDAO(ProcessingDAO processingDAO)
processingDAO
- implementation of ProcessingDAOProcessingDAO
public void setFileDAO(FileDAO fileDAO)
fileDAO
- implementation of FileDAOfileDAO
public void setIUSDAO(IUSDAO IUSDAO)
IUSDAO
- a IUSDAO
object.iusDAO
public List<File> getFiles(Integer laneId)
getFiles.
getFiles
in interface LaneService
laneId
- a Integer
object.List
object.public List<File> getFiles(Integer studyId, String metaType)
getFiles.
getFiles
in interface LaneService
studyId
- a Integer
object.metaType
- a String
object.List
object.public boolean isHasFile(Integer studyId, String metaType)
isHasFile.
isHasFile
in interface LaneService
studyId
- a Integer
object.metaType
- a String
object.public boolean isHasFile(Integer laneId)
isHasFile.
isHasFile
in interface LaneService
laneId
- a Integer
object.public SortedSet<Lane> setWithHasFile(SortedSet<Lane> list)
setWithHasFile.
setWithHasFile
in interface LaneService
list
- a SortedSet
object.SortedSet
object.public SortedSet<Lane> listWithHasFile(SortedSet<Lane> list, String metaType)
listWithHasFile.
listWithHasFile
in interface LaneService
list
- a SortedSet
object.metaType
- a String
object.SortedSet
object.public Integer insertLane(Registration registration, Sample sample, UploadSequence uploadSeqence, FileType fileType) throws Exception
insertLane.
insertLane
in interface LaneService
uploadSeqence
- registration
- a Registration
object.sample
- a Sample
object.fileType
- a FileType
object.Integer
object.Exception
- if any.public Integer updateLane(Sample sample, org.springframework.web.multipart.MultipartFile fileOne, org.springframework.web.multipart.MultipartFile fileTwo, String typeFile, String folderStore, Registration registration) throws Exception
updateLane.
public List<Lane> list(List<Integer> laneIds)
list.
list
in interface LaneService
laneIds
- a List
object.List
object.public void insert(Lane lane)
insert.
Inserts an instance of Lane into the database.insert
in interface LaneService
lane
- a Lane
object.public void update(Lane lane)
update.
Updates an instance of Lane in the database.update
in interface LaneService
lane
- a Lane
object.public void delete(Lane lane, boolean deleteRealFiles)
delete.
Deletes an instance of Lane in the database.delete
in interface LaneService
lane
- deleteRealFiles
- public Lane findByName(String name)
findByName.
Finds an instance of Lane in the database by the Lane emailAddress, and copies the Lane properties to an instance of Lane.findByName
in interface LaneService
name
- a String
object.Lane
object.public Lane findByID(Integer laneID)
findByID.
findByID
in interface LaneService
laneID
- a Integer
object.Lane
object.public Lane findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession
in interface LaneService
swAccession
- a Integer
object.Lane
object.public List<Lane> findByOwnerID(Integer registrationId)
findByOwnerID.
findByOwnerID
in interface LaneService
registrationId
- a Integer
object.List
object.public boolean hasNameBeenUsed(String oldName, String newName)
hasNameBeenUsed.
Determines if an email address has already been used.hasNameBeenUsed
in interface LaneService
oldName
- a String
object.newName
- a String
object.public List<File> listFile(Registration reqistration, String typeNode, List<File> list, String[] ids, String[] statuses)
listFile.
listFile
in interface LaneService
reqistration
- a Registration
object.typeNode
- a String
object.list
- a List
object.ids
- an array of String
objects.statuses
- an array of String
objects.List
object.public List<Lane> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria
in interface LaneService
criteria
- a String
object.isCaseSens
- a boolean.List
object.public Lane updateDetached(Lane lane)
updateDetached.
updateDetached
in interface LaneService
lane
- a Lane
object.Lane
object.public List<Lane> list()
list.
list
in interface LaneService
List
object.public void update(Registration registration, Lane lane)
update.
update
in interface LaneService
registration
- a Registration
object.lane
- a Lane
object.public Integer insert(Registration registration, Lane lane)
insert.
insert
in interface LaneService
registration
- a Registration
object.lane
- a Lane
object.public Lane updateDetached(Registration registration, Lane lane)
updateDetached.
updateDetached
in interface LaneService
registration
- a Registration
object.lane
- a Lane
object.Lane
object.Copyright © 2015 SeqWare. All rights reserved.