Class AbstractMappingBuilder<V extends PrismValue,D extends ItemDefinition<?>,MBT extends AbstractMappingType,RT extends AbstractMappingBuilder<V,D,MBT,RT>>
java.lang.Object
com.evolveum.midpoint.model.common.mapping.AbstractMappingBuilder<V,D,MBT,RT>
- Direct Known Subclasses:
MappingBuilder
,MetadataMappingBuilder
public abstract class AbstractMappingBuilder<V extends PrismValue,D extends ItemDefinition<?>,MBT extends AbstractMappingType,RT extends AbstractMappingBuilder<V,D,MBT,RT>>
extends Object
Builder is used to construct a configuration of Mapping object, which - after building - becomes
immutable.
In order to provide backward-compatibility with existing use of Mapping object, the builder has
also traditional setter methods. Both setters and "builder-style" methods MODIFY existing Builder
object (i.e. they do not create a new one).
TODO decide on which style of setters to keep (setters vs builder-style).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAliasRegistration
(String alias, @Nullable String mainVariable) additionalSource
(Source<?, ?> source) <O extends ObjectType>
RTaddVariableDefinition
(String name, PrismObject<O> midpointObject, Class<O> expectedClass) addVariableDefinition
(String name, PrismValue value) addVariableDefinition
(String name, ObjectDeltaObject<?> value) addVariableDefinition
(String name, ObjectReferenceType objectRef) addVariableDefinition
(String name, Boolean value) addVariableDefinition
(String name, Integer value) addVariableDefinition
(String name, Object value, ItemDefinition<?> definition) addVariableDefinition
(String name, Object value, Class<?> typeClass) addVariableDefinition
(String name, String value) <O extends ObjectType>
RTaddVariableDefinition
(String name, O objectType, Class<O> expectedClass) addVariableDefinitions
(VariablesMap extraVariables) beans
(ModelCommonBeans val) abstract AbstractMappingImpl<V,
D, MBT> build()
conditionMaskNew
(boolean val) conditionMaskOld
(boolean val) contextDescription
(String val) defaultSource
(Source<?, ?> val) defaultTargetDefinition
(D val) getBeans()
Source<?,
?> getNow()
boolean
hasVariableDefinition
(String varName) boolean
isApplicableToChannel
(String channel) boolean
isApplicableToExecutionMode
(TaskExecutionMode executionMode) boolean
mappingBean
(MBT bean, @NotNull ConfigurationItemOrigin origin) mappingPreExpression
(MappingPreExpression mappingPreExpression) mappingQName
(QName val) now
(XMLGregorianCalendar val) originalTargetValues
(Collection<V> values) originObject
(ObjectType val) originType
(OriginType val) profiling
(boolean val) <O extends ObjectType>
RTrootNode
(PrismObject<? extends ObjectType> mpObject, PrismObjectDefinition<O> definition) rootNode
(ObjectDeltaObject<?> odo) rootNode
(ObjectReferenceType objectRef) <O extends ObjectType>
RTrootNode
(O objectType, PrismObjectDefinition<O> definition) sourceContext
(ObjectDeltaObject<?> val) variableResolver
(VariableProducer variableProducer)
-
Constructor Details
-
AbstractMappingBuilder
public AbstractMappingBuilder()
-
-
Method Details
-
build
-
variablesFrom
-
mappingBean
-
mappingKind
-
implicitSourcePath
-
implicitTargetPath
-
targetPathOverride
-
defaultSource
-
defaultTargetDefinition
-
defaultTargetPath
-
originalTargetValues
-
sourceContext
-
targetContext
-
originType
-
originObject
-
valuePolicySupplier
-
variableResolver
-
mappingPreExpression
-
conditionMaskOld
-
conditionMaskNew
-
mappingSpecification
-
now
-
defaultReferenceTime
-
profiling
-
contextDescription
-
mappingQName
-
resourceObjectDefinition
-
beans
-
rootNode
-
rootNode
-
rootNode
-
rootNode
public <O extends ObjectType> RT rootNode(PrismObject<? extends ObjectType> mpObject, PrismObjectDefinition<O> definition) -
addVariableDefinition
- Throws:
SchemaException
-
addVariableDefinition
-
addVariableDefinition
public <O extends ObjectType> RT addVariableDefinition(String name, O objectType, Class<O> expectedClass) -
addVariableDefinition
public <O extends ObjectType> RT addVariableDefinition(String name, PrismObject<O> midpointObject, Class<O> expectedClass) -
addVariableDefinition
-
addVariableDefinition
-
addVariableDefinition
-
addVariableDefinition
-
addVariableDefinition
-
addAliasRegistration
-
addVariableDefinitions
-
addVariableDefinition
-
addVariableDefinition
-
hasVariableDefinition
-
isApplicableToChannel
-
isApplicableToExecutionMode
-
additionalSource
-
getBeans
-
getVariables
-
getMappingKind
-
getDefaultSource
-
getDefaultTargetDefinition
-
getExplicitExpressionProfile
-
getSourceContext
-
getTargetContext
-
getOriginType
-
getOriginObject
-
getValuePolicySupplier
-
getNow
-
getDefaultReferenceTime
-
isProfiling
public boolean isProfiling() -
getContextDescription
-