Search in sources :

Example 16 with ResourceObjectTypeDefinitionType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType in project midpoint by Evolveum.

the class ProjectionValuesProcessor method hasIterationExpression.

private boolean hasIterationExpression(LensProjectionContext accountContext) {
    ResourceObjectTypeDefinitionType accDef = accountContext.getResourceObjectTypeDefinitionType();
    if (accDef == null) {
        return false;
    }
    IterationSpecificationType iterationType = accDef.getIteration();
    if (iterationType == null) {
        return false;
    }
    if (iterationType.getTokenExpression() != null) {
        return true;
    }
    if (iterationType.getPostIterationCondition() != null) {
        return true;
    }
    if (iterationType.getPreIterationCondition() != null) {
        return true;
    }
    return false;
}
Also used : IterationSpecificationType(com.evolveum.midpoint.xml.ns._public.common.common_3.IterationSpecificationType) ResourceObjectTypeDefinitionType(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType)

Aggregations

ResourceObjectTypeDefinitionType (com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDefinitionType)15 ResourceActivationDefinitionType (com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceActivationDefinitionType)4 SchemaHandlingType (com.evolveum.midpoint.xml.ns._public.common.common_3.SchemaHandlingType)4 IterationSpecificationType (com.evolveum.midpoint.xml.ns._public.common.common_3.IterationSpecificationType)3 ResourceBidirectionalMappingType (com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceBidirectionalMappingType)3 SynchronizationPolicyDecision (com.evolveum.midpoint.model.api.context.SynchronizationPolicyDecision)2 SynchronizationIntent (com.evolveum.midpoint.model.impl.lens.SynchronizationIntent)2 PrismAsserts.assertEqualsPolyString (com.evolveum.midpoint.prism.util.PrismAsserts.assertEqualsPolyString)2 ExpressionVariables (com.evolveum.midpoint.repo.common.expression.ExpressionVariables)2 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)2 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)2 ResourceAttributeDefinitionType (com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceAttributeDefinitionType)2 ResourceType (com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType)2 ShadowType (com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType)2 ActivationCapabilityType (com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationCapabilityType)2 ActivationStatusCapabilityType (com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationStatusCapabilityType)2 ActivationValidityCapabilityType (com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.ActivationValidityCapabilityType)2 ArrayList (java.util.ArrayList)2 LensProjectionContext (com.evolveum.midpoint.model.impl.lens.LensProjectionContext)1 PrismObject (com.evolveum.midpoint.prism.PrismObject)1