Package ch.entwine.weblounge.common.impl.content.page

Examples of ch.entwine.weblounge.common.impl.content.page.PageSearchResultItemImpl


  public void setUp() throws Exception {
    setUpPrerequisites();
    metadata = new ArrayList<ResourceMetadata<?>>();
    pageXml = IOUtils.toString(getClass().getResourceAsStream("/page.xml"));
    ResourceURI uri = new PageURIImpl(site, path, id, Resource.LIVE);
    pageItem = new PageSearchResultItemImpl(uri, url, relevance, source, metadata);
    item = pageItem;
    item.setTitle(title);
    item.setPreview(previewData);
    item.setPreviewRenderer(renderer);
    pageItem.setResourceXml(pageXml);
View Full Code Here


    // FIXME Add exception handling
    ResourceURI uri = new PageURIImpl(site, path, id, version);
    WebUrl url = new WebUrlImpl(site, path);

    PageSearchResultItemImpl result = new PageSearchResultItemImpl(uri, url, relevance, site, metadata);

    if (metadataMap.get(XML) != null)
      result.setResourceXml((String) metadataMap.get(XML).getValues().get(0));
    if (metadataMap.get(HEADER_XML) != null)
      result.setPageHeaderXml((String) metadataMap.get(HEADER_XML).getValues().get(0));
    if (metadataMap.get(PREVIEW_XML) != null)
      result.setPagePreviewXml((String) metadataMap.get(PREVIEW_XML).getValues().get(0));

    return result;
  }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.content.page.PageSearchResultItemImpl

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.