*/
public BusinessGroupEditController createEditControllerFor(UserRequest ureq, WindowControl wControl, BusinessGroup businessGroup) {
String bgTyp = businessGroup.getType();
if (BusinessGroup.TYPE_BUDDYGROUP.equals(bgTyp)) {
BGConfigFlags flags = BGConfigFlags.createBuddyGroupDefaultFlags();
return new BusinessGroupEditController(ureq, wControl, businessGroup, flags);
} else if (BusinessGroup.TYPE_LEARNINGROUP.equals(bgTyp)) {
BGConfigFlags flags = BGConfigFlags.createLearningGroupDefaultFlags();
return new BusinessGroupEditController(ureq, wControl, businessGroup, flags);
} else if (BusinessGroup.TYPE_RIGHTGROUP.equals(bgTyp)) {
BGConfigFlags flags = BGConfigFlags.createRightGroupDefaultFlags();
return new BusinessGroupEditController(ureq, wControl, businessGroup, flags);
}
// else
throw new AssertException("unknown BusinessGroupType::" + bgTyp);
}