use of org.apache.syncope.common.lib.to.RelationshipTO in project syncope by apache.
the class Relationships method addRelationship.
private void addRelationship(final Map<String, List<RelationshipTO>> relationships, final RelationshipTO... rels) {
for (RelationshipTO relationship : rels) {
final List<RelationshipTO> listrels;
if (relationships.containsKey(relationship.getType())) {
listrels = relationships.get(relationship.getType());
} else {
listrels = new ArrayList<>();
relationships.put(relationship.getType(), listrels);
}
listrels.add(relationship);
}
}
Aggregations