@Override public void updateStatus(Guid id, CommandStatus status) { getCallsHandler() .executeModification( "UpdateCommandEntityStatus", createIdParameterMapper(id).addValue("status", status.toString())); }
private static CommandStatus getCommandStatus(String statusStr) { CommandStatus status = CommandStatus.UNKNOWN; if (!StringUtils.isEmpty(statusStr)) { status = CommandStatus.valueOf(statusStr); } return status; }