Class AbstractMediaMetaDataProvider

java.lang.Object
de.hybris.platform.mediaconversion.metadata.AbstractMediaMetaDataProvider
All Implemented Interfaces:
MediaMetaDataProvider, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
ImageMediaMetaDataProvider

public abstract class AbstractMediaMetaDataProvider extends Object implements MediaMetaDataProvider, org.springframework.beans.factory.BeanNameAware
General implementation of a MediaMetaDataProvider for common reuse.
  • Constructor Details

    • AbstractMediaMetaDataProvider

      public AbstractMediaMetaDataProvider()
  • Method Details

    • 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 File retrieveFile(MediaModel media) throws 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:
      IOException - if no such file is accessible.
    • getBeanName

      public String getBeanName()
    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • getModelService

      public ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getMediaService

      public MediaService getMediaService()
    • setMediaService

      public void setMediaService(MediaService mediaService)