default boolean containsAttributeDefinition(ItemPathType pathType) { QName segmentQName = ItemPathTypeUtil.asSingleNameOrFailNullSafe(pathType); return containsAttributeDefinition(segmentQName); }
private void evaluateAssociations(Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException { associationMappings = new ArrayList<>(); for (ResourceObjectAssociationType associationDefinitionType : getConstructionType().getAssociation()) { QName assocName = ItemPathTypeUtil.asSingleNameOrFailNullSafe(associationDefinitionType.getRef()); if (assocName == null) { throw new SchemaException( "No association name (ref) in association definition in construction in " + getSource()); } MappingType outboundMappingType = associationDefinitionType.getOutbound(); if (outboundMappingType == null) { throw new SchemaException("No outbound section in definition of association " + assocName + " in construction in " + getSource()); } MappingImpl<PrismContainerValue<ShadowAssociationType>, PrismContainerDefinition<ShadowAssociationType>> assocMapping = evaluateAssociation(associationDefinitionType, task, result); if (assocMapping != null) { associationMappings.add(assocMapping); } } }
private void evaluateAttributes(Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException { attributeMappings = new ArrayList<>(); // LOGGER.trace("Assignments used for account construction for {} ({}): // {}", new Object[]{this.resource, // assignments.size(), assignments}); for (ResourceAttributeDefinitionType attribudeDefinitionType : getConstructionType().getAttribute()) { QName attrName = ItemPathTypeUtil.asSingleNameOrFailNullSafe(attribudeDefinitionType.getRef()); if (attrName == null) { throw new SchemaException( "No attribute name (ref) in attribute definition in account construction in " + getSource()); } if (!attribudeDefinitionType.getInbound().isEmpty()) { throw new SchemaException("Cannot process inbound section in definition of attribute " + attrName + " in account construction in " + getSource()); } MappingType outboundMappingType = attribudeDefinitionType.getOutbound(); if (outboundMappingType == null) { throw new SchemaException("No outbound section in definition of attribute " + attrName + " in account construction in " + getSource()); } MappingImpl<? extends PrismPropertyValue<?>, ? extends PrismPropertyDefinition<?>> attributeMapping = evaluateAttribute( attribudeDefinitionType, task, result); if (attributeMapping != null) { attributeMappings.add(attributeMapping); } } }
private <T> MappingImpl<PrismPropertyValue<T>, ResourceAttributeDefinition<T>> evaluateAttribute( ResourceAttributeDefinitionType attribudeDefinitionType, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException { QName attrName = ItemPathTypeUtil.asSingleNameOrFailNullSafe(attribudeDefinitionType.getRef()); if (attrName == null) { throw new SchemaException("Missing 'ref' in attribute construction in account construction in "
private MappingImpl<PrismContainerValue<ShadowAssociationType>, PrismContainerDefinition<ShadowAssociationType>> evaluateAssociation( ResourceObjectAssociationType associationDefinitionType, Task task, OperationResult result) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException { QName assocName = ItemPathTypeUtil.asSingleNameOrFailNullSafe(associationDefinitionType.getRef()); if (assocName == null) { throw new SchemaException("Missing 'ref' in association in construction in " + getSource());