Search in sources :

Example 1 with HealthType

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

the class ConstantsController method addHealthTypes.

private static void addHealthTypes(ObjectNode node) {
    ArrayNode healthTypes = node.putArray("healthTypes");
    for (HealthType status : HealthType.values()) {
        ObjectNode dto = healthTypes.addObject();
        dto.put("label", status.getKey());
        dto.put("allowedFromSequencer", status.isAllowedFromSequencer());
        dto.put("isDone", status.isDone());
    }
}
Also used : ObjectNode(com.fasterxml.jackson.databind.node.ObjectNode) HealthType(uk.ac.bbsrc.tgac.miso.core.data.type.HealthType) ArrayNode(com.fasterxml.jackson.databind.node.ArrayNode)

Aggregations

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