Class ShadowAssociationsUtil
java.lang.Object
com.evolveum.midpoint.schema.util.ShadowAssociationsUtil
Covers working with the "new" shadow associations (introduced in 4.9).
Only methods that have to work with the raw values (like
ShadowAssociationValueType
) should belong here.
Pretty much everything that works with native types like ShadowAssociationValue
should be attached to these types.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ShadowAssociationValueType
createSingleRefRawValue
(@NotNull ItemName refName, @NotNull ObjectReferenceType refValue) static @NotNull ShadowAssociationValueType
createSingleRefRawValue
(@NotNull ItemName refName, @NotNull ShadowType shadow) Creates a trivial (single-object-ref) association value as the raw (definition-less) bean.static @NotNull ShadowAssociationValueType
createSingleRefRawValue
(@NotNull ItemName refName, @NotNull String shadowOid) static ObjectReferenceType
getSingleObjectRefRelaxed
(@NotNull ShadowAssociationValueType assocValueBean) static @NotNull ObjectReferenceType
getSingleObjectRefRequired
(ShadowAssociationValueType assocValueBean) static @NotNull ComplexTypeDefinition
static @NotNull PrismContainer<ShadowReferenceAttributesType>
-
Constructor Details
-
ShadowAssociationsUtil
public ShadowAssociationsUtil()
-
-
Method Details
-
getSingleObjectRefRelaxed
public static ObjectReferenceType getSingleObjectRefRelaxed(@NotNull @NotNull ShadowAssociationValueType assocValueBean) -
getSingleObjectRefRequired
@NotNull public static @NotNull ObjectReferenceType getSingleObjectRefRequired(ShadowAssociationValueType assocValueBean) -
getValueCtd
-
instantiateObjectsContainer
@NotNull public static @NotNull PrismContainer<ShadowReferenceAttributesType> instantiateObjectsContainer() -
createSingleRefRawValue
@NotNull public static @NotNull ShadowAssociationValueType createSingleRefRawValue(@NotNull @NotNull ItemName refName, @NotNull @NotNull ShadowType shadow) Creates a trivial (single-object-ref) association value as the raw (definition-less) bean.- See Also:
-
#createValueFromDefaultObject(AbstractShadow)
-
createSingleRefRawValue
@NotNull public static @NotNull ShadowAssociationValueType createSingleRefRawValue(@NotNull @NotNull ItemName refName, @NotNull @NotNull String shadowOid) -
createSingleRefRawValue
@NotNull public static @NotNull ShadowAssociationValueType createSingleRefRawValue(@NotNull @NotNull ItemName refName, @NotNull @NotNull ObjectReferenceType refValue)
-