Package org.olat.collaboration

Examples of org.olat.collaboration.CollaborationToolsFactory


    return new CourseCalendars(courseKalendarWrapper, calendars);
  }

  private static void addCalendars(UserRequest ureq, List<BusinessGroup> groups, boolean isOwner, LinkProvider linkProvider,
      List<KalendarRenderWrapper> calendars) {
    CollaborationToolsFactory collabFactory = CollaborationToolsFactory.getInstance();
    CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
    for (BusinessGroup bGroup : groups) {
      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;
      Long lCalAccess = collabTools.lookupCalendarAccess();
View Full Code Here


        sourceBusinessGroup.getWaitingListEnabled(), sourceBusinessGroup.getAutoCloseRanksEnabled(), targetBgContext);
    // return immediately with null value to indicate an already take groupname
    if (newGroup == null) { return null; }
    // 2. copy tools
    if (copyCollabToolConfig) {
      CollaborationToolsFactory toolsF = CollaborationToolsFactory.getInstance();
      // get collab tools from original group and the new group
      CollaborationTools oldTools = toolsF.getOrCreateCollaborationTools(sourceBusinessGroup);
      CollaborationTools newTools = toolsF.getOrCreateCollaborationTools(newGroup);
      // copy the collab tools settings
      for (int i = 0; i < CollaborationTools.TOOLS.length; i++) {
        String tool = CollaborationTools.TOOLS[i];
        newTools.setToolEnabled(tool, oldTools.isToolEnabled(tool));
      }     
View Full Code Here

    }
    return calendars;
  }
 
  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;
      Long lCalAccess = collabTools.lookupCalendarAccess();
View Full Code Here

    ImportCalendarManager.reloadUrlImportedCalendars(ureq);
    return ImportCalendarManager.getImportedCalendarsForIdentity(ureq);
  }
 
  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;
      Long lCalAccess = collabTools.lookupCalendarAccess();
View Full Code Here

TOP

Related Classes of org.olat.collaboration.CollaborationToolsFactory

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.