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
Constructors Constructor Description AbstractMappingBuilder()
-
Method Summary
-
-
-
Method Detail
-
build
public abstract AbstractMappingImpl<V,D,MBT> build()
-
variablesFrom
public RT variablesFrom(VariablesMap val)
-
mappingKind
public RT mappingKind(MappingKindType val)
-
expressionProfile
public RT expressionProfile(ExpressionProfile val)
-
originalTargetValues
public RT originalTargetValues(Collection<V> values)
-
sourceContext
public RT sourceContext(ObjectDeltaObject<?> val)
-
targetContext
public RT targetContext(PrismContainerDefinition<?> val)
-
originType
public RT originType(OriginType val)
-
originObject
public RT originObject(ObjectType val)
-
valuePolicySupplier
public RT valuePolicySupplier(ConfigurableValuePolicySupplier val)
-
variableResolver
public RT variableResolver(VariableProducer variableProducer)
-
mappingPreExpression
public RT mappingPreExpression(MappingPreExpression mappingPreExpression)
-
conditionMaskOld
public RT conditionMaskOld(boolean val)
-
conditionMaskNew
public RT conditionMaskNew(boolean val)
-
mappingSpecification
public RT mappingSpecification(MappingSpecificationType val)
-
now
public RT now(XMLGregorianCalendar val)
-
defaultReferenceTime
public RT defaultReferenceTime(XMLGregorianCalendar val)
-
profiling
public RT profiling(boolean val)
-
resourceObjectDefinition
public RT resourceObjectDefinition(ResourceObjectDefinition val)
-
beans
public RT beans(ModelCommonBeans val)
-
rootNode
public RT rootNode(ObjectReferenceType objectRef)
-
rootNode
public RT rootNode(ObjectDeltaObject<?> odo)
-
rootNode
public <O extends ObjectType> RT rootNode(O objectType, PrismObjectDefinition<O> definition)
-
rootNode
public <O extends ObjectType> RT rootNode(PrismObject<? extends ObjectType> mpObject, PrismObjectDefinition<O> definition)
-
addVariableDefinition
public RT addVariableDefinition(ExpressionVariableDefinitionType varDef) throws SchemaException
- Throws:
SchemaException
-
addVariableDefinition
public RT addVariableDefinition(String name, ObjectReferenceType objectRef)
-
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
public RT addVariableDefinition(String name, PrismValue value)
-
addVariableDefinition
public RT addVariableDefinition(String name, ObjectDeltaObject<?> value)
-
addAliasRegistration
public RT addAliasRegistration(String alias, @Nullable @Nullable String mainVariable)
-
addVariableDefinitions
public RT addVariableDefinitions(VariablesMap extraVariables)
-
addVariableDefinition
public RT addVariableDefinition(String name, Object value, ItemDefinition<?> definition)
-
addVariableDefinition
public RT addVariableDefinition(String name, Object value, Class<?> typeClass)
-
hasVariableDefinition
public boolean hasVariableDefinition(String varName)
-
isApplicableToChannel
public boolean isApplicableToChannel(String channel)
-
getStrength
public MappingStrengthType getStrength()
-
getBeans
public ModelCommonBeans getBeans()
-
getVariables
public VariablesMap getVariables()
-
getMappingBean
public MBT getMappingBean()
-
getMappingKind
public MappingKindType getMappingKind()
-
getDefaultSource
public Source<?,?> getDefaultSource()
-
getDefaultTargetDefinition
public D getDefaultTargetDefinition()
-
getExpressionProfile
public ExpressionProfile getExpressionProfile()
-
getSourceContext
public ObjectDeltaObject<?> getSourceContext()
-
getTargetContext
public PrismContainerDefinition<?> getTargetContext()
-
getOriginType
public OriginType getOriginType()
-
getOriginObject
public ObjectType getOriginObject()
-
getValuePolicySupplier
public ConfigurableValuePolicySupplier getValuePolicySupplier()
-
getNow
public XMLGregorianCalendar getNow()
-
getDefaultReferenceTime
public XMLGregorianCalendar getDefaultReferenceTime()
-
isProfiling
public boolean isProfiling()
-
getContextDescription
public String getContextDescription()
-
getResourceObjectDefinition
public ResourceObjectDefinition getResourceObjectDefinition()
-
-