Package at.molindo.notify.model

Examples of at.molindo.notify.model.Params


  @Override
  public Dispatch create(Notification notification, IPreferences prefs, IChannelPreferences cPrefs)
      throws RenderException {

    Params params = new Params();

    params.setAll(prefs.getParams());
    params.setAll(cPrefs.getParams());
    params.setAll(notification.getParams());

    params.set(INotifyService.NOTIFICATION, notification);
    params.set(INotifyService.PREFERENCES, prefs);
    params.set(INotifyService.CHANNEL_PREFERENCES, cPrefs);

    if (notification.getConfirmation() != null) {
      if (_notifyUrlFactory != null) {
        params.set(INotifyService.CONFIRMATION_URL,
            _notifyUrlFactory.toConfirmPath(notification.getConfirmation()));
      } else {
        log.warn("can't set confirmation URL without NotifyFilter");
      }
    }
View Full Code Here


      }
    }

    if (channel.getNotificationTypes().contains(Type.PRIVATE) && !channel.isAuthorized(userId, prefs)) {
      response.sendError(403);
    } else if (channel.isConfigured(new Params(prefs.getParams()))) {
      try {
        String output = channel.pull(userId, prefs);
        if (StringUtils.empty(output)) {
          response.sendError(404);
        } else {
View Full Code Here

      return null;
    }

    IChannelPreferences cPrefs = channel.newDefaultPreferences();

    IParams fullParams = new Params().setAll(cPrefs.getParams()).setAll(params);

    StringBuilder buf = new StringBuilder(_baseUrl);
    buf.append(_mountPath).append(_pullPrefix).append(channelId).append("/").append(userId);
    buf.append("?");
    for (final ParamValue pv : fullParams) {
View Full Code Here

  @Override
  public Message render(String key, Version version, IParams params) throws RenderException {

    Message mRaw = _renderService.render(key, version, params);

    Params masterParams = new Params();
    if (_masterParams != null) {
      masterParams.setAll(_masterParams);
    }
    masterParams.set(getMasterTemplateMessageParam(), mRaw);

    Boolean renderMaster = params.get(INotifyService.RENDER_MASTER_TEMPLATE);

    Message m;
    if (!Boolean.FALSE.equals(renderMaster)) {
View Full Code Here

TOP

Related Classes of at.molindo.notify.model.Params

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.