Search in sources :

Example 1 with Status

use of org.apache.openmeetings.db.entity.record.Recording.Status in project openmeetings by apache.

the class RecordingStatusConverter method read.

@Override
public Recording.Status read(InputNode node) throws Exception {
    Recording.Status result = null;
    String val = node.getValue();
    try {
        result = Recording.Status.valueOf(val);
    } catch (Exception e) {
        log.warn("Failed to read recording status out of {}", val);
        result = PROCESSING.equals(val) ? Status.CONVERTING : Status.NONE;
    }
    return result;
}
Also used : Recording(org.apache.openmeetings.db.entity.record.Recording) Status(org.apache.openmeetings.db.entity.record.Recording.Status)

Aggregations

Recording (org.apache.openmeetings.db.entity.record.Recording)1 Status (org.apache.openmeetings.db.entity.record.Recording.Status)1