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 LaneServicelaneDAO - a LaneDAO object.LaneDAOpublic void setProcessingDAO(ProcessingDAO processingDAO)
processingDAO - implementation of ProcessingDAOProcessingDAOpublic void setFileDAO(FileDAO fileDAO)
fileDAO - implementation of FileDAOfileDAOpublic void setIUSDAO(IUSDAO IUSDAO)
IUSDAO - a IUSDAO object.iusDAOpublic List<File> getFiles(Integer laneId)
getFiles.
getFiles in interface LaneServicelaneId - a Integer object.List object.public List<File> getFiles(Integer studyId, String metaType)
getFiles.
getFiles in interface LaneServicestudyId - a Integer object.metaType - a String object.List object.public boolean isHasFile(Integer studyId, String metaType)
isHasFile.
isHasFile in interface LaneServicestudyId - a Integer object.metaType - a String object.public boolean isHasFile(Integer laneId)
isHasFile.
isHasFile in interface LaneServicelaneId - a Integer object.public SortedSet<Lane> setWithHasFile(SortedSet<Lane> list)
setWithHasFile.
setWithHasFile in interface LaneServicelist - a SortedSet object.SortedSet object.public SortedSet<Lane> listWithHasFile(SortedSet<Lane> list, String metaType)
listWithHasFile.
listWithHasFile in interface LaneServicelist - 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 LaneServiceuploadSeqence - 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 LaneServicelaneIds - a List object.List object.public void insert(Lane lane)
insert.
Inserts an instance of Lane into the database.insert in interface LaneServicelane - a Lane object.public void update(Lane lane)
update.
Updates an instance of Lane in the database.update in interface LaneServicelane - a Lane object.public void delete(Lane lane, boolean deleteRealFiles)
delete.
Deletes an instance of Lane in the database.delete in interface LaneServicelane - 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 LaneServicename - a String object.Lane object.public Lane findByID(Integer laneID)
findByID.
findByID in interface LaneServicelaneID - a Integer object.Lane object.public Lane findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession in interface LaneServiceswAccession - a Integer object.Lane object.public List<Lane> findByOwnerID(Integer registrationId)
findByOwnerID.
findByOwnerID in interface LaneServiceregistrationId - 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 LaneServiceoldName - 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 LaneServicereqistration - 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 LaneServicecriteria - a String object.isCaseSens - a boolean.List object.public Lane updateDetached(Lane lane)
updateDetached.
updateDetached in interface LaneServicelane - a Lane object.Lane object.public List<Lane> list()
list.
list in interface LaneServiceList object.public void update(Registration registration, Lane lane)
update.
update in interface LaneServiceregistration - a Registration object.lane - a Lane object.public Integer insert(Registration registration, Lane lane)
insert.
insert in interface LaneServiceregistration - a Registration object.lane - a Lane object.public Lane updateDetached(Registration registration, Lane lane)
updateDetached.
updateDetached in interface LaneServiceregistration - a Registration object.lane - a Lane object.Lane object.Copyright © 2015 SeqWare. All rights reserved.