Package org.olat.group.context

Examples of org.olat.group.context.BGContext


    List areas = new ArrayList();
    BGAreaManager areaManager = BGAreaManagerImpl.getInstance();
    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    Iterator iterator = learningGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      BusinessGroup group = contextManager.findGroupOfBGContext(groupName, bgContext);
      if (group != null) {
        List groupAreas = areaManager.findBGAreasOfBusinessGroup(group);
        areas.addAll(groupAreas);
      }
View Full Code Here


  public List getParticipatingLearningGroupsFromAllContexts(Identity identity, String groupName) {
    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    List groups = new ArrayList();
    Iterator iter = learningGroupContexts.iterator();
    while (iter.hasNext()) {
      BGContext context = (BGContext) iter.next();
      BusinessGroup group = contextManager.findGroupAttendedBy(identity, groupName, context);
      if (group != null) groups.add(group);
    }
    return groups;
  }
View Full Code Here

  public List getParticipatingLearningGroupsInAreaFromAllContexts(Identity identity, String areaName) {
    BGAreaManager areaManager = BGAreaManagerImpl.getInstance();
    List groups = new ArrayList();
    Iterator iter = learningGroupContexts.iterator();
    while (iter.hasNext()) {
      BGContext context = (BGContext) iter.next();
      List contextGroups = areaManager.findBusinessGroupsOfAreaAttendedBy(identity, areaName, context);
      groups.addAll(contextGroups);
    }
    return groups;
  }
View Full Code Here

  public List getAllRightGroupsFromAllContexts() {
    List allGroups = new ArrayList();
    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    Iterator iterator = rightGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      List contextGroups = contextManager.getGroupsOfBGContext(bgContext);
      allGroups.addAll(contextGroups);
    }
    return allGroups;
  }
View Full Code Here

  public List getOwnedLearningGroupsFromAllContexts(Identity identity) {
    List allGroups = new ArrayList();
    BusinessGroupManager groupManager = BusinessGroupManagerImpl.getInstance();
    Iterator iterator = learningGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      List contextGroups = groupManager.findBusinessGroupsOwnedBy(bgContext.getGroupType(), identity, bgContext);
      allGroups.addAll(contextGroups);
    }
    return allGroups;
  }
View Full Code Here

  public List getParticipatingLearningGroupsFromAllContexts(Identity identity) {
    List allGroups = new ArrayList();
    BusinessGroupManager groupManager = BusinessGroupManagerImpl.getInstance();
    Iterator iterator = learningGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      List contextGroups = groupManager.findBusinessGroupsAttendedBy(bgContext.getGroupType(), identity, bgContext);
      allGroups.addAll(contextGroups);
    }
    return allGroups;
  }
View Full Code Here

  public List getParticipatingRightGroupsFromAllContexts(Identity identity) {
    List allGroups = new ArrayList();
    BusinessGroupManager groupManager = BusinessGroupManagerImpl.getInstance();
    Iterator iterator = rightGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      List contextGroups = groupManager.findBusinessGroupsAttendedBy(bgContext.getGroupType(), identity, bgContext);
      allGroups.addAll(contextGroups);
    }
    return allGroups;
  }
View Full Code Here

   */
  public boolean isIdentityCourseCoach(Identity identity) {
    Manager secManager = ManagerFactory.getManager();
    Iterator iterator = learningGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      boolean isCoach = secManager.isIdentityPermittedOnResourceable(identity, Constants.PERMISSION_COACH, bgContext);
      if (isCoach) // don't check any further
      return true;
    }
    return false;
View Full Code Here

   */
  public boolean isIdentityParticipantInAnyLearningGroup(Identity identity) {
    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    Iterator iterator = learningGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      if (contextManager.isIdentityInBGContext(identity, bgContext, true, false)) return true;
    }
    return false;
  }
View Full Code Here

   */
  public boolean isIdentityParticipantInAnyRightGroup(Identity identity) {
    BGContextManager contextManager = BGContextManagerImpl.getInstance();
    Iterator iterator = rightGroupContexts.iterator();
    while (iterator.hasNext()) {
      BGContext bgContext = (BGContext) iterator.next();
      if (contextManager.isIdentityInBGContext(identity, bgContext, true, false)) return true;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.olat.group.context.BGContext

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.