class OperationsApiServiceImpl implements OperationsApiService {

    @Override
    public ResponseEntity<List<Operation>> getOperations(String spaceGuid, String mtaId, List<String> stateStrings, Integer last) {
        List<Operation.State> states = getStates(stateStrings);
        List<Operation> operations = filterByQueryParameters(last, states, spaceGuid, mtaId);
        return ResponseEntity.ok()
                             .body(operations);
    }

}