Class 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.
    Radovan Semancik
    See Also:
    Serialized Form
    • Constructor Detail

      • AssignmentCandidatesSpecification

        public AssignmentCandidatesSpecification()
    • Method Detail

      • 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

        public List<AssignmentObjectRelation> 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.