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 com.evolveum.midpoint.prism.impl.binding.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 Boolean
allowSameRelation
protected Boolean
allowSameTarget
static QName
COMPLEX_TYPE
protected String
description
protected String
documentation
static ItemName
F_ALLOW_SAME_RELATION
static ItemName
F_ALLOW_SAME_TARGET
static ItemName
F_DESCRIPTION
static ItemName
F_DOCUMENTATION
-
Constructor Summary
Constructors Constructor Description AssignmentConstraintsType()
AssignmentConstraintsType(AssignmentConstraintsType other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
AssignmentConstraintsType
allowSameRelation(Boolean value)
AssignmentConstraintsType
allowSameTarget(Boolean value)
AssignmentConstraintsType
clone()
AssignmentConstraintsType
description(String value)
AssignmentConstraintsType
documentation(String value)
boolean
equals(Object other, StructuredEqualsStrategy strategy)
String
getDescription()
String
getDocumentation()
int
hashCode(StructuredHashCodeStrategy strategy)
Boolean
isAllowSameRelation()
Boolean
isAllowSameTarget()
void
setAllowSameRelation(Boolean value)
void
setAllowSameTarget(Boolean value)
void
setDescription(String value)
void
setDocumentation(String value)
-
-
-
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:
hashCode
in interfacePlainStructured
- Overrides:
hashCode
in classcom.evolveum.midpoint.prism.impl.binding.AbstractPlainStructured
-
equals
public boolean equals(Object other, StructuredEqualsStrategy strategy)
- Specified by:
equals
in interfacePlainStructured
- Overrides:
equals
in classcom.evolveum.midpoint.prism.impl.binding.AbstractPlainStructured
-
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:
accept
in interfaceJaxbVisitable
- Overrides:
accept
in classcom.evolveum.midpoint.prism.impl.binding.AbstractPlainStructured
-
clone
public AssignmentConstraintsType clone()
- Specified by:
clone
in interfacePlainStructured
- Specified by:
clone
in classcom.evolveum.midpoint.prism.impl.binding.AbstractPlainStructured
-
-