Search in sources :

Example 6 with AssignmentCandidatesSpecification

use of com.evolveum.midpoint.model.api.AssignmentCandidatesSpecification in project midpoint by Evolveum.

the class ChooseMemberPopup method loadCandidateSpecification.

private AssignmentCandidatesSpecification loadCandidateSpecification() {
    OperationResult result = new OperationResult(OPERATION_LOAD_MEMBER_RELATIONS);
    PrismObject obj = getAssignmentTargetRefObject().asPrismObject();
    AssignmentCandidatesSpecification spec = null;
    try {
        spec = getPageBase().getModelInteractionService().determineAssignmentHolderSpecification(obj, result);
    } catch (Throwable ex) {
        result.recordPartialError(ex.getLocalizedMessage());
        LOGGER.error("Couldn't load member relations list for the object {} , {}", obj.getName(), ex.getLocalizedMessage());
    }
    return spec;
}
Also used : PrismObject(com.evolveum.midpoint.prism.PrismObject) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) AssignmentCandidatesSpecification(com.evolveum.midpoint.model.api.AssignmentCandidatesSpecification)

Aggregations

AssignmentCandidatesSpecification (com.evolveum.midpoint.model.api.AssignmentCandidatesSpecification)6 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)6 ConfigurationException (com.evolveum.midpoint.util.exception.ConfigurationException)3 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)3 AssignmentObjectRelation (com.evolveum.midpoint.model.api.AssignmentObjectRelation)2 PrismObject (com.evolveum.midpoint.prism.PrismObject)2 ArrayList (java.util.ArrayList)2 NotNull (org.jetbrains.annotations.NotNull)2