Package com.bhle.access.util

Examples of com.bhle.access.util.FedoraURI


    return entry;
  }

  private static List<Content> buildContents(URI uri) {
    List<Content> contents = new ArrayList<Content>();
    FedoraURI fedoraURI = new FedoraURI(uri);
    if (fedoraURI.getDsid() != null && fedoraURI.getSerialNumber() == null) {
      Content content = new Content();
      contents.add(content);
    }
    return contents;
  }
View Full Code Here


    return contents;
  }

  private static List<Link> buildLinks(URI uri) {
    List<Link> links = new ArrayList<Link>();
    FedoraURI fedoraURI = new FedoraURI(uri);
    if (fedoraURI.getDsid() != null) {
      buildNativeLink(fedoraURI, links);
      buildStaticLink(fedoraURI, links);
    }
    return links;
  }
View Full Code Here

    testOcrGeneration();
  }

  public void testThumbnailGeneration() throws MalformedURLException,
      IOException {
    FedoraURI fedoraURI = FedoraURI.getFedoraUri("a000test", "thumbnail");
    URI uri = StaticURI.toStaticFileUri(fedoraURI);
    InputStream in = uri.toURL().openStream();
    Assert.assertTrue(in.available() > 0);
    in.close();
  }
View Full Code Here

    in.close();
  }

  public void testBookInfoGeneration() throws MalformedURLException,
      IOException {
    FedoraURI fedoraURI = FedoraURI.getFedoraUri("a000test", "bookreader");
    URI uri = StaticURI.toStaticFileUri(fedoraURI);
    InputStream in = uri.toURL().openStream();
    Assert.assertTrue(in.available() > 0);
    in.close();
  }
View Full Code Here

    String json = SearchService.query("a000test", "Test OCR 2");
    logger.debug(json);
  }

  private void testPdfGeneration() throws MalformedURLException, IOException {
    FedoraURI fedoraURI = FedoraURI.getFedoraUri("a000test", "full_pdf");
    URI uri = StaticURI.toStaticFileUri(fedoraURI);
    InputStream in = uri.toURL().openStream();
    Assert.assertTrue(in.available() > 0);
    in.close();
  }
View Full Code Here

    Assert.assertTrue(in.available() > 0);
    in.close();
  }

  private void testJpegGeneration() throws MalformedURLException, IOException {
    FedoraURI fedoraURI = FedoraURI.getFedoraUri("a000test", "full_jpg");
    URI uri = StaticURI.toStaticFileUri(fedoraURI);
    InputStream in = uri.toURL().openStream();
    Assert.assertTrue(in.available() > 0);
    in.close();
  }
View Full Code Here

    Assert.assertTrue(in.available() > 0);
    in.close();
  }

  private void testOcrGeneration() throws MalformedURLException, IOException {
    FedoraURI fedoraURI = FedoraURI.getFedoraUri("a000test", "full_ocr");
    URI uri = StaticURI.toStaticFileUri(fedoraURI);
    InputStream in = uri.toURL().openStream();
    Assert.assertTrue(in.available() > 0);
    in.close();
  }
View Full Code Here

TOP

Related Classes of com.bhle.access.util.FedoraURI

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.