Package com.xmultra.processor.db.cms.content

Examples of com.xmultra.processor.db.cms.content.Photo


        Element photoPkgElem =
            this.xmlParseUtils.getSingletonElement(pkgContentElem, "PhotoPackage");
        NodeList photoNodes = photoPkgElem.getElementsByTagName("Photo");
        int numPhotos = 0;
        Photo currentPhoto = null;
        if (photoNodes != null) {
          numPhotos = photoNodes.getLength();
        }
        for (int i = 0; i < numPhotos; i++) {
          currentPhoto = this.getPhotoFromPhotoElem((Element)photoNodes.item(i));
View Full Code Here


    cm.setMapToTaxonomy(this.getMapToTaxonomyFromCatMap(catMapElem));
    return cm;
  }

  private Photo getPhotoFromPhotoElem(Element photoElem) {
    Photo photo = null;
    if (photoElem != null) {
      photo = new Photo();
      photo.setImage(this.getImagePathFromPhoto(photoElem));
      photo.setCaption(this.getImageCaptionFromPhoto(photoElem));
      photo.setCredit(this.getImageCreditFromPhoto(photoElem));
      photo.setMimeType(this.getMimeTypeFromPhoto(photoElem));
      photo.setImageHeight(this.getImageHeightFromPhoto(photoElem));
      photo.setImageWidth(this.getImageWidthFromPhoto(photoElem));
      photo.setOrigImageName(this.getImageNameFromPhoto(photo.getImage()));
    }
    return photo;
  }
View Full Code Here

      }
      Console.displayDev("ContentPersistenceHandler",
                         "Photo package ID is: " + photoPkgId, true, "scb");
      currentPhotoPkg.setPackageId(photoPkgId);
      Iterator photos = currentPhotoPkg.getPhotos();
      Photo currentPhoto = null;
      int currentPhotoId = 0;
      while (photos.hasNext()) {
        currentPhoto = (Photo) photos.next();
        currentPhoto.setPubId(contentPackage.getPubId());
        currentPhoto.setSiteId(contentPackage.getSiteId());
        try {
          currentPhotoId = PhotoCSHelper.storePhoto(currentPhoto, photoPkgId, con);
        }
        catch (SQLException se) {
          PhotoPersistenceException ppe =
              new PhotoPersistenceException(se.getMessage(),
                                            "Error trying to insert photo");
          exceptionArrayList.add(ppe);
          currentPhotoId = 0;
        }
        Console.displayDev("ContentPersistenceHandler",
                           "Photo ID is: " + currentPhotoId, true, "scb");
        currentPhoto.setPhotoId(currentPhotoId);
      }
    }

    if (articleId != -1 && photoPkgId != -1) {
      try {
View Full Code Here

TOP

Related Classes of com.xmultra.processor.db.cms.content.Photo

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.