Package org.olat.core.util.notifications

Examples of org.olat.core.util.notifications.PublisherData


      subsContext = secCallback.getSubscriptionContext();
      // if null, then no subscription is desired
      if (subsContext != null && (rootContainer instanceof OlatRelPathImpl)) {
        String businessPath = wControl.getBusinessControl().getAsString();
        String data = ((OlatRelPathImpl)rootContainer).getRelPath();
        PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(FolderModule.class), data, businessPath);
        csController = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
        folderContainer.put("subscription", csController.getInitialComponent());
      }
    }
   
View Full Code Here


  public ContextualSubscriptionController getContextualSubscriptionController(UserRequest ureq, WindowControl wControl) {
    ContextualSubscriptionController csc = null;
    if (getSubscriptionContext() != null) {
      if ((caller.equals(CalendarController.CALLER_COURSE) || caller.equals(CalendarManager.TYPE_COURSE)) && course != null) {
        String businessPath = wControl.getBusinessControl().getAsString();
        PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(CalendarManager.class), String.valueOf(course.getResourceableId()), businessPath);
        csc = new ContextualSubscriptionController(ureq, wControl, getSubscriptionContext(), pdata);
      }
      if ((caller.equals(CalendarController.CALLER_COLLAB) || caller.equals(CalendarManager.TYPE_GROUP)) && businessGroup != null) {
        String businessPath = wControl.getBusinessControl().getAsString();
        PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(CalendarManager.class), String.valueOf(businessGroup.getResourceableId()), businessPath);
        csc = new ContextualSubscriptionController(ureq, wControl, getSubscriptionContext(), pdata);
      }
    }
    return csc;
  }
View Full Code Here

   
    // if sc is null, then no subscription is desired
    if (subsContext != null) {
      // FIXME:fj: implement subscription callback for group forums
      String businessPath = wControl.getBusinessControl().getAsString();
      PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(DialogElement.class), "", businessPath);
      csCtr = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
      content.put("subscription", csCtr.getInitialComponent());
    }
    //configure and display table
    tableConf = new TableGuiConfiguration();
View Full Code Here

    breadCrumpCtr.addControllerListener(this);
    breadCrumpCtr.addLink(WikiPage.WIKI_INDEX_PAGE, WikiPage.WIKI_INDEX_PAGE);
    if(subsContext!=null)
    {
      String businnessPath = wControl.getBusinessControl().getAsString();
      PublisherData data = new PublisherData(OresHelper.calculateTypeName(WikiPage.class), null, businnessPath);
      cSubscriptionCtrl = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, data);
      content.put("subscription", cSubscriptionCtrl.getInitialComponent());
    }
    //TODO:gs:a allow to jump into certain wiki page from email link
View Full Code Here

    // if sc is null, then no subscription is desired
    if (subsContext != null) {
      // FIXME fj: implement subscription callback for group forums
      String businessPath = wControl.getBusinessControl().getAsString();
      String data = String.valueOf(forum.getKey());
      PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(Forum.class), data, businessPath);
      csc = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
      vcListTitles.put("subscription", csc.getInitialComponent());
    }

    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
View Full Code Here

   * @param course
   * @param the business path
   * @return the publisherdata
   */
  public PublisherData getAssessmentPublisherData(ICourse course, String businessPath) {
    return new PublisherData(CourseModule.ORES_COURSE_ASSESSMENT, String.valueOf(course.getCourseEnvironment().getCourseResourceableId()), businessPath);
  }
View Full Code Here

     
      // --- assessment notification subscription ---
      AssessmentNotificationsHandler anh = AssessmentNotificationsHandler.getInstance();
      SubscriptionContext subsContext = anh.getAssessmentSubscriptionContext(ureq.getIdentity(), course);
      if (subsContext != null) {
        PublisherData pData = anh.getAssessmentPublisherData(course, wControl.getBusinessControl().getAsString());
        csc = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pData);
        listenTo(csc); // cleanup on dispose
        index.put("assessmentSubscription", csc.getInitialComponent());
      }
     
View Full Code Here

   
    mainVC = createVelocityContainer("newusersNotifications");
   
    // subscribe/unsubscribe
    SubscriptionContext subContext = UsersSubscriptionManager.getInstance().getNewUsersSubscriptionContext();
    PublisherData publisherData = UsersSubscriptionManager.getInstance().getNewUsersPublisherData();
   
    subscriptionController = new ContextualSubscriptionController(ureq, getWindowControl(), subContext, publisherData);
    listenTo(subscriptionController);
    mainVC.put("newUsersSubscription", subscriptionController.getInitialComponent());
   
View Full Code Here

    }
  }
 
  public static ContextualSubscriptionController createContextualSubscriptionController(UserRequest ureq, WindowControl wControl, String folderPath, SubscriptionContext subsContext, Class callerClass) {
    String businessPath = wControl.getBusinessControl().getAsString();
    PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(callerClass), folderPath, businessPath);
    ContextualSubscriptionController contextualSubscriptionCtr = new ContextualSubscriptionController(ureq, wControl, subsContext, pdata);
    return contextualSubscriptionCtr;
  }
View Full Code Here

      // subscription
      subsContext = new SubscriptionContext(course, courseNode.getIdent());
      // if sc is null, then no subscription is desired
      if (subsContext != null) {
        String businessPath = wControl.getBusinessControl().getAsString();
        PublisherData pdata = new PublisherData(OresHelper.calculateTypeName(DENCourseNode.class), String.valueOf(course.getResourceableId()), businessPath);
        csc = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
        runVC.put("subscription", csc.getInitialComponent());
      }
     
      authorOptions = new AuthorOptionsForm(ureq, getWindowControl());
View Full Code Here

TOP

Related Classes of org.olat.core.util.notifications.PublisherData

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.