public abstract class MediaObjectOperations
extends java.lang.Object
Constructor and Description |
---|
MediaObjectOperations() |
Modifier and Type | Method and Description |
---|---|
static MediaObjectAddUrlResponse |
addUrlMediaObject(LoginEnvironment loginEnv,
MediaObjectAddUrlRequest mediaObjectAddUrlRequest)
addUrlMediaObject allows you to add a url media ogject based on the media object structure, key
|
static MediaObjectDeleteResponse |
deleteMediaObject(LoginEnvironment loginEnv,
MediaObjectDeleteRequest mediaObjectDeleteRequest)
deleteMediaObject will delete the attachment based on the media object structure, key and sequence
|
static MediaObjectDownloadResponse |
downloadMediaObject(LoginEnvironment loginEnv,
MediaObjectDownloadRequest mediaObjectDownloadRequest,
java.lang.String downloadDirectory)
downloadMediaObject allows you to request a single media object file based on the media object structure, key and sequence number, file will be saved to specified download directory location (if not provided the file will not be saved and no file location will be provided in the MediaObjectDownloadResponse).
|
static MediaObjectListResponse |
getMediaObjectList(LoginEnvironment loginEnv,
MediaObjectListRequest mediaObjectListRequest)
getMediaObjectList - returns the list of media objects based on structure and key, if indicated the list will include base64 encoded thumbnail of images
|
static MediaObjectGetTextResponse |
getTextMediaObject(LoginEnvironment loginEnv,
MediaObjectGetTextRequest mediaObjectTextRequest)
getTextMediaObject allows you to request the text of the first text media object based on the media object structure, key
|
static int |
photoCount(LoginEnvironment loginEnv,
java.lang.String moKeyValue,
java.lang.String moStructure,
java.lang.String formName,
java.lang.String version)
photoCount returns the count of photos (jpg,png,gif,jpeg) stored for that media object structure and key, form name and version must be provided for security.
|
static MediaObjectUpdateTextResponse |
updateTextMediaObject(LoginEnvironment loginEnv,
MediaObjectUpdateTextRequest mediaObjectUpdateTextRequest)
updateTextMediaObject allows you to update the first text media ogject based on the media object structure, key
|
static MediaObjectUploadResponse |
uploadMediaObject(LoginEnvironment loginEnv,
MediaObjectUploadRequest mediaObjectUploadRequest)
uploadMediaObject - will upload a single file to the media object based on structure and key
|
public static MediaObjectGetTextResponse getTextMediaObject(LoginEnvironment loginEnv, MediaObjectGetTextRequest mediaObjectTextRequest) throws java.lang.Exception
loginEnv
- Initialized LoginEnvironment objectmediaObjectTextRequest
- Initialized MediaObjectGetTextRequest objectjava.lang.Exception
public static MediaObjectUpdateTextResponse updateTextMediaObject(LoginEnvironment loginEnv, MediaObjectUpdateTextRequest mediaObjectUpdateTextRequest) throws java.lang.Exception
loginEnv
- mediaObjectUpdateTextRequest
- java.lang.Exception
public static MediaObjectDownloadResponse downloadMediaObject(LoginEnvironment loginEnv, MediaObjectDownloadRequest mediaObjectDownloadRequest, java.lang.String downloadDirectory) throws java.lang.Exception
loginEnv
- mediaObjectDownloadRequest
- downloadDirectory
- java.lang.Exception
public static MediaObjectListResponse getMediaObjectList(LoginEnvironment loginEnv, MediaObjectListRequest mediaObjectListRequest) throws java.lang.Exception
loginEnv
- mediaObjectListRequest
- java.lang.Exception
public static MediaObjectUploadResponse uploadMediaObject(LoginEnvironment loginEnv, MediaObjectUploadRequest mediaObjectUploadRequest) throws java.lang.Exception
mediaObjectUploadRequest
- java.lang.Exception
public static MediaObjectDeleteResponse deleteMediaObject(LoginEnvironment loginEnv, MediaObjectDeleteRequest mediaObjectDeleteRequest) throws java.lang.Exception
loginEnv
- mediaObjectDeleteRequest
- java.lang.Exception
public static int photoCount(LoginEnvironment loginEnv, java.lang.String moKeyValue, java.lang.String moStructure, java.lang.String formName, java.lang.String version)
moKeyValue
- moStructure
- formName
- version
- public static MediaObjectAddUrlResponse addUrlMediaObject(LoginEnvironment loginEnv, MediaObjectAddUrlRequest mediaObjectAddUrlRequest) throws java.lang.Exception
loginEnv
- mediaObjectAddUrlRequest
- java.lang.Exception
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.