Class AssignmentType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType
-
- All Implemented Interfaces:
Containerable
,DebugDumpable
,Serializable
,Cloneable
public class AssignmentType extends Object implements Serializable, Cloneable, Containerable
Generic assignments of one object to another object. This will usually be assignment of a role to a user, assignment of an organizational unit, team or whatever. It may also be used to assign role to another role, creating a role hierarchy. Assignment is an abstract concept. It can be anything that gives the "receptor" object additional access rights, privileges, capabilities or similar ability or right. But it may also constraint the object with policy, e.g. to implement separation of duties. Roles, organizations and privileges in IDM system are examples of assignments. The assignment may target either existing IDM object (such as a role) or abstract resource account that may or may not exist. In case of resource objects it is constrained to accounts, as accounts are the only resource objects that can be assigned to a user. Other resource objects (entitlements) can be assigned to accounts, but not to users. TODO: constraintsJava class for AssignmentType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AssignmentType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="documentation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="subtype" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}extension" minOccurs="0"/> <element name="lifecycleState" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="metadata" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}MetadataType" minOccurs="0"/> <choice> <element name="targetRef" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectReferenceType" minOccurs="0"/> <element name="construction" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ConstructionType" minOccurs="0"/> <element name="personaConstruction" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}PersonaConstructionType" minOccurs="0"/> <element name="focusMappings" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}MappingsType" minOccurs="0"/> <element name="policyRule" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}PolicyRuleType" minOccurs="0"/> </choice> <element name="activation" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ActivationType" minOccurs="0"/> <element name="order" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> <element name="orderConstraint" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}OrderConstraintsType" maxOccurs="unbounded" minOccurs="0"/> <element name="limitTargetContent" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}AssignmentSelectorType" minOccurs="0"/> <element name="limitOtherPrivileges" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}OtherPrivilegesLimitationType" minOccurs="0"/> <element name="focusType" type="{http://www.w3.org/2001/XMLSchema}QName" minOccurs="0"/> <element name="tenantRef" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectReferenceType" minOccurs="0"/> <element name="orgRef" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectReferenceType" minOccurs="0"/> <element name="condition" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}MappingType" minOccurs="0"/> <element name="policySituation" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> <element name="triggeredPolicyRule" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}EvaluatedPolicyRuleType" maxOccurs="unbounded" minOccurs="0"/> <element name="policyException" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}PolicyExceptionType" maxOccurs="unbounded" minOccurs="0"/> <element name="assignmentRelation" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}AssignmentRelationType" maxOccurs="unbounded" 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_ACTIVATION
static ItemName
F_ASSIGNMENT_RELATION
static ItemName
F_CONDITION
static ItemName
F_CONSTRUCTION
static ItemName
F_DESCRIPTION
static ItemName
F_DOCUMENTATION
static ItemName
F_EXTENSION
static ItemName
F_FOCUS_MAPPINGS
static ItemName
F_FOCUS_TYPE
static ItemName
F_LIFECYCLE_STATE
static ItemName
F_LIMIT_OTHER_PRIVILEGES
static ItemName
F_LIMIT_TARGET_CONTENT
static ItemName
F_METADATA
static ItemName
F_ORDER
static ItemName
F_ORDER_CONSTRAINT
static ItemName
F_ORG_REF
static ItemName
F_PERSONA_CONSTRUCTION
static ItemName
F_POLICY_EXCEPTION
static ItemName
F_POLICY_RULE
static ItemName
F_POLICY_SITUATION
static ItemName
F_SUBTYPE
static ItemName
F_TARGET_REF
static ItemName
F_TENANT_REF
static ItemName
F_TRIGGERED_POLICY_RULE
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description AssignmentType()
AssignmentType(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_DESCRIPTION
public static final ItemName F_DESCRIPTION
-
F_DOCUMENTATION
public static final ItemName F_DOCUMENTATION
-
F_SUBTYPE
public static final ItemName F_SUBTYPE
-
F_EXTENSION
public static final ItemName F_EXTENSION
-
F_LIFECYCLE_STATE
public static final ItemName F_LIFECYCLE_STATE
-
F_METADATA
public static final ItemName F_METADATA
-
F_TARGET_REF
public static final ItemName F_TARGET_REF
-
F_CONSTRUCTION
public static final ItemName F_CONSTRUCTION
-
F_PERSONA_CONSTRUCTION
public static final ItemName F_PERSONA_CONSTRUCTION
-
F_FOCUS_MAPPINGS
public static final ItemName F_FOCUS_MAPPINGS
-
F_POLICY_RULE
public static final ItemName F_POLICY_RULE
-
F_ACTIVATION
public static final ItemName F_ACTIVATION
-
F_ORDER
public static final ItemName F_ORDER
-
F_ORDER_CONSTRAINT
public static final ItemName F_ORDER_CONSTRAINT
-
F_LIMIT_TARGET_CONTENT
public static final ItemName F_LIMIT_TARGET_CONTENT
-
F_LIMIT_OTHER_PRIVILEGES
public static final ItemName F_LIMIT_OTHER_PRIVILEGES
-
F_FOCUS_TYPE
public static final ItemName F_FOCUS_TYPE
-
F_TENANT_REF
public static final ItemName F_TENANT_REF
-
F_ORG_REF
public static final ItemName F_ORG_REF
-
F_CONDITION
public static final ItemName F_CONDITION
-
F_POLICY_SITUATION
public static final ItemName F_POLICY_SITUATION
-
F_TRIGGERED_POLICY_RULE
public static final ItemName F_TRIGGERED_POLICY_RULE
-
F_POLICY_EXCEPTION
public static final ItemName F_POLICY_EXCEPTION
-
F_ASSIGNMENT_RELATION
public static final ItemName F_ASSIGNMENT_RELATION
-
-
Constructor Detail
-
AssignmentType
public AssignmentType()
-
AssignmentType
public AssignmentType(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()
-
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)
-
getLifecycleState
public String getLifecycleState()
-
setLifecycleState
public void setLifecycleState(String value)
-
getMetadata
public MetadataType getMetadata()
-
setMetadata
public void setMetadata(MetadataType value)
-
getTargetRef
public ObjectReferenceType getTargetRef()
-
setTargetRef
public void setTargetRef(ObjectReferenceType value)
-
getConstruction
public ConstructionType getConstruction()
-
setConstruction
public void setConstruction(ConstructionType value)
-
getPersonaConstruction
public PersonaConstructionType getPersonaConstruction()
-
setPersonaConstruction
public void setPersonaConstruction(PersonaConstructionType value)
-
getFocusMappings
public MappingsType getFocusMappings()
-
setFocusMappings
public void setFocusMappings(MappingsType value)
-
getPolicyRule
public PolicyRuleType getPolicyRule()
-
setPolicyRule
public void setPolicyRule(PolicyRuleType value)
-
getActivation
public ActivationType getActivation()
-
setActivation
public void setActivation(ActivationType value)
-
getOrder
public Integer getOrder()
-
setOrder
public void setOrder(Integer value)
-
getOrderConstraint
public List<OrderConstraintsType> getOrderConstraint()
-
createOrderConstraintList
public List<OrderConstraintsType> createOrderConstraintList()
-
getLimitTargetContent
public AssignmentSelectorType getLimitTargetContent()
-
setLimitTargetContent
public void setLimitTargetContent(AssignmentSelectorType value)
-
getLimitOtherPrivileges
public OtherPrivilegesLimitationType getLimitOtherPrivileges()
-
setLimitOtherPrivileges
public void setLimitOtherPrivileges(OtherPrivilegesLimitationType value)
-
getFocusType
public QName getFocusType()
-
setFocusType
public void setFocusType(QName value)
-
getTenantRef
public ObjectReferenceType getTenantRef()
-
setTenantRef
public void setTenantRef(ObjectReferenceType value)
-
getOrgRef
public ObjectReferenceType getOrgRef()
-
setOrgRef
public void setOrgRef(ObjectReferenceType value)
-
getCondition
public MappingType getCondition()
-
setCondition
public void setCondition(MappingType value)
-
getTriggeredPolicyRule
public List<EvaluatedPolicyRuleType> getTriggeredPolicyRule()
-
createTriggeredPolicyRuleList
public List<EvaluatedPolicyRuleType> createTriggeredPolicyRuleList()
-
getPolicyException
public List<PolicyExceptionType> getPolicyException()
-
createPolicyExceptionList
public List<PolicyExceptionType> createPolicyExceptionList()
-
getAssignmentRelation
public List<AssignmentRelationType> getAssignmentRelation()
-
createAssignmentRelationList
public List<AssignmentRelationType> createAssignmentRelationList()
-
getId
public Long getId()
-
setId
public void setId(Long value)
-
description
public AssignmentType description(String value)
-
documentation
public AssignmentType documentation(String value)
-
subtype
public AssignmentType subtype(String value)
-
extension
public AssignmentType extension(ExtensionType value)
-
beginExtension
public ExtensionType beginExtension()
-
lifecycleState
public AssignmentType lifecycleState(String value)
-
metadata
public AssignmentType metadata(MetadataType value)
-
beginMetadata
public MetadataType beginMetadata()
-
targetRef
public AssignmentType targetRef(ObjectReferenceType value)
-
targetRef
public AssignmentType targetRef(String oid, QName type)
-
targetRef
public AssignmentType targetRef(String oid, QName type, QName relation)
-
beginTargetRef
public ObjectReferenceType beginTargetRef()
-
construction
public AssignmentType construction(ConstructionType value)
-
beginConstruction
public ConstructionType beginConstruction()
-
personaConstruction
public AssignmentType personaConstruction(PersonaConstructionType value)
-
beginPersonaConstruction
public PersonaConstructionType beginPersonaConstruction()
-
focusMappings
public AssignmentType focusMappings(MappingsType value)
-
beginFocusMappings
public MappingsType beginFocusMappings()
-
policyRule
public AssignmentType policyRule(PolicyRuleType value)
-
beginPolicyRule
public PolicyRuleType beginPolicyRule()
-
activation
public AssignmentType activation(ActivationType value)
-
beginActivation
public ActivationType beginActivation()
-
order
public AssignmentType order(Integer value)
-
orderConstraint
public AssignmentType orderConstraint(OrderConstraintsType value)
-
beginOrderConstraint
public OrderConstraintsType beginOrderConstraint()
-
limitTargetContent
public AssignmentType limitTargetContent(AssignmentSelectorType value)
-
beginLimitTargetContent
public AssignmentSelectorType beginLimitTargetContent()
-
limitOtherPrivileges
public AssignmentType limitOtherPrivileges(OtherPrivilegesLimitationType value)
-
beginLimitOtherPrivileges
public OtherPrivilegesLimitationType beginLimitOtherPrivileges()
-
focusType
public AssignmentType focusType(QName value)
-
tenantRef
public AssignmentType tenantRef(ObjectReferenceType value)
-
tenantRef
public AssignmentType tenantRef(String oid, QName type)
-
tenantRef
public AssignmentType tenantRef(String oid, QName type, QName relation)
-
beginTenantRef
public ObjectReferenceType beginTenantRef()
-
orgRef
public AssignmentType orgRef(ObjectReferenceType value)
-
orgRef
public AssignmentType orgRef(String oid, QName type)
-
orgRef
public AssignmentType orgRef(String oid, QName type, QName relation)
-
beginOrgRef
public ObjectReferenceType beginOrgRef()
-
condition
public AssignmentType condition(MappingType value)
-
beginCondition
public MappingType beginCondition()
-
policySituation
public AssignmentType policySituation(String value)
-
triggeredPolicyRule
public AssignmentType triggeredPolicyRule(EvaluatedPolicyRuleType value)
-
beginTriggeredPolicyRule
public EvaluatedPolicyRuleType beginTriggeredPolicyRule()
-
policyException
public AssignmentType policyException(PolicyExceptionType value)
-
beginPolicyException
public PolicyExceptionType beginPolicyException()
-
assignmentRelation
public AssignmentType assignmentRelation(AssignmentRelationType value)
-
beginAssignmentRelation
public AssignmentRelationType beginAssignmentRelation()
-
id
public AssignmentType id(Long value)
-
clone
public AssignmentType clone()
-
-