Package org.openmeetings.app.data.file.dto

Examples of org.openmeetings.app.data.file.dto.LibraryPresenationThumbs


  }   
 
  public LibraryPresenationThumbs createListObjectLibraryByFileDocumentThumbs(Element fileElement){
    try {
     
      LibraryPresenationThumbs thumbMap = new LibraryPresenationThumbs();
      thumbMap.setName(fileElement.getName());
     
      Integer k = 0;
      for ( Iterator<Element> i = fileElement.elementIterator(); i.hasNext(); ) {
        Element thumbElement = i.next();
        k++;
      }
     
      thumbMap.setThumbs(new LibraryPresentationThumb[k]);
     
     
      k = 0;
      for ( Iterator<Element> i = fileElement.elementIterator(); i.hasNext(); ) {
        Element thumbElement = i.next();
        //log.info("createListObjectLibraryByFileDocumentThumbs"+thumbElement);
        LibraryPresentationThumb singleThumb = new LibraryPresentationThumb();
        singleThumb.setName(thumbElement.getName());
        singleThumb.setFilename(thumbElement.getText());
        singleThumb.setLastmod(thumbElement.attribute("lastmod").getText());
        singleThumb.setSize(Long.valueOf(thumbElement.attribute("size").getText()).longValue());
        thumbMap.getThumbs()[k] = singleThumb;
        k++;
      }
     
     
      return thumbMap;
View Full Code Here


  }   
 
  public LibraryPresenationThumbs createListObjectLibraryByFileDocumentThumbs(Element fileElement){
    try {
     
      LibraryPresenationThumbs thumbMap = new LibraryPresenationThumbs();
      thumbMap.setName(fileElement.getName());
     
      Integer k = 0;
      for ( @SuppressWarnings("unchecked")
      Iterator<Element> i = fileElement.elementIterator(); i.hasNext(); i.next()) {
        k++;
      }
     
      thumbMap.setThumbs(new LibraryPresentationThumb[k]);
     
     
      k = 0;
      for ( @SuppressWarnings("unchecked")
      Iterator<Element> i = fileElement.elementIterator(); i.hasNext(); ) {
        Element thumbElement = i.next();
        //log.info("createListObjectLibraryByFileDocumentThumbs"+thumbElement);
        LibraryPresentationThumb singleThumb = new LibraryPresentationThumb();
        singleThumb.setName(thumbElement.getName());
        singleThumb.setFilename(thumbElement.getText());
        singleThumb.setLastmod(thumbElement.attribute("lastmod").getText());
        singleThumb.setSize(Long.valueOf(thumbElement.attribute("size").getText()).longValue());
        thumbMap.getThumbs()[k] = singleThumb;
        k++;
      }
     
     
      return thumbMap;
View Full Code Here

TOP

Related Classes of org.openmeetings.app.data.file.dto.LibraryPresenationThumbs

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.