Package org.olat.group

Examples of org.olat.group.BusinessGroup


  public List getNumberOfMembersFromGroups(List groups) {
    Manager securityManager = ManagerFactory.getManager();
    List members = new ArrayList();
    Iterator iterator = groups.iterator();
    while (iterator.hasNext()) {
      BusinessGroup group = (BusinessGroup) iterator.next();
      int numbMembers = securityManager.countIdentitiesOfSecurityGroup(group.getPartipiciantGroup());
      members.add(new Integer(numbMembers));
    }
    return members;
  }
View Full Code Here


    List groups = getAllLearningGroupsFromAllContexts();
    List groupNames = new ArrayList();

    Iterator iter = groups.iterator();
    while (iter.hasNext()) {
      BusinessGroup group = (BusinessGroup) iter.next();
      String groupName = group.getName();
      if (!groupNames.contains(groupName)) groupNames.add(groupName.trim());
    }

    return groupNames;
  }
View Full Code Here

      bgs = getAllLearningGroupsFromAllContexts();
    }
    for (int i = 0; i < bgs.size(); i++) {
      // iterates over all business group in the course, fetching the identities
      // of the business groups OWNER
      BusinessGroup elm = (BusinessGroup) bgs.get(i);
      retVal.addAll(secManager.getIdentitiesOfSecurityGroup(elm.getOwnerGroup()));
    }
    return retVal;
  }
View Full Code Here

      bgs = getAllLearningGroupsFromAllContexts();
    }
    for (int i = 0; i < bgs.size(); i++) {
      // iterates over all business group in the course, fetching the identities
      // of the business groups PARTICIPANTS
      BusinessGroup elm = (BusinessGroup) bgs.get(i);
      retVal.addAll(secManager.getIdentitiesOfSecurityGroup(elm.getPartipiciantGroup()));
    }
    return retVal;
  }
View Full Code Here

      bgs = getAllLearningGroupsFromAllContexts();
    }
    for (int i = 0; i < bgs.size(); i++) {
      // iterates over all business group in the course's area, fetching the
      // OWNER identities
      BusinessGroup elm = (BusinessGroup) bgs.get(i);
      retVal.addAll(secManager.getIdentitiesOfSecurityGroup(elm.getOwnerGroup()));
    }
    return retVal;
  }
View Full Code Here

      bgs = getAllLearningGroupsFromAllContexts();
    }
    for (int i = 0; i < bgs.size(); i++) {
      // iterates over all business group in the course's area, fetching the
      // PARTIPICIANT identities
      BusinessGroup elm = (BusinessGroup) bgs.get(i);
      retVal.addAll(secManager.getIdentitiesOfSecurityGroup(elm.getPartipiciantGroup()));
    }
    return retVal;
  }
View Full Code Here

  }
 
  private void checkPublisher(Publisher p) {
    try {
      if("BusinessGroup".equals(p.getResName())) {
        BusinessGroup bg = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(p.getResId(), false);
        if(bg == null) {
          log.info("deactivating publisher with key; " + p.getKey(), null);
          NotificationsManager.getInstance().deactivate(p);
        }
      } else if ("CourseModule".equals(p.getResName())) {
View Full Code Here

  private TitleItem getTitleItem(Publisher p, Translator translator) {
    String title;
    try {
      String resName = p.getResName();
      if("BusinessGroup".equals(resName)) {
        BusinessGroup bg = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(p.getResId(), false);
        title = translator.translate("notifications.header.group", new String[]{bg.getName()});
      } else if("CourseModule".equals(resName)) {
        ICourse course = CourseFactory.loadCourse(p.getResId());
        title = translator.translate("notifications.header.course", new String[]{course.getCourseTitle()});
      } else {
        title = translator.translate("notifications.header");
View Full Code Here

    BusinessGroupManager bgManager = BusinessGroupManagerImpl.getInstance();
    List<BusinessGroup> ownerGroups = bgManager.findBusinessGroupsOwnedBy(null, ureq.getIdentity(), null);
    addCalendars(ureq, ownerGroups, true, calendars);
    List<BusinessGroup> attendedGroups = bgManager.findBusinessGroupsAttendedBy(null, ureq.getIdentity(), null);
    for (Iterator<BusinessGroup> ownerGroupsIterator = ownerGroups.iterator(); ownerGroupsIterator.hasNext();) {
      BusinessGroup ownerGroup = ownerGroupsIterator.next();
      if (attendedGroups.contains(ownerGroup))
        attendedGroups.remove(ownerGroup);
    }
    addCalendars(ureq, attendedGroups, false, calendars);
   
View Full Code Here

 
  private static void addCalendars(UserRequest ureq, List<BusinessGroup> groups, boolean isOwner, List<KalendarRenderWrapper> calendars) {
    CollaborationToolsFactory collabFactory = CollaborationToolsFactory.getInstance();
    CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
    for (Iterator<BusinessGroup> iter = groups.iterator(); iter.hasNext();) {
      BusinessGroup bGroup = iter.next();
      CollaborationTools collabTools = collabFactory.getOrCreateCollaborationTools(bGroup);
      if (!collabTools.isToolEnabled(CollaborationTools.TOOL_CALENDAR)) continue;
      KalendarRenderWrapper groupCalendarWrapper = calendarManager.getGroupCalendar(bGroup);
      // set calendar access
      int iCalAccess = CollaborationTools.CALENDAR_ACCESS_OWNERS;
View Full Code Here

TOP

Related Classes of org.olat.group.BusinessGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.