/** * Create an instance of {@link ResourceBidirectionalMappingType } * */ public ResourceBidirectionalMappingType createResourceBidirectionalMappingType() { return new ResourceBidirectionalMappingType(); }
public List<MappingType> createInboundList() { PrismForJAXBUtil.createContainer(asPrismContainerValue(), F_INBOUND); return getInbound(); }
public ResourceBidirectionalMappingType outbound(MappingType value) { getOutbound().add(value); return this; }
public ResourceBidirectionalMappingType clone() { ResourceBidirectionalMappingType object = new ResourceBidirectionalMappingType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
public List<MappingType> createOutboundList() { PrismForJAXBUtil.createContainer(asPrismContainerValue(), F_OUTBOUND); return getOutbound(); }
private void processBidirectionalMapping(DataModel model, String oid, ShadowKindType kind, String intent, QName objectClassName, ItemPath itemPath, ResourceBidirectionalMappingType mapping) { if (mapping == null) { return; } ResourceDataItem resourceDataItem = model.findResourceItem(oid, kind, intent, objectClassName, itemPath); if (resourceDataItem == null) { throw new IllegalStateException("No resource item for " + oid + ":" + kind + ":" + intent + ":" + objectClassName + ":" + itemPath); } for (MappingType outbound : mapping.getOutbound()) { processOutboundMapping(model, resourceDataItem, outbound, itemPath); } for (MappingType inbound : mapping.getInbound()) { processInboundMapping(model, resourceDataItem, inbound, itemPath); } }
@Override public boolean equals(Object object) { if (!(object instanceof ResourceBidirectionalMappingType)) { return false; } ResourceBidirectionalMappingType other = ((ResourceBidirectionalMappingType) object); return asPrismContainerValue().equivalent(other.asPrismContainerValue()); }
public ResourceBidirectionalMappingType inbound(MappingType value) { getInbound().add(value); return this; }
public ResourceBidirectionalMappingType fetchStrategy(AttributeFetchStrategyType value) { setFetchStrategy(value); return this; }
@Override public AttributeFetchStrategyType getActivationFetchStrategy(QName propertyName) { ResourceBidirectionalMappingType biType = getActivationBidirectionalMappingType(propertyName); if (biType == null) { return AttributeFetchStrategyType.IMPLICIT; } if (biType.getFetchStrategy() == null) { return AttributeFetchStrategyType.IMPLICIT; } return biType.getFetchStrategy(); } //endregion
public MappingType beginInbound() { MappingType value = new MappingType(); inbound(value); return value; }
public MappingType beginOutbound() { MappingType value = new MappingType(); outbound(value); return value; }
public ResourceBidirectionalMappingType(PrismContext prismContext) { setupContainerValue(new PrismContainerValueImpl<>(this, prismContext)); }
private void checkBidirectionalMapping(ResourceValidationContext ctx, ItemPath path, QName itemName, ResourceObjectTypeDefinitionType objectType, @Nullable ResourceBidirectionalMappingType bidirectionalMapping) { if (bidirectionalMapping == null) { return; } ItemPath itemPath = path.append(itemName); int i = 1; for (MappingType inbound : bidirectionalMapping.getInbound()) { checkMapping(ctx, itemPath.append(ResourceBidirectionalMappingType.F_INBOUND), objectType, itemName, inbound, false, i, true); i++; } i = 1; for (MappingType outbound : bidirectionalMapping.getOutbound()) { checkMapping(ctx, itemPath.append(ResourceBidirectionalMappingType.F_OUTBOUND), objectType, itemName, outbound, true, i, true); i++; } }
@XmlSchemaType(name = "string") @XmlElement(name = "fetchStrategy") public AttributeFetchStrategyType getFetchStrategy() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_FETCH_STRATEGY, AttributeFetchStrategyType.class); }
/** * Processing for special (fixed-schema) properties such as credentials and activation. * @throws ObjectNotFoundException */ private <F extends FocusType> void processSpecialPropertyInbound(ResourceBidirectionalMappingType biMappingType, ItemPath sourceTargetPath, PrismObject<F> newUser, LensProjectionContext projCtx, RefinedObjectClassDefinition rOcDef, LensContext<F> context, XMLGregorianCalendar now, Task task, OperationResult opResult) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException { if (biMappingType == null) { return; } processSpecialPropertyInbound(biMappingType.getInbound(), sourceTargetPath, sourceTargetPath, newUser, projCtx, rOcDef, context, now, task, opResult); }
/** * Create an instance of {@link ResourceBidirectionalMappingType } * */ public ResourceBidirectionalMappingType createResourceBidirectionalMappingType() { return new ResourceBidirectionalMappingType(); }
return legal; List<MappingType> outbound = existenceType.getOutbound(); if (outbound == null || outbound.isEmpty()) {
@Override public int hashCode() { return asPrismContainerValue().hashCode(); }
/** * Create an instance of {@link ResourceBidirectionalMappingType } * */ public ResourceBidirectionalMappingType createResourceBidirectionalMappingType() { return new ResourceBidirectionalMappingType(); }