Examples of addFields()


Examples of org.graylog2.plugin.Message.addFields()

        Map<String, Object> map = new HashMap<String, Object>();
        map.put("lol", "wut");
        map.put("aha", "pipes");

        lm.addFields(map);
        assertEquals(7, lm.getFields().size());
        assertEquals("wut", lm.getField("lol"));
        assertEquals("pipes", lm.getField("aha"));
        assertEquals("hai", lm.getField("ohai"));
    }
View Full Code Here

Examples of org.graylog2.plugin.Message.addFields()

        final Map<String, Object> fields = read(json);

        final Message message = new Message(buildShortMessage(fields),
                                            configuration.getString(CK_SOURCE),
                                            rawMessage.getTimestamp());
        message.addFields(fields);
        return message;
    }

    @VisibleForTesting
    protected Map<String, Object> read(String json) {
View Full Code Here

Examples of org.graylog2.plugin.Message.addFields()

            m.addField("full_message", new String(e.getRaw(), StandardCharsets.UTF_8));
        }


        final boolean expandStructuredData = configuration.getBoolean(CK_EXPAND_STRUCTURED_DATA);
        m.addFields(parseAdditionalData(e, expandStructuredData));

        return m;
    }

    private Map<String, Object> parseAdditionalData(SyslogServerEventIF msg, boolean expand) {
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.Form.addFields()

        LongTextField bodyField = new LongTextField("body", "Body:");
        bodyField.setValidators(notNull(), notEmpty());

        final Form form = new Form();
        form.addFields(toField, subjectField, bodyField);


        EmailFormRenderer renderer = GWT.create(EmailFormRenderer.class);
        Widget formPanel = renderer.render(form);
        formPanel.setWidth("300px");
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.Form.addFields()

        LongTextField bodyField = new LongTextField("body", "Body:");
        bodyField.setValidators(notNull(), notEmpty());
       
        final Form form = new Form();
        form.addFields(toField, subjectField, bodyField);

        FieldGroup group = new FieldGroup("to", "subject", "body");
        group.setHints(editorWidth("100%"));
        group.setHints("body", editorHeight("200px"));
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.Form.addFields()

        }};
        SelectField<Integer> cityField = new SelectField<Integer>("city", Integer.class, cities, "City");
        cityField.setValidators(notNull());

        final Form form = new Form();
        form.addFields(firstNameField, lastNameField, emailField, street1Field, street2Field, cityField);

        FieldGroup generalGroup = new FieldGroup("firstName", "lastName", "email");
//        generalGroup.setLayoutHints(new LayoutHints().setEditorWidth("100%"));

        FieldGroup addressGroup = new FieldGroup("Address", new String[]{"street1", "street2", "city"});
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.Form.addFields()

public class FormPanelSample extends Composite implements SamplePanel {

    public FormPanelSample() {

        Form form = new Form();
        form.addFields(
                new ShortTextField("firstName", "First Name"),
                new ShortTextField("lastName", "Last Name"),
                new IntegerField("age", "Age"),
                new ShortTextField("email", "Email").setValidators(Validators.email()),
                new ShortTextField("address.street", "Street"),
View Full Code Here

Examples of org.openntf.news.monster.meta.Story.addFields()

  }

  private Story entryToStory(SyndEntry entry) {
    Story story=new Story();
   
    story.addFields(storyFields);
   
    story.setLink(entry.getLink());
    story.setRedirectEnabled(isRedirectEnabled());
   
    Calendar date = Calendar.getInstance();
View Full Code Here

Examples of org.rssowl.core.internal.persist.search.NewsDocument.addFields()

          /* Return early on cancellation */
          if (monitor.isCanceled() || Owl.isShuttingDown())
            return false;

          NewsDocument document = new NewsDocument(news.get(i));
          document.addFields(indexDescription);
          document.getDocument().getField(SearchDocument.ENTITY_ID_TEXT).setValue(String.valueOf(i));
          indexWriter.addDocument(document.getDocument());
        }
        indexWriter.close();

View Full Code Here

Examples of org.springframework.data.solr.core.query.HighlightOptions.addFields()

  }

  private HighlightOptions extractHighlightOptions(SolrQueryMethod queryMethod, SolrParameterAccessor accessor) {
    HighlightOptions options = new HighlightOptions();
    if (queryMethod.hasHighlightFields()) {
      options.addFields(queryMethod.getHighlightFieldNames());
    }
    Integer fragsize = queryMethod.getHighlightFragsize();
    if (fragsize != null) {
      options.setFragsize(fragsize);
    }
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.