Search in sources :

Example 6 with IdentityGroupKey

use of org.olat.group.model.IdentityGroupKey in project openolat by klemens.

the class BusinessGroupDAO method getBusinessGroupsMembership.

public List<BusinessGroupMembership> getBusinessGroupsMembership(Collection<BusinessGroup> groups) {
    List<Long> groupKeys = new ArrayList<>();
    for (BusinessGroup group : groups) {
        groupKeys.add(group.getKey());
    }
    Map<IdentityGroupKey, BusinessGroupMembershipImpl> memberships = new HashMap<IdentityGroupKey, BusinessGroupMembershipImpl>();
    loadBusinessGroupsMembership(groupKeys, memberships);
    return new ArrayList<BusinessGroupMembership>(memberships.values());
}
Also used : IdentityGroupKey(org.olat.group.model.IdentityGroupKey) BusinessGroupMembershipImpl(org.olat.group.model.BusinessGroupMembershipImpl) BusinessGroup(org.olat.group.BusinessGroup) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList)

Aggregations

BusinessGroupMembershipImpl (org.olat.group.model.BusinessGroupMembershipImpl)6 IdentityGroupKey (org.olat.group.model.IdentityGroupKey)6 ArrayList (java.util.ArrayList)4 HashMap (java.util.HashMap)4 Date (java.util.Date)2 BusinessGroup (org.olat.group.BusinessGroup)2 BusinessGroupMembershipViewImpl (org.olat.group.model.BusinessGroupMembershipViewImpl)2