Examples of Document


Examples of org.springframework.data.elasticsearch.annotations.Document

    this.context = new StandardEvaluationContext();
    this.parser = new SpelExpressionParser();

    Class<T> clazz = typeInformation.getType();
    if (clazz.isAnnotationPresent(Document.class)) {
      Document document = clazz.getAnnotation(Document.class);
      Assert.hasText(document.indexName(),
          " Unknown indexName. Make sure the indexName is defined. e.g @Document(indexName=\"foo\")");
      this.indexName = typeInformation.getType().getAnnotation(Document.class).indexName();
      this.indexType = hasText(document.type()) ? document.type() : clazz.getSimpleName().toLowerCase(Locale.ENGLISH);
      this.shards = typeInformation.getType().getAnnotation(Document.class).shards();
      this.replicas = typeInformation.getType().getAnnotation(Document.class).replicas();
      this.refreshInterval = typeInformation.getType().getAnnotation(Document.class).refreshInterval();
      this.indexStoreType = typeInformation.getType().getAnnotation(Document.class).indexStoreType();
    }
View Full Code Here

Examples of org.springframework.data.mongodb.core.mapping.Document

   * @throws IllegalArgumentException in case of missing {@link Document} annotation marking root entities.
   */
  public List<IndexDefinitionHolder> resolveIndexForEntity(final MongoPersistentEntity<?> root) {

    Assert.notNull(root, "Index cannot be resolved for given 'null' entity.");
    Document document = root.findAnnotation(Document.class);
    Assert.notNull(document, "Given entity is not collection root.");

    final List<IndexDefinitionHolder> indexInformation = new ArrayList<MongoPersistentEntityIndexResolver.IndexDefinitionHolder>();
    indexInformation.addAll(potentiallyCreateCompoundIndexDefinitions("", root.getCollection(), root));
    indexInformation.addAll(potentiallyCreateTextIndexDefinition(root));
View Full Code Here

Examples of org.springmodules.examples.workflow.osworkflow.model.Document

    return new ModelAndView("underway", "ids", queryResults);
  }

  public ModelAndView approve(HttpServletRequest request, HttpServletResponse response) {
    Document document = this.workflow.getCurrentDocument();
    this.workflow.approveCurrentDocument();

    return new ModelAndView("approved", "document", document);
  }
View Full Code Here

Examples of org.spw.model.Document

        return "success";
    }
   
    public String buttonRemove_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        Document document;
        if (rk != null) {
            document = (Document)list.getObject(rk);
        } else {
            return null;
        }

        String filename = document.getDocumentLink();
        File file = new File(DocumentFileManager.
                getFilenameOnServer(filename, getServerPath()));
        file.delete();
        removeDocument(document);
       
View Full Code Here

Examples of org.stringtree.http.Document

        client = new HTTPClient();
    }
   
    public void testPut() throws IOException {
      MultipartForm form = new MultipartForm();
        form.put("first", new Document("primary"));
        form.put("second", new Document("secondary"));
System.err.println("posting " + form.dump());
        Document result = client.post(baseURL + "multi", form);
        assertEquals("200", result.getHeader(HTTPClient.HTTP_RESPONSE_CODE));
    }
View Full Code Here

Examples of org.structr.rest.serialization.html.Document

  }

  public StructrJsonHtmlWriter(final SecurityContext securityContext, final PrintWriter rawWriter) {

    this.securityContext = securityContext;
    this.doc = new Document(rawWriter);
  }
View Full Code Here

Examples of org.tautua.markdownpapers.ast.Document

    public void renderAndCompare(String mdFile, String txtFile) throws Exception {
        StringWriter sw = new StringWriter();
        try (InputStreamReader stream = new InputStreamReader(PlaintextTest.class.getResourceAsStream(mdFile))) {
            Parser parser = new Parser(stream);
            Document document = parser.parse();
            PlaintextMarkdownVisitor emitter = new PlaintextMarkdownVisitor(new WordWrap(sw));
            document.accept(emitter);
        }
       
        StringBuilder sb = new StringBuilder();
       
        try (BufferedReader r = new BufferedReader(new InputStreamReader(PlaintextTest.class.getResourceAsStream(txtFile)))){
View Full Code Here

Examples of org.terrier.indexing.Document

      }
      assert documentCollection != null;
      while (documentCollection.nextDocument())
      {
        // Get Document
        Document tempDoc = documentCollection.getDocument();
        if (tempDoc != null)
        {
          // Retrieve Document's Unique ID
          if (tempDoc.getProperty("docno") == null)
          {
            throw new IOException("Collection returned null as docno");
          }
          else
          {
            DocID.set(tempDoc.getProperty("docno"));
          }
          document.setObject(tempDoc);
          currentDocument++;
          return true;
        }       
View Full Code Here

Examples of org.thrudb.thrudex.Document

  }

  public void testKeywordSearch() {

    try {
      Document d1 = this.newDocument("doc1");
      this.addField(d1, "title", "title number 1", FieldType.TEXT);
      this.addField(d1, "category", "science_fiction", FieldType.KEYWORD);

      index.put(d1);
View Full Code Here

Examples of org.thymeleaf.dom.Document



    public final List<Node> parseFragment(final Configuration configuration, final String fragment) {
        final String wrappedFragment = wrapFragment(fragment);
        final Document document =
                parseTemplate(
                        configuration,
                        null, // documentName
                        new StringReader(wrappedFragment));
        return unwrapFragment(document);
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.