Package com.evolveum.midpoint.model.api
Class AssignmentObjectRelation
- java.lang.Object
- 
- com.evolveum.midpoint.model.api.AssignmentObjectRelation
 
- 
- All Implemented Interfaces:
- DebugDumpable,- ShortDumpable,- Serializable
 
 public class AssignmentObjectRelation extends Object implements DebugDumpable, ShortDumpable, Serializable Assignment object relation specification. Data structure that contains information about possible assignment targets or holders for a particular object and possible relation/archetype combinations. This data structure is used in two related, but slight distinct cases: looking for assignment targets and looking for assignment holders. In both cases this structure describes candidate objects on the "other side" of the assignment. For the "target" case, simply speaking, those are object types that can be targets of assignments for this object and the respective relations. This means "what assignments can I have" or "what are the valid targets for relations that I hold". It is the reverse of assignmentRelation definition in AssignmentType in schema. For the "holder" case it is a reverse of the above. In that case it specifies objects that ca be potential members. If objectType, archetype or relation is null then there is no constraint for that specific aspect. E.g. if the archetypeRefs is null then any archetype is allowed. If objectType, archetype or relation is empty list then no value for that particular aspect is allowed. Which means that this specification does not really allow anything. This should not really happen when used in ArchetypeInteractionSpecification as such specification would be meaningless. If more that one targetType, archetype or relation is specified then all possible combinations of those values are allowed (carthesian product).- Author:
- Radovan Semancik
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description List<ObjectReferenceType>archetypeRefsStringdescriptionList<QName>objectTypesList<QName>relations- 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
 
- 
 - 
Constructor SummaryConstructors Constructor Description AssignmentObjectRelation()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArchetypeRef(PrismObject<ArchetypeType> archetype)voidaddArchetypeRef(ObjectReferenceType archetypeRef)voidaddArchetypeRefs(Collection<ObjectReferenceType> archetypeRefs)voidaddObjectTypes(List<QName> newTargetTypes)voidaddRelations(List<QName> newRelations)StringdebugDump(int indent)List<ObjectReferenceType>getArchetypeRefs()StringgetDescription()Just for diagnostic purposes (testability).List<QName>getObjectTypes()List<QName>getRelations()voidsetArchetypeRefs(List<ObjectReferenceType> archetypeRefs)voidsetDescription(String description)voidsetObjectTypes(List<QName> targetTypes)voidsetRelations(List<QName> relations)voidshortDump(StringBuilder sb)Show the content of the object intended for diagnostics.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
 - 
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
 
- 
 
- 
- 
- 
Method Detail- 
getArchetypeRefspublic List<ObjectReferenceType> getArchetypeRefs() 
 - 
setArchetypeRefspublic void setArchetypeRefs(List<ObjectReferenceType> archetypeRefs) 
 - 
addArchetypeRefpublic void addArchetypeRef(PrismObject<ArchetypeType> archetype) 
 - 
addArchetypeRefpublic void addArchetypeRef(ObjectReferenceType archetypeRef) 
 - 
addArchetypeRefspublic void addArchetypeRefs(Collection<ObjectReferenceType> archetypeRefs) 
 - 
getDescriptionpublic String getDescription() Just for diagnostic purposes (testability).
 - 
setDescriptionpublic void setDescription(String description) 
 - 
shortDumppublic void shortDump(StringBuilder sb) Description copied from interface:ShortDumpableShow the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
- shortDumpin interface- ShortDumpable
- Parameters:
- sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
 
 - 
debugDumppublic String debugDump(int indent) - Specified by:
- debugDumpin interface- DebugDumpable
 
 
- 
 
-