public static void assertNoItem(PrismContainer<?> object, ItemPath itemPath) { Item<?,?> item = object.findItem(itemPath); assert item == null : "Unexpected item "+item+" in "+object; }
public <I extends Item> I findExtensionItem(@NotNull QName elementName) { PrismContainer<?> extension = getExtension(); if (extension == null) { return null; } //noinspection unchecked return (I) extension.findItem(ItemName.fromQName(elementName)); }
@Override public Item<?, ?> getExtensionItem(ItemName propertyName) { if (getExtension() != null) { return getExtension().findItem(propertyName); } else { return null; } }
Item existingSimulatedAttr = attributesContainer.findItem(newSimulatedAttr.getElementName()); if (!isBlank(newSimulatedAttrRealValue)) { PrismPropertyValue newSimulatedAttrValue = prismContext.itemFactory().createPropertyValue(newSimulatedAttrRealValue); activationRealValue = getLockoutLockedValue(capActStatus); Item existingAttribute = attributesContainer.findItem(activationSimulateAttribute.getElementName()); if (!StringUtils.isBlank(activationRealValue)) { if (attributesContainer.findItem(activationSimulateAttribute.getElementName()) == null) { attributesContainer.add(activationSimulateAttribute); } else{ attributesContainer.findItem(activationSimulateAttribute.getElementName()).replace(activationSimulateAttribute.getValue());
Item item = attributes.findItem(name);