Interface MediaMetaDataService
- All Known Implementing Classes:
DefaultMediaMetaDataService
public interface MediaMetaDataService
Service to extract and delete metadata from
MediaModel (binaries).-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAllMetaData(MediaModel media) Deletes allMediaMetaDataModelinstances associated with the givenmodel.voidextractAllMetaData(MediaModel media) Extracts the given medias metadata and stores it to database.getAllMetaData(MediaModel media) Fetches all (currently persisted) properties mapped by group.getMetaData(MediaModel media, String group) Fetches all (currently persisted) meta data of one group.
-
Method Details
-
extractAllMetaData
Extracts the given medias metadata and stores it to database.The implementation should call all
MediaMetaDataProvider.extractMetaData(MediaModel)methods to do this.- Parameters:
media- The MediaModel for which the MetaData is to be extracted.- Throws:
IllegalArgumentException- if the specifiedMediaModelisnull.
-
deleteAllMetaData
Deletes allMediaMetaDataModelinstances associated with the givenmodel.- Parameters:
media- theMediaModelto delete the metadata from.- Throws:
IllegalArgumentException- if the specifiedMediaModelisnull.
-
getMetaData
Fetches all (currently persisted) meta data of one group.- Returns:
- a
Mapof key value pairs. - Throws:
IllegalArgumentException- if the given media or group isnull
-
getAllMetaData
Fetches all (currently persisted) properties mapped by group.- Returns:
- a
Map(key = group name) ofMaps (key = code; value = value) of Metadata entries attached to the givenMediaModel - Throws:
IllegalArgumentException- if the given media isnull
-