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>
RTaddRootVariableDefinition
(PrismObject<? extends ObjectType> mpObject, PrismObjectDefinition<O> definition) addRootVariableDefinition
(ObjectReferenceType objectRef) <O extends ObjectType>
RTaddRootVariableDefinition
(O objectType, PrismObjectDefinition<O> definition) <O extends ObjectType>
RTaddVariableDefinition
(String name, PrismObject<O> midpointObject, Class<O> expectedClass) addVariableDefinition
(String name, PrismValue value) addVariableDefinition
(String name, AbstractItemDeltaItem<?> 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()
getNow()
boolean
hasVariableDefinition
(String varName) boolean
isApplicableToChannel
(String channel) boolean
isApplicableToExecutionMode
(TaskExecutionMode executionMode) boolean
mapping
(AbstractMappingConfigItem<MBT> mappingConfigItem) mappingPreExpression
(MappingPreExpression mappingPreExpression) now
(XMLGregorianCalendar val) originalTargetValues
(Collection<V> values) originObject
(ObjectType val) originType
(OriginType val) profiling
(boolean val) targetItemName
(QName val) variableProducer
(VariableProducer variableProducer)
-
Constructor Details
-
AbstractMappingBuilder
public AbstractMappingBuilder()
-
-
Method Details
-
build
-
variablesFrom
-
mapping
-
getMappingName
-
mappingKind
-
implicitSourcePath
-
implicitTargetPath
-
targetPathOverride
-
targetPathExecutionOverride
-
defaultSource
-
defaultTargetDefinition
-
defaultTargetPath
-
originalTargetValues
-
defaultSourceContextIdi
-
targetContextDefinition
-
originType
-
originObject
-
valuePolicySupplier
-
variableProducer
-
mappingPreExpression
-
conditionMaskOld
-
conditionMaskNew
-
mappingSpecification
-
now
-
defaultReferenceTime
-
profiling
-
contextDescription
-
targetItemName
-
resourceObjectDefinition
-
beans
-
addRootVariableDefinition
-
addRootVariableDefinition
-
addRootVariableDefinition
public <O extends ObjectType> RT addRootVariableDefinition(O objectType, PrismObjectDefinition<O> definition) -
addRootVariableDefinition
public <O extends ObjectType> RT addRootVariableDefinition(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
-
getDefaultTargetDefinition
-
getExplicitExpressionProfile
-
getOriginType
-
getOriginObject
-
getValuePolicySupplier
-
getNow
-
getDefaultReferenceTime
-
isProfiling
public boolean isProfiling() -
getContextDescription
-