Search in sources :

Example 6 with AccessCertificationResponseType

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);
}
Also used : AccessCertificationResponseType(com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationResponseType)

Aggregations

ItemDelta (com.evolveum.midpoint.prism.delta.ItemDelta)2 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)2 AccessCertificationCaseOutcomeStrategyType (com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseOutcomeStrategyType)2 AccessCertificationCaseType (com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType)2 AccessCertificationResponseType (com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationResponseType)2 List (java.util.List)2 XMLGregorianCalendar (javax.xml.datatype.XMLGregorianCalendar)2 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)2 Label (org.apache.wicket.markup.html.basic.Label)2 PropertyModel (org.apache.wicket.model.PropertyModel)2 DummyResource (com.evolveum.icf.dummy.resource.DummyResource)1 OutcomeUtils (com.evolveum.midpoint.certification.api.OutcomeUtils)1 com.evolveum.midpoint.certification.impl (com.evolveum.midpoint.certification.impl)1 AccessCertificationService (com.evolveum.midpoint.model.api.AccessCertificationService)1 AbstractModelIntegrationTest (com.evolveum.midpoint.model.test.AbstractModelIntegrationTest)1 PrismObject (com.evolveum.midpoint.prism.PrismObject)1 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)1 XmlTypeConverter (com.evolveum.midpoint.prism.xml.XmlTypeConverter)1 GetOperationOptions (com.evolveum.midpoint.schema.GetOperationOptions)1 INCLUDE (com.evolveum.midpoint.schema.RetrieveOption.INCLUDE)1