Interface ShadowAssociationsContainer
- All Superinterfaces:
Cloneable,ComplexCopyable<Item<PrismContainerValue<ShadowAssociationsType>,,PrismContainerDefinition<ShadowAssociationsType>>> DebugDumpable,Freezable,Item<PrismContainerValue<ShadowAssociationsType>,,PrismContainerDefinition<ShadowAssociationsType>> Itemable,ParentVisitable,PathVisitable,PrismContainer<ShadowAssociationsType>,PrismContainerable<ShadowAssociationsType>,PrismVisitable,Revivable,Serializable,ShadowItemsContainer,Visitable
- All Known Implementing Classes:
ShadowAssociationsContainerImpl
public interface ShadowAssociationsContainer
extends ShadowItemsContainer, PrismContainer<ShadowAssociationsType>
Container holding
ShadowAssociation objects. It must have the correct definitions applied.- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRINGFields inherited from interface com.evolveum.midpoint.prism.Item
KEY_NAMESPACE_CONTEXT -
Method Summary
Modifier and TypeMethodDescriptionvoidConvenience method.voidadd(ShadowAssociation association) default ShadowAssociationsContaineradd(QName attributeName, ShadowAssociationValue value) default ShadowAssociationsContaineradd(QName attributeName, AbstractShadow associationShadow) clone()Literal clone.static ShadowAssociationsContainerconvertFromPrismContainer(@NotNull PrismContainer<?> origPrismContainer, @NotNull ResourceObjectDefinition resourceObjectDefinition) findAssociation(QName assocName) Finds a specific attribute in the resource object by name.findOrCreateAssociation(QName assocName) default @NotNull Collection<ItemName>@NotNull Collection<ShadowAssociation>Returns the resource object associations.default @NotNull Collection<? extends ShadowAssociationValue>getAssociationValues(QName assocName) Returns applicable definition.default @NotNull ShadowAssociationsContainerDefinitionMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.Item
acceptParentVisitor, acceptVisitor, add, add, addAll, addAll, addIgnoringEquivalents, addRespectingMetadataAndCloning, applyDefinition, applyDefinition, applyDefinitionIfMissing, assertDefinitions, assertDefinitions, assertDefinitions, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistence, checkConsistenceInternal, clear, contains, contains, diff, diff, equals, equals, equals, filterValues, filterYields, find, findValue, findValue, getAllItems, getAllValues, getAnyValue, getAnyValue, getClonedValues, getDisplayName, getElementName, getHelp, getHighestId, getNamespaceContext, getParent, getPath, getRealValue, getRealValues, getRealValuesArray, getRealValuesOrRawTypes, getUserData, getUserData, hasAnyValue, hasCompleteDefinition, hashCode, hashCode, hashCode, hasNoValues, hasRaw, isEmpty, isIncomplete, isOperational, isRaw, isSingleValue, isSingleValueByDefinition, merge, normalize, recomputeAllValues, remove, remove, removeAll, removeIf, removeRespectingMetadata, replace, replaceAll, setDefinition, setElementName, setIncomplete, setParent, setUserData, size, valuesStreamMethods inherited from interface com.evolveum.midpoint.prism.PrismContainer
accept, canRepresent, canRepresent, cloneComplex, containsItem, copy, createDelta, createDelta, createImmutableClone, createNewValue, deepCloneDefinition, diff, diff, diffModifications, equivalent, findContainer, findCreateItem, findCreateItem, findItem, findItem, findItem, findOrCreateContainer, findOrCreateItem, findOrCreateItem, findOrCreateProperty, findOrCreateReference, findPartial, findProperty, findReference, findValue, getCompileTimeClass, getPropertyRealValue, getRealValue, getRealValues, getValue, getValue, getValues, immutableCopy, mergeValue, mergeValues, mergeValues, mutableCopy, remove, removeContainer, removeItem, removeProperty, removeReference, setContainerRealValue, setPropertyRealValue, setPropertyRealValues, setRealValue, setValue, trim, trimDefinitionTreeMethods inherited from interface com.evolveum.midpoint.prism.PrismContainerable
getComplexTypeDefinition
-
Method Details
-
convertFromPrismContainer
static ShadowAssociationsContainer convertFromPrismContainer(@NotNull @NotNull PrismContainer<?> origPrismContainer, @NotNull @NotNull ResourceObjectDefinition resourceObjectDefinition) throws SchemaException - Throws:
SchemaException
-
getDefinition
ShadowAssociationsContainerDefinition getDefinition()Description copied from interface:ItemReturns applicable definition.May return null if no definition is applicable or the definition is not known.
- Specified by:
getDefinitionin interfaceItem<PrismContainerValue<ShadowAssociationsType>,PrismContainerDefinition<ShadowAssociationsType>> - Specified by:
getDefinitionin interfaceItemable- Specified by:
getDefinitionin interfacePrismContainer<ShadowAssociationsType>- Specified by:
getDefinitionin interfacePrismContainerable<ShadowAssociationsType>- Returns:
- applicable definition
-
getDefinitionRequired
-
getAssociations
Returns the resource object associations. Their order is insignificant. The returned set is immutable! -
getAssociationNames
-
add
Description copied from interface:PrismContainerConvenience method. Works only on single-valued containers.- Specified by:
addin interfacePrismContainer<ShadowAssociationsType>- Throws:
SchemaException
-
add
- Throws:
SchemaException
-
findAssociation
Finds a specific attribute in the resource object by name. Returns null if nothing is found.- Parameters:
assocName- attribute name to find.- Returns:
- found attribute or null
-
findOrCreateAssociation
- Throws:
SchemaException
-
add
default ShadowAssociationsContainer add(QName attributeName, ShadowAssociationValue value) throws SchemaException - Throws:
SchemaException
-
add
default ShadowAssociationsContainer add(QName attributeName, AbstractShadow associationShadow) throws SchemaException - Throws:
SchemaException
-
clone
ShadowAssociationsContainer clone()Description copied from interface:ItemLiteral clone.- Specified by:
clonein interfaceItem<PrismContainerValue<ShadowAssociationsType>,PrismContainerDefinition<ShadowAssociationsType>> - Specified by:
clonein interfacePrismContainer<ShadowAssociationsType>- Specified by:
clonein interfaceShadowItemsContainer
-
getAssociationValues
@NotNull default @NotNull Collection<? extends ShadowAssociationValue> getAssociationValues(QName assocName)
-