-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1353 from phac-nml/unify-sample-validation
Unify validate sample names
- Loading branch information
Showing
19 changed files
with
334 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
.../corefacility/bioinformatics/irida/ria/web/ajax/projects/dto/ValidateSampleNameModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package ca.corefacility.bioinformatics.irida.ria.web.ajax.projects.dto; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Model for UI to represent a sample. | ||
*/ | ||
public class ValidateSampleNameModel { | ||
private List<Long> ids; | ||
private String name; | ||
|
||
public ValidateSampleNameModel(List<Long> ids, String name) { | ||
this.ids = ids; | ||
this.name = name; | ||
} | ||
|
||
public List<Long> getIds() { | ||
return ids; | ||
} | ||
|
||
public void setIds(List<Long> ids) { | ||
this.ids = ids; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...refacility/bioinformatics/irida/ria/web/ajax/projects/dto/ValidateSampleNamesRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package ca.corefacility.bioinformatics.irida.ria.web.ajax.projects.dto; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* UI request to validate sample names. | ||
*/ | ||
public class ValidateSampleNamesRequest { | ||
private List<ValidateSampleNameModel> samples; | ||
private List<Long> associatedProjectIds; | ||
|
||
public ValidateSampleNamesRequest() { | ||
} | ||
|
||
public List<ValidateSampleNameModel> getSamples() { | ||
return samples; | ||
} | ||
|
||
public void setSamples(List<ValidateSampleNameModel> samples) { | ||
this.samples = samples; | ||
} | ||
|
||
public List<Long> getAssociatedProjectIds() { | ||
return associatedProjectIds; | ||
} | ||
|
||
public void setAssociatedProjectIds(List<Long> associatedProjectIds) { | ||
this.associatedProjectIds = associatedProjectIds; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...efacility/bioinformatics/irida/ria/web/ajax/projects/dto/ValidateSampleNamesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package ca.corefacility.bioinformatics.irida.ria.web.ajax.projects.dto; | ||
|
||
import java.util.List; | ||
|
||
import ca.corefacility.bioinformatics.irida.ria.web.ajax.dto.ajax.AjaxResponse; | ||
|
||
/** | ||
* Return a list of sample names. | ||
*/ | ||
public class ValidateSampleNamesResponse extends AjaxResponse { | ||
private List<ValidateSampleNameModel> samples; | ||
|
||
public ValidateSampleNamesResponse(List<ValidateSampleNameModel> samples) { | ||
this.samples = samples; | ||
} | ||
|
||
public List<ValidateSampleNameModel> getSamples() { | ||
return samples; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...java/ca/corefacility/bioinformatics/irida/ria/web/samples/dto/SampleNameCheckRequest.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
...ava/ca/corefacility/bioinformatics/irida/ria/web/samples/dto/SampleNameCheckResponse.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
src/main/java/ca/corefacility/bioinformatics/irida/ria/web/samples/dto/ValidSample.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.