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;
}
Aggregations