Package com.netfever.site.dynovisz.web.spring.data

Examples of com.netfever.site.dynovisz.web.spring.data.SearchResult


    final List<SearchResult> list = new ArrayList<>();
    final SimpleDateFormat fmt = new SimpleDateFormat("dd-MM-yyy");
    final SimpleDateFormat fmtHour = new SimpleDateFormat("hh:mm:ss");
    for (SolrDoc doc: resp.getResponse().getDocs()) {
      final SearchResult sr = new SearchResult();
     
      Date videoDate = doc.getVideodate();
      if (videoDate == null) {
        videoDate = new Date();
      }
      sr.setDate(fmt.format(videoDate));
     
      sr.setId(doc.getId());
      //sr.setImageUrl("thumbnail.spr?id=" + doc.getId());
      sr.setImageUrl(doc.getEncodedthumbnail());
      sr.setLanguage(doc.getLanguage());
      sr.setNumView("" + doc.getNumberOfView());
      sr.setPageUrl(doc.getPageurl());
      sr.setTitle(doc.getTitle());
      sr.setVideoLength(fmtHour.format(doc.getVideoLength()));
     
      list.add(sr);
    }

    searchForm.setResult(list);
View Full Code Here

TOP

Related Classes of com.netfever.site.dynovisz.web.spring.data.SearchResult

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.