Examples of RssWidgetDescriptor


Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new PrivateRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
    DashboardSettings dashboardSettings = DashboardSettings.get();
    dashboardSettings.setIncludeJQuery(false);
    dashboardSettings.setIncludeJQueryUI(false);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

      ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_MYROOMS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new PrivateRoomsWidgetDescriptor()));
      }
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_RSS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      dashboardContext.getDashboardPersiter().save(dashboard);
    } else {
      for (Widget w : dashboard.getWidgets()) {
        w.init();
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

      ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
      if ("1".equals(cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_MYROOMS_KEY, Integer.class, "0"))) {
        dashboard.addWidget(widgetFactory.createWidget(new PrivateRoomsWidgetDescriptor()));
      }
      if ("1".equals(cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_RSS_KEY, Integer.class, "0"))) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      dashboardContext.getDashboardPersiter().save(dashboard);
    } else {
      for (Widget w : dashboard.getWidgets()) {
        w.init();
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new PrivateRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
    DashboardSettings dashboardSettings = DashboardSettings.get();
    dashboardSettings.setIncludeJQuery(false);
    dashboardSettings.setIncludeJQueryUI(false);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

      dashboard.addWidget(widgetFactory.createWidget(new StartWidgetDescriptor()));
      if (confShowMyRooms) {
        dashboard.addWidget(widgetFactory.createWidget(new MyRoomsWidgetDescriptor()));
      }
      if (confShowRss) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      save = true;
    } else {
      for (Iterator<Widget> iter = dashboard.getWidgets().iterator(); iter.hasNext();) {
        Widget w = iter.next();
        // PrivateRoomWidget is stored in the profile of user. Now, Show_MyRooms_key is disable.
        if (w.getClass().equals(MyRoomsWidget.class)) {
          existMyRoomWidget = true;
          if (!confShowMyRooms) {
            iter.remove();
          }
        } else if ((w.getClass().equals(RssWidget.class))) {
          // RssWidget is stored in the profile of user. Now, Show_RSS_Key is disable.
          existRssWidget = true;
          if (!confShowRss) {
            iter.remove();
          }
        } else {
          w.init();
        }
      }
      // PrivateRoomWidget was deleted from profile and now it's enabled. It's added again to dashboard.
      if (!existMyRoomWidget && confShowMyRooms && !dashboard.isWidgetMyRoomsDeleted()) {
        dashboard.addWidget(widgetFactory.createWidget(new MyRoomsWidgetDescriptor()));
        save = true;
      }
      // RssWidget was deleted from profile and now it's enabled. It's added again to dashboard.
      if (!existRssWidget && confShowRss && !dashboard.isWidgetRssDeleted()) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
        save = true;
      }
    }
    if (save) {
      dashboardContext.getDashboardPersiter().save(dashboard);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new MyRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
    DashboardSettings dashboardSettings = DashboardSettings.get();
    dashboardSettings.setIncludeJQuery(false);
    dashboardSettings.setIncludeJQueryUI(false);
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

      ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_MYROOMS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new PrivateRoomsWidgetDescriptor()));
      }
      if (1 == cfgDao.getConfValue(CONFIG_DASHBOARD_SHOW_RSS_KEY, Integer.class, "0")) {
        dashboard.addWidget(widgetFactory.createWidget(new RssWidgetDescriptor()));
      }
      dashboardContext.getDashboardPersiter().save(dashboard);
    } else {
      for (Widget w : dashboard.getWidgets()) {
        w.init();
View Full Code Here

Examples of org.apache.openmeetings.web.user.dashboard.RssWidgetDescriptor

    dashboardContext.setDashboardPersiter(new UserDashboardPersister());
    WidgetRegistry widgetRegistry = dashboardContext.getWidgetRegistry();
    widgetRegistry.registerWidget(new PrivateRoomsWidgetDescriptor());
    widgetRegistry.registerWidget(new WelcomeWidgetDescriptor());
    widgetRegistry.registerWidget(new StartWidgetDescriptor());
    widgetRegistry.registerWidget(new RssWidgetDescriptor());
    // add dashboard context injector
    getComponentInstantiationListeners().add(new DashboardContextInjector(dashboardContext));
    DashboardSettings dashboardSettings = DashboardSettings.get();
    dashboardSettings.setIncludeJQuery(false);
    dashboardSettings.setIncludeJQueryUI(false);
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.