public interface MediaContainerService
| Modifier and Type | Method and Description |
|---|---|
void |
addMediaToContainer(MediaContainerModel mediaContainerModel,
java.util.List<MediaModel> mediaModels)
Adds the medias to the given container.
|
MediaContainerModel |
getMediaContainerForQualifier(java.lang.String qualifier)
Gets the media container for qualifier.
|
MediaContextModel |
getMediaContextForQualifier(java.lang.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,
java.util.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, java.util.List<MediaModel> mediaModels) throws java.lang.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 thrownjava.lang.IllegalArgumentException - the illegal argument exception - thrown when any argument is null or any media has no format specifiedvoid removeMediaFromContainer(MediaContainerModel mediaContainerModel, java.util.List<MediaModel> mediaModels) throws java.lang.IllegalArgumentException
mediaContainerModel - the media containermediaModels - the medias that will be removed from the containerjava.lang.IllegalArgumentException - the illegal argument exception when any argument is nullMediaFormatModel getMediaFormatForSourceFormat(MediaContextModel contextModel, MediaFormatModel sourceFormatModel) throws java.lang.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 targetjava.lang.IllegalArgumentException - the illegal argument exception when any argument is nullModelNotFoundException - if the format for specified parameters was not foundMediaContainerModel getMediaContainerForQualifier(java.lang.String qualifier) throws UnknownIdentifierException, AmbiguousIdentifierException
qualifier - the qualifierUnknownIdentifierException - the unknown identifier exceptionAmbiguousIdentifierException - the ambiguous identifier exceptionMediaContextModel getMediaContextForQualifier(java.lang.String qualifier) throws UnknownIdentifierException, AmbiguousIdentifierException
qualifier - the qualifierUnknownIdentifierException - the unknown identifier exceptionAmbiguousIdentifierException - the ambiguous identifier exceptionCopyright © 2018 SAP SE. All Rights Reserved.