Class AbstractMappingType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractMappingType
-
- All Implemented Interfaces:
Containerable
,DebugDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
MappingType
,MetadataMappingType
public class AbstractMappingType 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 AbstractMappingType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AbstractMappingType"> <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"/> <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}long" /> </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_ENABLED
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
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description AbstractMappingType()
AbstractMappingType(PrismContext prismContext)
-
Method Summary
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.Containerable
cloneWithoutId, debugDump
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
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
-
F_ENABLED
public static final ItemName F_ENABLED
-
-
Constructor Detail
-
AbstractMappingType
public AbstractMappingType()
-
AbstractMappingType
public AbstractMappingType(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)
-
isEnabled
public Boolean isEnabled()
-
setEnabled
public void setEnabled(Boolean value)
-
getId
public Long getId()
-
setId
public void setId(Long value)
-
name
public AbstractMappingType name(String value)
-
description
public AbstractMappingType description(String value)
-
documentation
public AbstractMappingType documentation(String value)
-
extension
public AbstractMappingType extension(ExtensionType value)
-
beginExtension
public ExtensionType beginExtension()
-
trace
public AbstractMappingType trace(Boolean value)
-
authoritative
public AbstractMappingType authoritative(Boolean value)
-
exclusive
public AbstractMappingType exclusive(Boolean value)
-
strength
public AbstractMappingType strength(MappingStrengthType value)
-
channel
public AbstractMappingType channel(String value)
-
exceptChannel
public AbstractMappingType exceptChannel(String value)
-
timeFrom
public AbstractMappingType timeFrom(MappingTimeDeclarationType value)
-
beginTimeFrom
public MappingTimeDeclarationType beginTimeFrom()
-
timeTo
public AbstractMappingType timeTo(MappingTimeDeclarationType value)
-
beginTimeTo
public MappingTimeDeclarationType beginTimeTo()
-
source
public AbstractMappingType source(VariableBindingDefinitionType value)
-
beginSource
public VariableBindingDefinitionType beginSource()
-
expression
public AbstractMappingType expression(ExpressionType value)
-
beginExpression
public ExpressionType beginExpression()
-
target
public AbstractMappingType target(VariableBindingDefinitionType value)
-
beginTarget
public VariableBindingDefinitionType beginTarget()
-
condition
public AbstractMappingType condition(ExpressionType value)
-
beginCondition
public ExpressionType beginCondition()
-
enabled
public AbstractMappingType enabled(Boolean value)
-
id
public AbstractMappingType id(Long value)
-
clone
public AbstractMappingType clone()
-
-