public interface MediaContainerService
| Modifier and Type | Method and Description |
|---|---|
void |
addMediaToContainer(MediaContainerModel mediaContainerModel,
List<MediaModel> mediaModels)
Adds the medias to the given container.
|
MediaContainerModel |
getMediaContainerForQualifier(String qualifier)
Gets the media container for qualifier.
|
MediaContextModel |
getMediaContextForQualifier(String qualifier)
Gets the media context for the specified qualifier.
|
MediaModel |
getMediaForFormat(MediaContainerModel mediaContainerModel,
MediaFormatModel mediaFormatModel)
Gets the media for the given format from the given container.
|
MediaFormatModel |
getMediaFormatForSourceFormat(MediaContextModel contextModel,
MediaFormatModel sourceFormatModel)
Gets the media format for source format from the given media context.
|
void |
removeMediaFromContainer(MediaContainerModel mediaContainerModel,
List<MediaModel> mediaModels)
Removes the medias from given container.
|
MediaModel getMediaForFormat(MediaContainerModel mediaContainerModel, MediaFormatModel mediaFormatModel) throws ModelNotFoundException
mediaContainerModel - the media container object to look given formatmediaFormatModel - the media format that we are looking for in the containerModelNotFoundException - if no media model for given parameters was foundMediaService.getMediaByFormat(MediaContainerModel, MediaFormatModel)void addMediaToContainer(MediaContainerModel mediaContainerModel, List<MediaModel> mediaModels) throws IllegalArgumentException
mediaContainerModel - the media container object that we will add media tomediaModels - the media list that will be added to the container. If media has no format specified
IllegalArgumentException will be thrownIllegalArgumentException - the illegal argument exception - thrown when any argument is null or any media has no format specifiedvoid removeMediaFromContainer(MediaContainerModel mediaContainerModel, List<MediaModel> mediaModels) throws IllegalArgumentException
mediaContainerModel - the media containermediaModels - the medias that will be removed from the containerIllegalArgumentException - the illegal argument exception when any argument is nullMediaFormatModel getMediaFormatForSourceFormat(MediaContextModel contextModel, MediaFormatModel sourceFormatModel) throws IllegalArgumentException, ModelNotFoundException
contextModel - the context model that should contain target media format we are looking forsourceFormatModel - the source format model that we are looking for targetIllegalArgumentException - the illegal argument exception when any argument is nullModelNotFoundException - if the format for specified parameters was not foundMediaContainerModel getMediaContainerForQualifier(String qualifier) throws UnknownIdentifierException, AmbiguousIdentifierException
qualifier - the qualifierUnknownIdentifierException - the unknown identifier exceptionAmbiguousIdentifierException - the ambiguous identifier exceptionMediaContextModel getMediaContextForQualifier(String qualifier) throws UnknownIdentifierException, AmbiguousIdentifierException
qualifier - the qualifierUnknownIdentifierException - the unknown identifier exceptionAmbiguousIdentifierException - the ambiguous identifier exceptionCopyright © 2017 SAP SE. All Rights Reserved.