use of com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationResponseType in project midpoint by Evolveum.
the class AccCertGeneralHelper method isRevoke.
// TODO move to OutcomeUtils
public boolean isRevoke(AccessCertificationCaseType aCase, AccessCertificationCampaignType campaign) {
AccessCertificationResponseType outcome = OutcomeUtils.fromUri(aCase.getOutcome());
List<AccessCertificationResponseType> revokes;
if (campaign.getRemediationDefinition() != null && !campaign.getRemediationDefinition().getRevokeOn().isEmpty()) {
revokes = campaign.getRemediationDefinition().getRevokeOn();
} else {
revokes = Collections.singletonList(REVOKE);
}
return revokes.contains(outcome);
}
Aggregations