Class AssignmentConstraintsType
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.binding.AbstractPlainStructured
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentConstraintsType
-
- All Implemented Interfaces:
PlainStructured,JaxbVisitable,Serializable,Cloneable
public class AssignmentConstraintsType extends AbstractPlainStructured
Specifies constraints on assignments that are placed in the same focus. It can be used to prohibit multiple assignment of the same role and for similar cases. There are several individual constraints in the type. There is a logical AND between them. This means that if no constraint can be violated. All active constraints must be satisfied at the same time.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.binding.PlainStructured
PlainStructured.WithoutStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanallowSameRelationprotected BooleanallowSameTargetstatic QNameCOMPLEX_TYPEprotected Stringdescriptionprotected Stringdocumentationstatic ItemNameF_ALLOW_SAME_RELATIONstatic ItemNameF_ALLOW_SAME_TARGETstatic ItemNameF_DESCRIPTIONstatic ItemNameF_DOCUMENTATION
-
Constructor Summary
Constructors Constructor Description AssignmentConstraintsType()AssignmentConstraintsType(AssignmentConstraintsType other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JaxbVisitor visitor)AssignmentConstraintsTypeallowSameRelation(Boolean value)AssignmentConstraintsTypeallowSameTarget(Boolean value)AssignmentConstraintsTypeclone()AssignmentConstraintsTypedescription(String value)AssignmentConstraintsTypedocumentation(String value)booleanequals(Object other, StructuredEqualsStrategy strategy)StringgetDescription()StringgetDocumentation()inthashCode(StructuredHashCodeStrategy strategy)BooleanisAllowSameRelation()BooleanisAllowSameTarget()voidsetAllowSameRelation(Boolean value)voidsetAllowSameTarget(Boolean value)voidsetDescription(String value)voidsetDocumentation(String value)-
Methods inherited from class com.evolveum.midpoint.prism.impl.binding.AbstractPlainStructured
equals, hashCode, toString
-
-
-
-
Field Detail
-
description
protected String description
-
documentation
protected String documentation
-
allowSameTarget
protected Boolean allowSameTarget
-
allowSameRelation
protected Boolean allowSameRelation
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_DESCRIPTION
public static final ItemName F_DESCRIPTION
-
F_DOCUMENTATION
public static final ItemName F_DOCUMENTATION
-
F_ALLOW_SAME_TARGET
public static final ItemName F_ALLOW_SAME_TARGET
-
F_ALLOW_SAME_RELATION
public static final ItemName F_ALLOW_SAME_RELATION
-
-
Constructor Detail
-
AssignmentConstraintsType
public AssignmentConstraintsType()
-
AssignmentConstraintsType
public AssignmentConstraintsType(AssignmentConstraintsType other)
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String value)
-
getDocumentation
public String getDocumentation()
-
setDocumentation
public void setDocumentation(String value)
-
isAllowSameTarget
public Boolean isAllowSameTarget()
-
setAllowSameTarget
public void setAllowSameTarget(Boolean value)
-
isAllowSameRelation
public Boolean isAllowSameRelation()
-
setAllowSameRelation
public void setAllowSameRelation(Boolean value)
-
hashCode
public int hashCode(StructuredHashCodeStrategy strategy)
- Specified by:
hashCodein interfacePlainStructured- Overrides:
hashCodein classAbstractPlainStructured
-
equals
public boolean equals(Object other, StructuredEqualsStrategy strategy)
- Specified by:
equalsin interfacePlainStructured- Overrides:
equalsin classAbstractPlainStructured
-
description
public AssignmentConstraintsType description(String value)
-
documentation
public AssignmentConstraintsType documentation(String value)
-
allowSameTarget
public AssignmentConstraintsType allowSameTarget(Boolean value)
-
allowSameRelation
public AssignmentConstraintsType allowSameRelation(Boolean value)
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
acceptin interfaceJaxbVisitable- Overrides:
acceptin classAbstractPlainStructured
-
clone
public AssignmentConstraintsType clone()
- Specified by:
clonein interfacePlainStructured- Specified by:
clonein classAbstractPlainStructured
-
-