Examples of BusinessGroup


Examples of org.olat.group.BusinessGroup

          Identity identity  = ManagerFactory.getManager().loadIdentityByKey(Long.parseLong(tokenKey));
          User user = identity.getUser();
          return user.getProperty(UserConstants.LASTNAME, locale) + " " + user.getProperty(UserConstants.FIRSTNAME, locale) ;
        }
        if ("BusinessGroup".equals(tokenType)) {
          BusinessGroup bg =BusinessGroupManagerImpl.getInstance().loadBusinessGroup(Long.parseLong(tokenKey), true);
          return bg.getName();
        }
       
        Translator translator = Util.createPackageTranslator(this.getClass(), locale);
        String translated = translator.translate(tokenType);
        if (translated == null || translated.length() > 64) {
View Full Code Here

Examples of org.olat.group.BusinessGroup

   
    ChiefControllerMessageEvent ccme = new ChiefControllerMessageEvent();
    ccme.setMsg("yes, it is a message");
    System.out.println("result:"+ObjectCloner.deepCopy(ccme));

    BusinessGroupModifiedEvent bgme = new BusinessGroupModifiedEvent("com", new BusinessGroup(){

      public Boolean getAutoCloseRanksEnabled() {
        return null;
      }
View Full Code Here

Examples of org.olat.group.BusinessGroup

      // learning groups
      List ownerGroups = cgm.getOwnedLearningGroupsFromAllContexts(identity);
      addCalendars(ureq, ownerGroups, true, clpc, calendars);
      List attendedGroups = cgm.getParticipatingLearningGroupsFromAllContexts(identity);
      for (Iterator ownerGroupsIterator = ownerGroups.iterator(); ownerGroupsIterator.hasNext();) {
        BusinessGroup ownerGroup = (BusinessGroup) ownerGroupsIterator.next();
        if (attendedGroups.contains(ownerGroup))
          attendedGroups.remove(ownerGroup);
      }
      addCalendars(ureq, attendedGroups, false, clpc, calendars);
View Full Code Here

Examples of org.olat.group.BusinessGroup

 
  private void addCalendars(UserRequest ureq, List groups, boolean isOwner, LinkProvider linkProvider, List calendars) {
    CollaborationToolsFactory collabFactory = CollaborationToolsFactory.getInstance();
    CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
    for (Iterator iter = groups.iterator(); iter.hasNext();) {
      BusinessGroup bGroup = (BusinessGroup) 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

Examples of org.olat.group.BusinessGroup

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

Examples of org.olat.group.BusinessGroup

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

Examples of org.olat.group.BusinessGroup

    Manager securityManager = ManagerFactory.getManager();
    List groups = gm.getAllLearningGroupsFromAllContexts();

    Iterator iter = groups.iterator();
    while (iter.hasNext()) {
      BusinessGroup group = (BusinessGroup) iter.next();
      SecurityGroup participants = group.getPartipiciantGroup();
      List ids = securityManager.getIdentitiesOfSecurityGroup(participants);
      identites.addAll(ids);
    }
    return identites;
  }
View Full Code Here

Examples of org.olat.group.BusinessGroup

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

Examples of org.olat.group.BusinessGroup

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

Examples of org.olat.group.BusinessGroup

      businessPath = "[RepositoryEntry:" + re.getKey().toString() + "]"
        + "[CourseNode:" + publisher.getSubidentifier() + "]";
    } else {
      // resName = 'BusinessGroup' or 'FileResource.WIKI'
      OLATResourceable ores = OresHelper.createOLATResourceableInstance(publisher.getResName(), resId);
      BusinessGroup bGroup = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(resId, false);
      if (bGroup==null) {
        // Wiki as Repo-Ressource
        RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntry(ores,false);
        if (re != null) {
          businessPath = "[RepositoryEntry:" + re.getKey().toString() + "]"
          + "["+re.getOlatResource().getResourceableTypeName()+":" + re.getResourceableId() + "]";
        } else {
          //repo entry not found, delete publisher
          logInfo("deleting publisher with key; "+publisher.getKey(), null);
          //NotificationsManager.getInstance().delete(publisher);
          return null;
        }
      } else {
        businessPath = "[BusinessGroup:" + bGroup.getKey().toString() + "][wiki:0]";       
      }
    }
    publisher.setBusinessPath(businessPath);
    return publisher;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.