Class AbstractMediaMetaDataProvider

    • Constructor Detail

      • AbstractMediaMetaDataProvider

        public AbstractMediaMetaDataProvider()
    • Method Detail

      • removeAll

        protected void removeAll​(MediaModel media)
        Removes all MediaMetaDataModels associated with the given MediaModel and managed by the this Provider (this.getBeanName().equals(meta.getProvider())).
        Parameters:
        media - the MediaModel to remove the metadata from.
      • retrieveFile

        protected java.io.File retrieveFile​(MediaModel media)
                                     throws java.io.IOException
        Locates a local File for the given MediaModel or throws a IOException if no such file is accessible.
        Parameters:
        media - the MediaModel in question.
        Returns:
        a local (readable) File representation for the given MediaModel.
        Throws:
        java.io.IOException - if no such file is accessible.
      • getBeanName

        public java.lang.String getBeanName()
      • setBeanName

        public void setBeanName​(java.lang.String name)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • setModelService

        public void setModelService​(ModelService modelService)
      • setMediaService

        public void setMediaService​(MediaService mediaService)