Class ImageServiceImpl

  • All Implemented Interfaces:
    ImageService

    @Service
    public class ImageServiceImpl
    extends java.lang.Object
    implements ImageService
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageServiceImpl​(ImageSecurityService imageSecurityService, de.digitalcollections.commons.file.business.impl.resolved.ResolvedFileResourceServiceImpl fileResourceService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAttribution()  
      java.time.Instant getImageModificationDate​(java.lang.String identifier)  
      java.lang.String getLicense()  
      java.lang.String getLogoUrl()  
      int getMaxHeight()  
      int getMaxWidth()  
      void processImage​(java.lang.String identifier, de.digitalcollections.iiif.model.image.ImageApiSelector selector, de.digitalcollections.iiif.model.image.ImageApiProfile profile, java.io.OutputStream os)  
      void readImageInfo​(java.lang.String identifier, de.digitalcollections.iiif.model.image.ImageService info)  
      void setAttribution​(java.lang.String attribution)  
      void setLicense​(java.lang.String license)  
      void setLogoUrl​(java.lang.String logoUrl)  
      void setMaxHeight​(int maxHeight)  
      void setMaxWidth​(int maxWidth)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageServiceImpl

        public ImageServiceImpl​(@Autowired(required=false)
                                ImageSecurityService imageSecurityService,
                                @Autowired
                                de.digitalcollections.commons.file.business.impl.resolved.ResolvedFileResourceServiceImpl fileResourceService)
    • Method Detail

      • readImageInfo

        public void readImageInfo​(java.lang.String identifier,
                                  de.digitalcollections.iiif.model.image.ImageService info)
                           throws UnsupportedFormatException,
                                  java.lang.UnsupportedOperationException,
                                  de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException,
                                  java.io.IOException
        Specified by:
        readImageInfo in interface ImageService
        Throws:
        UnsupportedFormatException
        java.lang.UnsupportedOperationException
        de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
        java.io.IOException
      • processImage

        public void processImage​(java.lang.String identifier,
                                 de.digitalcollections.iiif.model.image.ImageApiSelector selector,
                                 de.digitalcollections.iiif.model.image.ImageApiProfile profile,
                                 java.io.OutputStream os)
                          throws InvalidParametersException,
                                 java.lang.UnsupportedOperationException,
                                 UnsupportedFormatException,
                                 de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException,
                                 java.io.IOException
        Specified by:
        processImage in interface ImageService
        Throws:
        InvalidParametersException
        java.lang.UnsupportedOperationException
        UnsupportedFormatException
        de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
        java.io.IOException
      • getImageModificationDate

        public java.time.Instant getImageModificationDate​(java.lang.String identifier)
                                                   throws de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
        Specified by:
        getImageModificationDate in interface ImageService
        Throws:
        de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
      • getLogoUrl

        public java.lang.String getLogoUrl()
      • setLogoUrl

        public void setLogoUrl​(java.lang.String logoUrl)
      • getAttribution

        public java.lang.String getAttribution()
      • setAttribution

        public void setAttribution​(java.lang.String attribution)
      • getLicense

        public java.lang.String getLicense()
      • setLicense

        public void setLicense​(java.lang.String license)
      • getMaxWidth

        public int getMaxWidth()
      • setMaxWidth

        public void setMaxWidth​(int maxWidth)
      • getMaxHeight

        public int getMaxHeight()
      • setMaxHeight

        public void setMaxHeight​(int maxHeight)