Class StatePolicyConstraintType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractPolicyConstraintType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.StatePolicyConstraintType
-
- All Implemented Interfaces:
Containerable
,DebugDumpable
,Serializable
,Cloneable
public class StatePolicyConstraintType extends AbstractPolicyConstraintType implements Serializable, Cloneable, Containerable
A constraint that triggers when a object or assignment is in a given state. If both filter and expressions are specified, both must be true in order for constraint to be triggered.Java class for StatePolicyConstraintType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="StatePolicyConstraintType"> <complexContent> <extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}AbstractPolicyConstraintType"> <sequence> <element name="filter" type="{http://prism.evolveum.com/xml/ns/public/query-3}SearchFilterType" minOccurs="0"/> <element name="expression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" minOccurs="0"/> <element name="messageExpression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" minOccurs="0"/> <element name="executeScript" type="{http://midpoint.evolveum.com/xml/ns/public/model/scripting-3}ExecuteScriptType" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_EXECUTE_SCRIPT
static ItemName
F_EXPRESSION
static ItemName
F_FILTER
static ItemName
F_MESSAGE_EXPRESSION
-
Fields inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractPolicyConstraintType
F_DESCRIPTION, F_DOCUMENTATION, F_NAME, F_PRESENTATION
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description StatePolicyConstraintType()
StatePolicyConstraintType(PrismContext prismContext)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractPolicyConstraintType
getDescription, getDocumentation, getId, getName, getPresentation, setDescription, setDocumentation, setId, setName, setPresentation
-
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_FILTER
public static final ItemName F_FILTER
-
F_EXPRESSION
public static final ItemName F_EXPRESSION
-
F_MESSAGE_EXPRESSION
public static final ItemName F_MESSAGE_EXPRESSION
-
F_EXECUTE_SCRIPT
public static final ItemName F_EXECUTE_SCRIPT
-
-
Constructor Detail
-
StatePolicyConstraintType
public StatePolicyConstraintType()
-
StatePolicyConstraintType
public StatePolicyConstraintType(PrismContext prismContext)
-
-
Method Detail
-
asPrismContainerValue
public PrismContainerValue asPrismContainerValue()
- Specified by:
asPrismContainerValue
in interfaceContainerable
- Overrides:
asPrismContainerValue
in classAbstractPolicyConstraintType
-
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
- Overrides:
setupContainerValue
in classAbstractPolicyConstraintType
-
toString
public String toString()
- Overrides:
toString
in classAbstractPolicyConstraintType
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classAbstractPolicyConstraintType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractPolicyConstraintType
-
end
public <X> X end()
- Overrides:
end
in classAbstractPolicyConstraintType
-
getFilter
public SearchFilterType getFilter()
-
setFilter
public void setFilter(SearchFilterType value)
-
getExpression
public ExpressionType getExpression()
-
setExpression
public void setExpression(ExpressionType value)
-
getMessageExpression
public ExpressionType getMessageExpression()
-
setMessageExpression
public void setMessageExpression(ExpressionType value)
-
getExecuteScript
public ExecuteScriptType getExecuteScript()
-
setExecuteScript
public void setExecuteScript(ExecuteScriptType value)
-
filter
public StatePolicyConstraintType filter(SearchFilterType value)
-
beginFilter
public SearchFilterType beginFilter()
-
expression
public StatePolicyConstraintType expression(ExpressionType value)
-
beginExpression
public ExpressionType beginExpression()
-
messageExpression
public StatePolicyConstraintType messageExpression(ExpressionType value)
-
beginMessageExpression
public ExpressionType beginMessageExpression()
-
executeScript
public StatePolicyConstraintType executeScript(ExecuteScriptType value)
-
beginExecuteScript
public ExecuteScriptType beginExecuteScript()
-
name
public StatePolicyConstraintType name(String value)
- Overrides:
name
in classAbstractPolicyConstraintType
-
description
public StatePolicyConstraintType description(String value)
- Overrides:
description
in classAbstractPolicyConstraintType
-
documentation
public StatePolicyConstraintType documentation(String value)
- Overrides:
documentation
in classAbstractPolicyConstraintType
-
presentation
public StatePolicyConstraintType presentation(PolicyConstraintPresentationType value)
- Overrides:
presentation
in classAbstractPolicyConstraintType
-
beginPresentation
public PolicyConstraintPresentationType beginPresentation()
- Overrides:
beginPresentation
in classAbstractPolicyConstraintType
-
id
public StatePolicyConstraintType id(Long value)
- Overrides:
id
in classAbstractPolicyConstraintType
-
clone
public StatePolicyConstraintType clone()
- Overrides:
clone
in classAbstractPolicyConstraintType
-
-