Package com.evolveum.midpoint.model.api
Class AssignmentCandidatesSpecification
java.lang.Object
com.evolveum.midpoint.model.api.AssignmentCandidatesSpecification
- All Implemented Interfaces:
- DebugDumpable,- Serializable
public class AssignmentCandidatesSpecification
extends Object
implements DebugDumpable, Serializable
Data structure that contains information about possible assignment targets or holders for a particular object.
 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.
- Author:
- Radovan Semancik
- See Also:
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondebugDump(int indent) Returns list of assignment target relation specifications.booleanIf set to true then the holder object can support "generic" assignment.voidsetAssignmentObjectRelations(List<AssignmentObjectRelation> assignmentTargetRelations) voidsetSupportGenericAssignment(boolean supportGenericAssignment) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
- 
Constructor Details- 
AssignmentCandidatesSpecificationpublic AssignmentCandidatesSpecification()
 
- 
- 
Method Details- 
isSupportGenericAssignmentpublic boolean isSupportGenericAssignment()If set to true then the holder object can support "generic" assignment. This means that any object type can be assigned (constrained by authorizations). This usually means that GUI should render "add assignment" button that is not constrained to specific target type or archetype.
- 
setSupportGenericAssignmentpublic void setSupportGenericAssignment(boolean supportGenericAssignment) 
- 
getAssignmentObjectRelationsReturns list of assignment target relation specifications. Simply speaking, those are object types that can be targets of assignments for this object and the respective relations. Simply speaking 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. If empty list is returned that means no assignments are allowed. I.e. there is no valid combination of target type and relation that could be applied. However, generic assignments may still be allowed. See supportGenericAssignment.
- 
setAssignmentObjectRelations
- 
debugDump- Specified by:
- debugDumpin interface- DebugDumpable
 
 
-