Interface MediaMetaDataProvider
-
- All Known Implementing Classes:
AbstractMediaMetaDataProvider
,ImageMediaMetaDataProvider
public interface MediaMetaDataProvider
Pluggable strategy to extract metadata from a givenMediaModel
.All spring beans implementing this interface will be called to extract and store the metadata they are responsible for. These bean will be called either by a cron job, task, or action automatically.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
extractMetaData(MediaModel media)
Extracts and stores metadata from the givenMediaModel
.java.util.Set<java.lang.String>
getGroupNames()
Accesses all groups of metadata provided by thisMediaMetaDataProvider
.
-
-
-
Method Detail
-
extractMetaData
void extractMetaData(MediaModel media)
Extracts and stores metadata from the givenMediaModel
. TheMediaMetaDataModel
created must have theirMediaMetaDataModel.MEDIA
attribute set to the specifiedMediaModel
and theMediaMetaDataModel.GROUPNAME
accordingly.- Parameters:
media
- theMediaModel
to extract the metadata for.
-
getGroupNames
java.util.Set<java.lang.String> getGroupNames()
Accesses all groups of metadata provided by thisMediaMetaDataProvider
.- Returns:
- all groups of metadata managed by this
MediaMetaDataProvider
. - See Also:
MediaMetaDataModel.getGroupName()
-
-