public class DefaultMediaContainerService extends AbstractBusinessService implements MediaContainerService
MediaContainerServiceAbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultMediaContainerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMediaToContainer(MediaContainerModel mediaContainerModel,
java.util.List<MediaModel> mediaModels)
Adds the medias to the given container.
|
protected MediaContainerDao |
getMediaContainerDao()
Deprecated.
since 4.4
|
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.
|
MediaService |
getMediaService() |
void |
removeMediaFromContainer(MediaContainerModel mediaContainerModel,
java.util.List<MediaModel> mediaModels)
Removes the medias from given container.
|
void |
setMediaContainerDao(MediaContainerDao mediaContainerDao) |
void |
setMediaService(MediaService mediaService) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic MediaModel getMediaForFormat(MediaContainerModel mediaContainerModel, MediaFormatModel mediaFormatModel)
getMediaForFormat in interface MediaContainerServicemediaContainerModel - the media container object to look given formatmediaFormatModel - the media format that we are looking for in the containerMediaService.getMediaByFormat(MediaContainerModel, MediaFormatModel)public void addMediaToContainer(MediaContainerModel mediaContainerModel, java.util.List<MediaModel> mediaModels)
addMediaToContainer in interface MediaContainerServicemediaContainerModel - 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 thrownpublic void removeMediaFromContainer(MediaContainerModel mediaContainerModel, java.util.List<MediaModel> mediaModels)
removeMediaFromContainer in interface MediaContainerServicemediaContainerModel - the media containermediaModels - the medias that will be removed from the containerpublic MediaFormatModel getMediaFormatForSourceFormat(MediaContextModel contextModel, MediaFormatModel sourceFormatModel)
getMediaFormatForSourceFormat in interface MediaContainerServicecontextModel - the context model that should contain target media format we are looking forsourceFormatModel - the source format model that we are looking for targetpublic MediaContextModel getMediaContextForQualifier(java.lang.String qualifier)
getMediaContextForQualifier in interface MediaContainerServicequalifier - the qualifierpublic MediaContainerModel getMediaContainerForQualifier(java.lang.String qualifier)
getMediaContainerForQualifier in interface MediaContainerServicequalifier - the qualifier@Deprecated protected MediaContainerDao getMediaContainerDao()
public void setMediaContainerDao(MediaContainerDao mediaContainerDao)
public MediaService getMediaService()
public void setMediaService(MediaService mediaService)
mediaService - the mediaService to setCopyright © 2018 SAP SE. All Rights Reserved.