Examples of Subscriber


Examples of org.exolab.jms.config.Subscriber

                    _destinations.createDestination(destination);

                    // register the subscribers for each topic.
                    int scount = topic.getSubscriberCount();
                    for (int sindex = 0; sindex < scount; sindex++) {
                        Subscriber subscriber = topic.getSubscriber(sindex);
                        _consumers.subscribe(destination,
                                             subscriber.getName(), null);
                    }
                } catch (JMSException exception) {
                    _log.error("Failed to register persistent topic " + name,
                               exception);
                }
View Full Code Here

Examples of org.jresearch.gossip.beans.subscription.Subscriber

            st.setInt(1, Integer.parseInt(tid));
            st.setString(2, uname);
            rs = st.executeQuery();

            while (rs.next()) {
                Subscriber s = new Subscriber();
                s.setEmail(rs.getString("user_mail"));
                s.setName(rs.getString("user_name"));
                list.add(s);
            }
        } finally {
            if (rs != null) {
                rs.close();
View Full Code Here

Examples of org.jresearch.gossip.beans.subscription.Subscriber

                        .getAttribute(IConst.CONTEXT.MAIL_QUEUE);

                Iterator it = subscrbe.iterator();
                BanGuard guard = BanGuard.getInstance();
                while (it.hasNext()) {
                    Subscriber s = (Subscriber) it.next();
                    if (!guard.checkBan(s.getEmail(), BanType.EMAIL)) {
                        messArgs[0] = HtmlCodec.encode(s.getName());

                        queue.push(new MailMessage(messages.getMessage(
                                "mails.NEW_MESSAGE", messArgs), messages
                                .getMessage("mails.NEW_MESSAGE_SUBJ"), config
                                .get(IConst.CONFIG.ADMINMAIL), messages
                                .getMessage("mails.FORUM_ADMIN"), s.getEmail(),
                                s.getName()));
                    }
                }
            }

            //subscribe user to e-mail from this thread...
View Full Code Here

Examples of org.jresponder.domain.Subscriber

        String myEmail = p.getString("email");
        Map<String,Object> myAttributesMap = p.getProps("props", null);
        String myMessageGroupName = p.getString("message_group_name");
       
        Subscriber mySubscriber =
            subscriberService.subscribe(myEmail, myAttributesMap, myMessageGroupName);
       
        return webApiUtil.jsonRpcResult(aId, aCallback, PropUtil.getInstance().mkprops("jr_subscriber_id", mySubscriber.getId()));
      }
      catch (ServiceException e) {
        return webApiUtil.jsonRpcError(aId, aCallback, e);
      }
View Full Code Here

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

    // subscriberIdentity instead to make this controller also be usable in the
    // admin environment (admins might change notifications for a user)
    NotificationsManager man = NotificationsManager.getInstance();
    List<Subscriber> subs = man.getSubscribers(subscriberIdentity);
    for(Iterator<Subscriber> subIt=subs.iterator(); subIt.hasNext(); ) {
      Subscriber sub = subIt.next();
      if(!man.isPublisherValid(sub.getPublisher())) {
        subIt.remove();
      }
    }
   
    subscriptionsTableModel.setObjects(subs);
View Full Code Here

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

  protected void event(UserRequest ureq, Controller source, Event event) {
    if (source == subscriptionsTableCtr) {
      if (event.getCommand().equals(Table.COMMANDLINK_ROWACTION_CLICKED)) {
        TableEvent te = (TableEvent) event;
        String actionid = te.getActionId();
        Subscriber sub = subscriptionsTableModel.getObject(te.getRowId());
        if (actionid.equals("launch")) {
          // User want to go to the subscription source, e.g. the forum or the
          // folder
          NotificationUIFactory.launchSubscriptionResource(ureq, getWindowControl(), sub);
        } else if (actionid.equals("del")) {
          delYesNoC = activateYesNoDialog(ureq, null, translate("confirm.delete"), delYesNoC);
          delYesNoC.setUserObject(sub);
          return;
        }
      }
    } else if (source == delYesNoC) {
      if (DialogBoxUIFactory.isYesEvent(event)) { // ok
        // Remove subscription and update data model
        Subscriber sub = (Subscriber) delYesNoC.getUserObject();
        NotificationsManager.getInstance().unsubscribe(sub);
        updateSubscriptionsDataModel();
        showInfo("info.notification.deleted");
        // Notify parent controller
        fireEvent(ureq, Event.CHANGED_EVENT);
View Full Code Here

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

 
  private List<PortletEntry> getAllPortletEntries() {
    notificationsList = man.getValidSubscribers(identity);
    // calc subscriptioninfo for all subscriptions and, if only those with news are to be shown, remove the other ones
    for (Iterator<Subscriber> it_subs = notificationsList.iterator(); it_subs.hasNext();) {
      Subscriber subscriber = it_subs.next();
      Publisher pub = subscriber.getPublisher();
      NotificationsHandler notifHandler = man.getNotificationsHandler(pub);
      SubscriptionInfo subsInfo = notifHandler.createSubscriptionInfo(subscriber, locale, compareDate);
      if (!subsInfo.hasNews()) {
        it_subs.remove();
      }
View Full Code Here

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

  protected void reloadModel(SortingCriteria sortingCriteria) {
    if (sortingCriteria.getSortingType() == SortingCriteria.AUTO_SORTING) {
    notificationsList = man.getValidSubscribers(identity);
    // calc subscriptioninfo for all subscriptions and, if only those with news are to be shown, remove the other ones
    for (Iterator<Subscriber> it_subs = notificationsList.iterator(); it_subs.hasNext();) {
      Subscriber subscriber = it_subs.next();
      Publisher pub = subscriber.getPublisher();
      try {
        NotificationsHandler notifHandler = man.getNotificationsHandler(pub);
        SubscriptionInfo subsInfo = notifHandler.createSubscriptionInfo(subscriber, locale, compareDate);
        if (!subsInfo.hasNews()) {
          it_subs.remove();
View Full Code Here

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

      if (event.getCommand().equals(Table.COMMANDLINK_ROWACTION_CLICKED)) {
        TableEvent te = (TableEvent) event;
        String actionid = te.getActionId();
        if (actionid.equals(CMD_LAUNCH)) {
          int rowid = te.getRowId();
          Subscriber sub = notificationListModel.getSubscriberAt(rowid);
          if (actionid.equals(CMD_LAUNCH)) {
            Publisher pub = sub.getPublisher();
            if (!man.isPublisherValid(pub)) {
              getWindowControl().setError(getTranslator().translate("error.publisherdeleted"));
            } else {           
              String resName = pub.getResName();
              Long resId = pub.getResId();
View Full Code Here

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

 
  private void removeSubscriptions(Identity identity, BusinessGroup group) {
    NotificationsManager notiMgr = NotificationsManager.getInstance();
    List<Subscriber> l = notiMgr.getSubscribers(identity);
    for (Iterator iterator = l.iterator(); iterator.hasNext();) {
      Subscriber subscriber = (Subscriber) iterator.next();
      Long resId = subscriber.getPublisher().getResId();
      Long groupKey = group.getKey();
      if (resId != null && groupKey != null && resId.equals(groupKey)) {
        notiMgr.unsubscribe(subscriber);
      }
    }
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.