Examples of Params


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

Examples of at.molindo.notify.model.Params

      }
    }

    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

Examples of at.molindo.notify.model.Params

      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

Examples of at.molindo.notify.model.Params

  @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

Examples of com.alibaba.citrus.turbine.dataresolver.Params

            return new ParameterResolver(context, defaultValues, paramName);
        }

        // 批量注入
        Params paramsAnnotation = context.getAnnotation(Params.class);

        if (paramsAnnotation != null) {
            Class<?> beanType = context.getTypeInfo().getRawType();
            FastConstructor fc = DataResolverUtil.getFastConstructor(beanType);
            return new ParametersResolver(context, fc);
View Full Code Here

Examples of com.alibaba.dubbo.examples.generic.api.IUserService.Params

    public static void main(String[] args) throws Exception {
        String config = GenericConsumer.class.getPackage().getName().replace('.', '/') + "/generic-consumer.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        context.start();
        IUserService userservice = (IUserService) context.getBean("userservice");
        User user = userservice.get(new Params("a=b"));
        System.out.println(user);
        System.in.read();
    }
View Full Code Here

Examples of com.echonest.api.v4.Params

        }
    }

    public void searchArtistByName(String name, int results)
            throws EchoNestException {
        Params p = new Params();
        p.add("name", name);
        p.add("results", results);

        List<Artist> artists = en.searchArtists(p);
        for (Artist artist : artists) {
            dumpArtist(artist);
            System.out.println();
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.Params

      {
       public String render(Buddy model, String property,
          ColumnData config, int rowIndex, int colIndex,
          ListStore<Buddy> store)
      {
        Params p = new Params();
          p.add("<img src=\"images/icons/fam/user.gif\" />");
          return Format.substitute("{0}", p);
      }

      });
    column.setFixed(true);
    columnConfigs.add(column);
   
    column = new ColumnConfig("nick","Nick",32)
    column.setRenderer(new GridCellRenderer<Buddy>()
      {
      public String render(Buddy model, String property,
          ColumnData config, int rowIndex, int colIndex,
          ListStore<Buddy> store)
      {
        Params p = new Params();
          p.add(model.get("nick"));
          return Format.substitute("<span style=\"vertical-align: middle;color:black;\">{0}</span>",
              p);
      }

      });
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.Params

      {
      public String render(ContactData model, String property,
          ColumnData config, int rowIndex, int colIndex,
          ListStore<ContactData> store)
      {
        Params p = new Params();
          String img = model.get(IMG);
          p.add(img);
          return Format.substitute("<img src=\"{0}\" style=\"width=32px;height:32px;cursor: pointer;\" />",p);
      }

      });
      avatarColumnConfig.setFixed(true);

       
      ColumnConfig statusImgColumnConfig = new ColumnConfig(STATUSIMG,"Status", 20);
      statusImgColumnConfig.setRenderer(new GridCellRenderer<ContactData>()
      {
      public String render(ContactData model, String property,
          ColumnData config, int rowIndex, int colIndex,
          ListStore<ContactData> store)
      {
        Params p = new Params();
          p.add(model.get(STATUSIMG));
          return Format.substitute("{0}", p);
      }

      });
      statusImgColumnConfig.setFixed(true);

      ColumnConfig groupColumnConfig = new ColumnConfig(USER_GROUP_DD,"Group", 0);
      groupColumnConfig.setHidden(true);  

      ColumnConfig aliasColumnConfig = new ColumnConfig(ALIAS,"Alias",32);
      aliasColumnConfig.setRenderer(new GridCellRenderer<ContactData>()
      {
      public String render(ContactData model, String property,
          ColumnData config, int rowIndex, int colIndex,
          ListStore<ContactData> store)
      {
        Params p = new Params();
          p.add(model.get(ALIAS));
          p.add(model.get(STATUSTEXT));
          return Format.substitute("<span style=\"vertical-align: middle;color:black;\">{0}</span><br/><span style=\"vertical-align: middle;color:gray;\">{1}</span>",
              p);
      }

      });
View Full Code Here

Examples of com.extjs.gxt.ui.client.util.Params

    getHeader().setText(title);
    // show header or not
    getHeader().el().selectNode("#" + getHeader().getId() + "-label").setVisible(title != null && !"".equals(title));

    if (toolTipConfig.getTemplate() != null) {
      Params p = toolTipConfig.getParams();
      if (p == null) p = new Params();
      p.set("text", text);
      p.set("title", title);
      toolTipConfig.getTemplate().overwrite(getBody().dom, p);
    } else {
      getBody().update(Util.isEmptyString(text) ? "&#160;" : text);
    }
  }
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.