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 Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebugDump
(int indent) Returns list of assignment target relation specifications.boolean
If set to true then the holder object can support "generic" assignment.void
setAssignmentObjectRelations
(List<AssignmentObjectRelation> assignmentTargetRelations) void
setSupportGenericAssignment
(boolean supportGenericAssignment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
AssignmentCandidatesSpecification
public AssignmentCandidatesSpecification()
-
-
Method Details
-
isSupportGenericAssignment
public 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. -
setSupportGenericAssignment
public void setSupportGenericAssignment(boolean supportGenericAssignment) -
getAssignmentObjectRelations
Returns 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:
debugDump
in interfaceDebugDumpable
-