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 java.lang.Object implements MediaMetaDataProvider, org.springframework.beans.factory.BeanNameAware
General implementation of aMediaMetaDataProviderfor common reuse.
-
-
Constructor Summary
Constructors Constructor Description AbstractMediaMetaDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBeanName()MediaServicegetMediaService()ModelServicegetModelService()protected voidremoveAll(MediaModel media)Removes allMediaMetaDataModels associated with the givenMediaModeland managed by the this Provider (this.getBeanName().equals(meta.getProvider())).protected java.io.FileretrieveFile(MediaModel media)Locates a localFilefor the givenMediaModelor throws aIOExceptionif no such file is accessible.voidsetBeanName(java.lang.String name)voidsetMediaService(MediaService mediaService)voidsetModelService(ModelService modelService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.mediaconversion.metadata.MediaMetaDataProvider
extractMetaData, getGroupNames
-
-
-
-
Method Detail
-
removeAll
protected void removeAll(MediaModel media)
Removes allMediaMetaDataModels associated with the givenMediaModeland managed by the this Provider (this.getBeanName().equals(meta.getProvider())).- Parameters:
media- theMediaModelto remove the metadata from.
-
retrieveFile
protected java.io.File retrieveFile(MediaModel media) throws java.io.IOException
Locates a localFilefor the givenMediaModelor throws aIOExceptionif no such file is accessible.- Parameters:
media- theMediaModelin 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:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getMediaService
public MediaService getMediaService()
-
setMediaService
public void setMediaService(MediaService mediaService)
-
-