Class ShadowBuilder
java.lang.Object
com.evolveum.midpoint.schema.util.ShadowBuilder
Used for easy creation of shadow objects (with the correct definition).
-
Method Summary
Modifier and TypeMethodDescriptiononResource
(@Nullable String oid) static ShadowBuilder
withDefinition
(@NotNull ResourceObjectDefinition objectDefinition) Creates a new shadow builder with the provided object definition.withReferenceAttributeWithFullObject
(QName attrName, AbstractShadow referencedShadow) withSimpleAttribute
(QName attrName, Object realValue)
-
Method Details
-
withDefinition
public static ShadowBuilder withDefinition(@NotNull @NotNull ResourceObjectDefinition objectDefinition) Creates a new shadow builder with the provided object definition. UnlikeResourceObjectDefinition.createBlankShadow()
, this method sets kind/intent if known. Hence, please do not call it with a default-type definition for an object class if you don't want to instantiate a shadow with kind/intent. -
onResource
-
withSimpleAttribute
- Throws:
SchemaException
-
withReferenceAttributeWithFullObject
public ShadowBuilder withReferenceAttributeWithFullObject(QName attrName, AbstractShadow referencedShadow) throws SchemaException - Throws:
SchemaException
-
asPrismObject
-
asObjectable
-
asAbstractShadow
-