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;
}