Class ImageRepository


  • @Named("imageRepository")
    @ApplicationScoped
    public class ImageRepository
    extends java.lang.Object
    Manage images in photo repository
    Author:
    Yuriy Movchan Date: 11.03.2010
    • Constructor Detail

      • ImageRepository

        public ImageRepository()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • initFileTypesMap

        public void initFileTypesMap()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addThumbnail

        public boolean addThumbnail​(org.gluu.model.GluuImage image,
                                    int thumbWidth,
                                    int thumbHeight)
                             throws java.lang.Exception
        Creates image in repository
        Parameters:
        image - image file
        Returns:
        true if image was added successfully, false otherwise
        Throws:
        java.lang.Exception
      • getBlankImage

        public byte[] getBlankImage()
      • getBlankPhoto

        public byte[] getBlankPhoto()
      • getBlankIcon

        public byte[] getBlankIcon()
      • isIconImage

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