Class ImageService


  • @Named("imageService")
    @ApplicationScoped
    public class ImageService
    extends java.lang.Object
    Service class to work with images in photo repository
    Author:
    Yuriy Movchan Date: 11.04.2010
    • Constructor Detail

      • ImageService

        public ImageService()
    • Method Detail

      • constructImage

        public org.gluu.model.GluuImage constructImage​(GluuCustomPerson creator,
                                                       org.richfaces.model.UploadedFile uploadedFile)
      • constructImageWithThumbnail

        public org.gluu.model.GluuImage constructImageWithThumbnail​(GluuCustomPerson creator,
                                                                    org.richfaces.model.UploadedFile uploadedFile,
                                                                    int thumbWidth,
                                                                    int thumbHeight)
      • getBlankImageData

        public byte[] getBlankImageData()
      • getBlankPhotoData

        public byte[] getBlankPhotoData()
      • getBlankIconData

        public byte[] getBlankIconData()
      • isIconImage

        public boolean isIconImage​(org.gluu.model.GluuImage image)
      • getImageDate

        public byte[] getImageDate​(org.richfaces.model.UploadedFile uploadedFile)