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 ShadowBuilderwithDefinition(@NotNull ResourceObjectDefinition objectDefinition) Creates a new shadow builder with the provided object definition.withPassword(@NotNull ProtectedStringType value) withPassword(@NotNull String clearValue) withReferenceAttribute(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
 - 
withReferenceAttribute
public ShadowBuilder withReferenceAttribute(QName attrName, AbstractShadow referencedShadow) throws SchemaException - Throws:
 SchemaException
 - 
withPassword
 - 
withPassword
 - 
asPrismObject
 - 
asObjectable
 - 
asAbstractShadow
 
 -