Search in sources :

Example 1 with RelationTypes

use of com.evolveum.midpoint.web.component.assignment.RelationTypes in project midpoint by Evolveum.

the class RoleMemberPanel method createReferenceValuesList.

private List<PrismReferenceValue> createReferenceValuesList() {
    List<PrismReferenceValue> referenceValuesList = new ArrayList<>();
    if (relations != null && relations.size() > 0) {
        for (RelationTypes relation : relations) {
            PrismReferenceValue rv = new PrismReferenceValue(getModelObject().getOid());
            rv.setRelation(relation.getRelation());
            referenceValuesList.add(rv);
        }
    } else {
        PrismReferenceValue rv = new PrismReferenceValue(getModelObject().getOid());
        referenceValuesList.add(rv);
    }
    return referenceValuesList;
}
Also used : RelationTypes(com.evolveum.midpoint.web.component.assignment.RelationTypes) PrismReferenceValue(com.evolveum.midpoint.prism.PrismReferenceValue) ArrayList(java.util.ArrayList)

Aggregations

PrismReferenceValue (com.evolveum.midpoint.prism.PrismReferenceValue)1 RelationTypes (com.evolveum.midpoint.web.component.assignment.RelationTypes)1 ArrayList (java.util.ArrayList)1