public class MediaUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
isMediaTypeAnnotation |
static String |
mediaColumn |
static String |
mediaTypeAnnotation |
static String |
mimeType |
static String |
mimeTypeColumn |
| Constructor and Description |
|---|
MediaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getMediaAnnotationFromCSN(String serviceName,
String entitySetName,
com.fasterxml.jackson.databind.JsonNode csn)
Gets the media related details for the entity set from the model.
|
static void |
populateMediaDetails(Map<String,Object> resultEntity,
com.sap.gateway.core.api.provider.data.BaseDataProviderResponse response,
String mediaColumn,
String mimeTypeColumn,
String mimeType)
Updates the response with the media and the associated MIME type.
|
public static final String mediaColumn
public static final String mimeTypeColumn
public static final String mimeType
public static final String mediaTypeAnnotation
public static final String isMediaTypeAnnotation
public static void populateMediaDetails(Map<String,Object> resultEntity, com.sap.gateway.core.api.provider.data.BaseDataProviderResponse response, String mediaColumn, String mimeTypeColumn, String mimeType)
resultEntity - Represents the entity containing the media informationresponse - Response that has to be updated with the media informationmediaColumn - Database column containing the media datamimeTypeColumn - Database column containing the MIME typemimeType - MIME type defined directly in the modelpublic static Map<String,String> getMediaAnnotationFromCSN(String serviceName, String entitySetName, com.fasterxml.jackson.databind.JsonNode csn)
serviceName - Name of the serviceentitySetName - Name of the entity setcsn - Model obtained from the CSN fileCopyright © 2020 SAP. All Rights Reserved.