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 aMediaMetaDataProvider
for common reuse.
-
-
Constructor Summary
Constructors Constructor Description AbstractMediaMetaDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBeanName()
MediaService
getMediaService()
ModelService
getModelService()
protected void
removeAll(MediaModel media)
Removes allMediaMetaDataModel
s associated with the givenMediaModel
and managed by the this Provider (this.getBeanName().equals(meta.getProvider())
).protected java.io.File
retrieveFile(MediaModel media)
Locates a localFile
for the givenMediaModel
or throws aIOException
if no such file is accessible.void
setBeanName(java.lang.String name)
void
setMediaService(MediaService mediaService)
void
setModelService(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 allMediaMetaDataModel
s associated with the givenMediaModel
and managed by the this Provider (this.getBeanName().equals(meta.getProvider())
).- Parameters:
media
- theMediaModel
to remove the metadata from.
-
retrieveFile
protected java.io.File retrieveFile(MediaModel media) throws java.io.IOException
Locates a localFile
for the givenMediaModel
or throws aIOException
if no such file is accessible.- Parameters:
media
- theMediaModel
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 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)
-
-