-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RequestSummary endpoint patch (#447)
RequestSummary endpoint now returns descriptive list of RequestSummary objects when returning detailed results Instead of a List<List<String>> Signed-off-by: Angelica Ochoa <[email protected]>
- Loading branch information
Showing
6 changed files
with
109 additions
and
16 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
model/src/main/java/org/mskcc/cmo/metadb/model/web/RequestSummary.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,81 @@ | ||
package org.mskcc.cmo.metadb.model.web; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
import java.util.UUID; | ||
import org.neo4j.ogm.annotation.typeconversion.Convert; | ||
import org.neo4j.ogm.typeconversion.UuidStringConverter; | ||
|
||
/** | ||
* | ||
* @author ochoaa | ||
*/ | ||
public class RequestSummary implements Serializable { | ||
@Convert(UuidStringConverter.class) | ||
private UUID metaDbRequestId; | ||
private String projectId; | ||
private String requestId; | ||
private String importDate; | ||
|
||
/** | ||
* RequestSummary default constructor. | ||
*/ | ||
public RequestSummary(){} | ||
|
||
/** | ||
* RequestSummary args constructor. | ||
* @param metaDbRequestId | ||
* @param projectId | ||
* @param requestId | ||
* @param importDate | ||
*/ | ||
public RequestSummary(UUID metaDbRequestId, String projectId, String requestId, String importDate) { | ||
this.metaDbRequestId = metaDbRequestId; | ||
this.projectId = projectId; | ||
this.requestId = requestId; | ||
this.importDate = importDate; | ||
} | ||
|
||
/** | ||
* RequestSummary cypher query results constructor. | ||
* @param values | ||
*/ | ||
public RequestSummary(List<String> values) { | ||
this.metaDbRequestId = UUID.fromString(values.get(0)); | ||
this.projectId = values.get(1); | ||
this.requestId = values.get(2); | ||
this.importDate = values.get(3); | ||
} | ||
|
||
public UUID getMetaDbRequestId() { | ||
return metaDbRequestId; | ||
} | ||
|
||
public void setMetaDbRequestId(UUID metaDbRequestId) { | ||
this.metaDbRequestId = metaDbRequestId; | ||
} | ||
|
||
public String getProjectId() { | ||
return projectId; | ||
} | ||
|
||
public void setProjectId(String projectId) { | ||
this.projectId = projectId; | ||
} | ||
|
||
public String getRequestId() { | ||
return requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
public String getImportDate() { | ||
return importDate; | ||
} | ||
|
||
public void setImportDate(String importDate) { | ||
this.importDate = importDate; | ||
} | ||
} |
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
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