Class MappingType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.MappingType
-
- All Implemented Interfaces:
Containerable
,Serializable
,Cloneable
- Direct Known Subclasses:
AutoassignMappingType
,ObjectTemplateMappingType
public class MappingType extends Object implements Serializable, Cloneable, Containerable
Defines how a value of a property (or attribute) should be constructed. The value may be static or constructed as an result of evaluating an expression. This structure also defines a method how to merge several value construction definitions, how to behave if a property already has a value, etc. This is reusable data structure, used in schemaHandling, roles and it may also be used in may other places. Motivation: We need to construct attribute or property values on many places in midPoint. E.g. we need that in roles to generate dynamic account attribute values, we need that to define "templates" for identifiers and default values for attributes when creating a new account. We also need that to specify values when creating a new user (user templates). Having the same data structure for all of these cases may simplify the code, as it all can be handled by a generic library reused in many places through the system.Java class for MappingType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MappingType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}description" minOccurs="0"/> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}documentation" minOccurs="0"/> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}extension" minOccurs="0"/> <element name="trace" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="authoritative" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="strength" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}MappingStrengthType" minOccurs="0"/> <element name="channel" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> <element name="exceptChannel" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> <element name="timeFrom" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}MappingTimeDeclarationType" minOccurs="0"/> <element name="timeTo" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}MappingTimeDeclarationType" minOccurs="0"/> <element name="source" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}VariableBindingDefinitionType" maxOccurs="unbounded" minOccurs="0"/> <element name="expression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" minOccurs="0"/> <element name="target" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}VariableBindingDefinitionType" minOccurs="0"/> <element name="condition" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_AUTHORITATIVE
static ItemName
F_CHANNEL
static ItemName
F_CONDITION
static ItemName
F_DESCRIPTION
static ItemName
F_DOCUMENTATION
static ItemName
F_EXCEPT_CHANNEL
static ItemName
F_EXCLUSIVE
static ItemName
F_EXPRESSION
static ItemName
F_EXTENSION
static ItemName
F_NAME
static ItemName
F_SOURCE
static ItemName
F_STRENGTH
static ItemName
F_TARGET
static ItemName
F_TIME_FROM
static ItemName
F_TIME_TO
static ItemName
F_TRACE
-
Constructor Summary
Constructors Constructor Description MappingType()
MappingType(PrismContext prismContext)
-
Method Summary
-
-
-
Field Detail
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_NAME
public static final ItemName F_NAME
-
F_DESCRIPTION
public static final ItemName F_DESCRIPTION
-
F_DOCUMENTATION
public static final ItemName F_DOCUMENTATION
-
F_EXTENSION
public static final ItemName F_EXTENSION
-
F_TRACE
public static final ItemName F_TRACE
-
F_AUTHORITATIVE
public static final ItemName F_AUTHORITATIVE
-
F_EXCLUSIVE
public static final ItemName F_EXCLUSIVE
-
F_STRENGTH
public static final ItemName F_STRENGTH
-
F_CHANNEL
public static final ItemName F_CHANNEL
-
F_EXCEPT_CHANNEL
public static final ItemName F_EXCEPT_CHANNEL
-
F_TIME_FROM
public static final ItemName F_TIME_FROM
-
F_TIME_TO
public static final ItemName F_TIME_TO
-
F_SOURCE
public static final ItemName F_SOURCE
-
F_EXPRESSION
public static final ItemName F_EXPRESSION
-
F_TARGET
public static final ItemName F_TARGET
-
F_CONDITION
public static final ItemName F_CONDITION
-
-
Constructor Detail
-
MappingType
public MappingType()
-
MappingType
public MappingType(PrismContext prismContext)
-
-
Method Detail
-
asPrismContainerValue
public PrismContainerValue asPrismContainerValue()
- Specified by:
asPrismContainerValue
in interfaceContainerable
-
setupContainerValue
public void setupContainerValue(PrismContainerValue containerValue)
Description copied from interface:Containerable
Setup value to the containerable representation. This is used to after (empty) containerable is created to initialize it with a correct prism container value. Note: This method DOES NOT change the container value parent.- Specified by:
setupContainerValue
in interfaceContainerable
-
end
public <X> X end()
-
getName
public String getName()
-
setName
public void setName(String value)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String value)
-
getDocumentation
public String getDocumentation()
-
setDocumentation
public void setDocumentation(String value)
-
getExtension
public ExtensionType getExtension()
-
setExtension
public void setExtension(ExtensionType value)
-
isTrace
public Boolean isTrace()
-
setTrace
public void setTrace(Boolean value)
-
isAuthoritative
public Boolean isAuthoritative()
-
setAuthoritative
public void setAuthoritative(Boolean value)
-
isExclusive
public Boolean isExclusive()
-
setExclusive
public void setExclusive(Boolean value)
-
getStrength
public MappingStrengthType getStrength()
-
setStrength
public void setStrength(MappingStrengthType value)
-
getTimeFrom
public MappingTimeDeclarationType getTimeFrom()
-
setTimeFrom
public void setTimeFrom(MappingTimeDeclarationType value)
-
getTimeTo
public MappingTimeDeclarationType getTimeTo()
-
setTimeTo
public void setTimeTo(MappingTimeDeclarationType value)
-
getSource
public List<VariableBindingDefinitionType> getSource()
-
createSourceList
public List<VariableBindingDefinitionType> createSourceList()
-
getExpression
public ExpressionType getExpression()
-
setExpression
public void setExpression(ExpressionType value)
-
getTarget
public VariableBindingDefinitionType getTarget()
-
setTarget
public void setTarget(VariableBindingDefinitionType value)
-
getCondition
public ExpressionType getCondition()
-
setCondition
public void setCondition(ExpressionType value)
-
name
public MappingType name(String value)
-
description
public MappingType description(String value)
-
documentation
public MappingType documentation(String value)
-
extension
public MappingType extension(ExtensionType value)
-
beginExtension
public ExtensionType beginExtension()
-
trace
public MappingType trace(Boolean value)
-
authoritative
public MappingType authoritative(Boolean value)
-
exclusive
public MappingType exclusive(Boolean value)
-
strength
public MappingType strength(MappingStrengthType value)
-
channel
public MappingType channel(String value)
-
exceptChannel
public MappingType exceptChannel(String value)
-
timeFrom
public MappingType timeFrom(MappingTimeDeclarationType value)
-
beginTimeFrom
public MappingTimeDeclarationType beginTimeFrom()
-
timeTo
public MappingType timeTo(MappingTimeDeclarationType value)
-
beginTimeTo
public MappingTimeDeclarationType beginTimeTo()
-
source
public MappingType source(VariableBindingDefinitionType value)
-
beginSource
public VariableBindingDefinitionType beginSource()
-
expression
public MappingType expression(ExpressionType value)
-
beginExpression
public ExpressionType beginExpression()
-
target
public MappingType target(VariableBindingDefinitionType value)
-
beginTarget
public VariableBindingDefinitionType beginTarget()
-
condition
public MappingType condition(ExpressionType value)
-
beginCondition
public ExpressionType beginCondition()
-
clone
public MappingType clone()
-
-