public class LookupTableType extends ObjectType implements Serializable, Cloneable
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
An object that represents lookup table. The lookup table can be used for two purposes:
value enumerations (e.g. for GUI or validation) and value mapping (translation).
The same lookup table can serve both purposes at the same time.
</p>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
The content of the lookup table can be used as enumeration. E.g. the labels for each
table row can be displayed in the user interface. When a particular label is selected then
the associated key will be stored. Similar approach can be used for validation, e.g. when only
a selected set of values is legal for a certain property. In this case the "key" and "label"
columns are used.
</p>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
The content of the lookup table can also be used for value mapping. E.g. in cases when
input value needs to be mapped to the output value. In this case the "key" and "value"
columns are used.
</p>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Even though the lookup table is represented as a prism object, it is designed to be
stored and queried efficiently. Therefore the contents of the lookup table will
be stored in a specialized table tuned for this purpose. This data type is not
designed to be used with the usual midPoint query mechanism (e.g. searchObjects operation).
Specialized operations are used to efficiently query the lookup tables. The prism
representation (e.g. XML) of the lookup tables is used only for backup, restore, migrations,
upgrades and similar purposes.
</p>
Java class for LookupTableType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LookupTableType">
<complexContent>
<extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectType">
<sequence>
<element name="row" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}LookupTableRowType" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
static QName |
COMPLEX_TYPE |
static QName |
F_ROW |
F_DESCRIPTION, F_EXTENSION, F_FETCH_RESULT, F_METADATA, F_NAME, F_PARENT_ORG, F_PARENT_ORG_REF, F_TENANT_REF, F_TRIGGER| Constructor and Description |
|---|
LookupTableType() |
LookupTableType(com.evolveum.midpoint.prism.PrismContext prismContext) |
| Modifier and Type | Method and Description |
|---|---|
LookupTableType |
clone() |
List<LookupTableRowType> |
getRow() |
asPrismContainer, asPrismContainerValue, asPrismObject, equals, getDescription, getExtension, getFetchResult, getMetadata, getName, getOid, getParentOrg, getParentOrgRef, getTenantRef, getTrigger, getVersion, hashCode, setDescription, setExtension, setFetchResult, setMetadata, setName, setOid, setTenantRef, setupContainer, setupContainerValue, setVersion, toDebugName, toDebugType, toStringpublic static final QName COMPLEX_TYPE
public static final QName F_ROW
public LookupTableType()
public LookupTableType(com.evolveum.midpoint.prism.PrismContext prismContext)
public List<LookupTableRowType> getRow()
public LookupTableType clone()
clone in class ObjectTypeCopyright © 2016 Evolveum. All rights reserved.