public ObjectTemplateType item(ObjectTemplateItemDefinitionType value) { getItem().add(value); return this; }
public List<ObjectTemplateItemDefinitionType> createItemList() { PrismForJAXBUtil.createContainer(asPrismContainerValue(), F_ITEM); return getItem(); }
private void collectMappings(List<FocalMappingSpec> mappings, ObjectTemplateType objectTemplateType) { for (ObjectTemplateMappingType mapping: objectTemplateType.getMapping()) { mappings.add(new FocalMappingSpec(mapping, objectTemplateType)); } for (ObjectTemplateItemDefinitionType templateItemDefType: objectTemplateType.getItem()) { for (ObjectTemplateMappingType mapping: templateItemDefType.getMapping()) { setMappingTarget(mapping, templateItemDefType.getRef()); mappings.add(new FocalMappingSpec(mapping, objectTemplateType)); } } }
for (ObjectTemplateItemDefinitionType def : objectTemplateType.getItem()) { if (def.getRef() == null) { throw new IllegalStateException("Item definition with null ref in " + contextDesc);
public <O extends ObjectType> void applyObjectTemplateToDefinition(PrismObjectDefinition<O> objectDefinition, ObjectTemplateType objectTemplateType, OperationResult result) throws ObjectNotFoundException, SchemaException { if (objectTemplateType == null) { return; } for (ObjectReferenceType includeRef: objectTemplateType.getIncludeRef()) { PrismObject<ObjectTemplateType> subTemplate = cacheRepositoryService.getObject(ObjectTemplateType.class, includeRef.getOid(), null, result); applyObjectTemplateToDefinition(objectDefinition, subTemplate.asObjectable(), result); } for (ObjectTemplateItemDefinitionType templateItemDefType: objectTemplateType.getItem()) { ItemPathType ref = templateItemDefType.getRef(); if (ref == null) { throw new SchemaException("No 'ref' in item definition in "+objectTemplateType); } ItemPath itemPath = prismContext.toPath(ref); ItemDefinition itemDef = objectDefinition.findItemDefinition(itemPath); if (itemDef != null) { applyObjectTemplateItem(itemDef, templateItemDefType, "item " + itemPath + " in object type " + objectDefinition.getTypeName() + " as specified in item definition in " + objectTemplateType); } else { OperationResult subResult = result.createMinorSubresult(SchemaTransformer.class.getName() + ".applyObjectTemplateToDefinition"); subResult.recordPartialError("No definition for item " + itemPath + " in object type " + objectDefinition.getTypeName() + " as specified in item definition in " + objectTemplateType); continue; } } }
applyObjectTemplateToObject(object, subTemplate.asObjectable(), result); for (ObjectTemplateItemDefinitionType templateItemDefType: objectTemplateType.getItem()) { ItemPathType ref = templateItemDefType.getRef(); if (ref == null) {
for(ObjectTemplateItemDefinitionType itemDef: objectTemplateType.getItem()) { ItemPathType ref = itemDef.getRef(); if (ref == null) {