Search in sources :

Example 1 with IlluminaWorkflowType

use of uk.ac.bbsrc.tgac.miso.core.data.type.IlluminaWorkflowType in project miso-lims by miso-lims.

the class ConstantsController method addIlluminaWorkflowTypes.

private static void addIlluminaWorkflowTypes(ObjectNode node) {
    ArrayNode illuminaWorkflowTypes = node.putArray("illuminaWorkflowTypes");
    for (IlluminaWorkflowType wf : IlluminaWorkflowType.values()) {
        ObjectNode dto = illuminaWorkflowTypes.addObject();
        dto.put("label", wf.getLabel());
        dto.put("value", wf.getRawValue());
    }
}
Also used : IlluminaWorkflowType(uk.ac.bbsrc.tgac.miso.core.data.type.IlluminaWorkflowType) ObjectNode(com.fasterxml.jackson.databind.node.ObjectNode) ArrayNode(com.fasterxml.jackson.databind.node.ArrayNode)

Aggregations

ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 IlluminaWorkflowType (uk.ac.bbsrc.tgac.miso.core.data.type.IlluminaWorkflowType)1