Examples of Olef


Examples of com.bhle.access.util.Olef

  }

  private static BookInfo buildBookInfo(String guid) throws IOException {
    BookInfo book = new BookInfo();
    book.setGuid(guid);
    Olef olef = getOlef(guid);
    book.setOlef(olef);
    book.setTitle(olef.getTitle());
    book.setUrl(DOMAIN_NAME + "/portal/bhle-view/bhle:" + GUID_BANK_ID
        + "-" + guid);
    setEntryPage(book, olef);
    return book;
  }
View Full Code Here

Examples of com.bhle.access.util.Olef

  private static void buildTableOfContent(BookInfo book, String guid) {
  }

  private static void buildPageInfo(BookInfo book, String guid) {
    Olef olef = book.getOlef();
    String[] pageUris = FedoraUtil.getAllMembers(
        FedoraURI.getPidFromGuid(guid), FedoraUtil.PAGE_MODEL);
    Arrays.sort(pageUris);
    for (int i = 0; i < pageUris.length; i++) {
      PageInfo page = new PageInfo();
      page.setIndex(i);
      page.setName(olef.getPageName(i));
      page.setType(olef.getPageType(i));
      setPageUrl(pageUris[i], page);
      setPageWidthAndHeight(pageUris[i], page);
      page.setScientificNames(olef.getScientificNames(i));
      setPageOcr(pageUris[i], page);
      book.addPage(page);
    }

  }
View Full Code Here

Examples of com.bhle.access.util.Olef

  }

  private static Olef getOlef(String guid) throws IOException {
    FedoraURI olefUri = FedoraURI.getFedoraUri(guid, "OLEF");
    URI olefHttpUri = StaticURI.toStaticFileUri(olefUri);
    return new Olef(olefHttpUri.toURL());
  }
View Full Code Here

Examples of com.bhle.access.util.Olef

  private static String DSID = "THUMBNAIL";

  public static InputStream build(String guid) throws IOException {
    logger.debug("Build Thumbnail");

    Olef olef = getOlef(guid);

    String entryPage = olef.getEntryPage();
    if (entryPage.equals("")) {
      entryPage = "1";
    }
    int entryPageSequence = Integer.valueOf(entryPage);
    FedoraURI entryPageUri = FedoraURI.getFedoraUri(guid,
View Full Code Here

Examples of com.bhle.access.util.Olef

  private static Olef getOlef(String guid) {
    try {
      FedoraURI olefUri = FedoraURI.getFedoraUri(guid, "OLEF");
      URI olefHttpUri = StaticURI.toStaticHttpUri(olefUri);
      return new Olef(olefHttpUri.toURL());
    } catch (IOException e) {
      e.printStackTrace();
    }
    return null;
  }
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.