/** * Checks if the validation run view has the given validation stamp with the given status. */ public boolean hasValidationStamp(String name, String status) { return (StringUtils.equals(name, getValidationStamp().getName())) && isRun() && ( StringUtils.isBlank(status) || StringUtils.equals(status, getLastStatus().getStatusID().getId()) ); }
/** * Gets the last status of the last run, or <code>null</code> if no run has been performed. */ public ValidationRunStatus getLastStatus() { ValidationRun run = getLastRun(); if (run == null) { return null; } else { return run.getLastStatus(); } }