| Package | Description |
|---|---|
| de.hybris.platform.mediaconversion.conversion | |
| de.hybris.platform.servicelayer.media | |
| de.hybris.platform.servicelayer.media.impl |
| Modifier and Type | Method and Description |
|---|---|
MediaModel |
DefaultConvertedMediaCreationStrategy.createOrUpdate(MediaModel parent,
ConversionMediaFormatModel format,
InputStream content)
Creates a new media which was converted from the given
parent by successful conversion to the given
format or updates the corresponding media if it already exists. |
MediaModel |
ConvertedMediaCreationStrategy.createOrUpdate(MediaModel parent,
ConversionMediaFormatModel format,
InputStream content)
Creates a new media which was converted from the given
parent by successful conversion to the given
format or updates the corresponding media if it already exists. |
| Modifier and Type | Method and Description |
|---|---|
void |
MediaService.copyData(MediaModel fromMedia,
MediaModel toMedia)
Copies data from a media to another media by linking the data (both medias will point to same data file).
|
void |
MediaService.duplicateData(MediaModel fromMedia,
MediaModel toMedia)
Copies data from a media to another media by duplicating the data (both medias will point to different data file).
|
void |
MediaService.moveData(MediaModel fromMedia,
MediaModel toMedia)
Moves a media data to another media.
|
void |
MediaService.moveMediaToFolder(MediaModel media,
MediaFolderModel targetFolder)
Changes the folder of media to given new folder and move the related media data to this folder.
|
void |
MediaService.setDataForMedia(MediaModel media,
byte[] data)
Sets given raw data to media by writing content of given stream to a new data file.
|
void |
MediaService.setFolderForMedia(MediaModel media,
MediaFolderModel targetFolder)
|
void |
MediaService.setStreamForMedia(MediaModel media,
InputStream data)
Sets given data to media by writing content of given stream to a new data file.
|
void |
MediaService.setStreamForMedia(MediaModel media,
InputStream data,
String originalName,
String mimeType)
Sets given data to media by writing content of given stream to a new data file.
|
void |
MediaService.setStreamForMedia(MediaModel media,
InputStream data,
String originalName,
String mimeType,
MediaFolderModel folder)
Sets given data to media by writing content of given stream to a new data file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultMediaService.moveMediaToFolder(MediaModel media,
MediaFolderModel targetFolder) |
Copyright © 2017 SAP SE. All Rights Reserved.