Interface ShadowAssociationsContainer
- All Superinterfaces:
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_STRING
Fields inherited from interface com.evolveum.midpoint.prism.Item
KEY_NAMESPACE_CONTEXT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Convenience method.void
add
(ShadowAssociation association) default ShadowAssociationsContainer
add
(QName attributeName, ShadowAssociationValue value) default ShadowAssociationsContainer
add
(QName attributeName, AbstractShadow associationShadow) clone()
Literal clone.static ShadowAssociationsContainer
convertFromPrismContainer
(@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 ShadowAssociationsContainerDefinition
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods 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, copy, 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, valuesStream
Methods inherited from interface com.evolveum.midpoint.prism.PrismContainer
accept, canRepresent, canRepresent, cloneComplex, containsItem, 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, mergeValue, mergeValues, mergeValues, remove, removeContainer, removeItem, removeProperty, removeReference, setContainerRealValue, setPropertyRealValue, setPropertyRealValues, setRealValue, setValue, trim, trimDefinitionTree
Methods 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:Item
Returns applicable definition.May return null if no definition is applicable or the definition is not known.
- Specified by:
getDefinition
in interfaceItem<PrismContainerValue<ShadowAssociationsType>,
PrismContainerDefinition<ShadowAssociationsType>> - Specified by:
getDefinition
in interfaceItemable
- Specified by:
getDefinition
in interfacePrismContainer<ShadowAssociationsType>
- Specified by:
getDefinition
in 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:PrismContainer
Convenience method. Works only on single-valued containers.- Specified by:
add
in 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:Item
Literal clone.- Specified by:
clone
in interfaceItem<PrismContainerValue<ShadowAssociationsType>,
PrismContainerDefinition<ShadowAssociationsType>> - Specified by:
clone
in interfacePrismContainer<ShadowAssociationsType>
- Specified by:
clone
in interfaceShadowItemsContainer
-
getAssociationValues
@NotNull default @NotNull Collection<? extends ShadowAssociationValue> getAssociationValues(QName assocName)
-