|
JD Edwards EnterpriseOne Mobile Framework Java API ReferenceRelease 1.0.0E58374-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.oracle.e1.jdemf.mediaobject.MediaObjectOperations
public abstract class MediaObjectOperations
MediaObjectOperations Class provides an API for applications to access media objects in EnterpriseOne. Operations supported: list, upload, download, delete.
Field Summary | |
---|---|
static java.lang.String |
HIDE_LOADING_JS_FUNCTION |
static java.lang.String |
SHOW_LOADING_JS_FUNCTION |
Constructor Summary | |
---|---|
MediaObjectOperations() |
Method Summary | |
---|---|
static void |
deleteAllImagesfromFile(FileAttachment[] fileAttachments) deleteAllImagesfromFile deletes all of the files stored on the device based on the list of file attachments |
static MediaObjectDeleteResponse |
deleteMediaObject(MediaObjectDeleteRequest mediaObjectDeleteRequest) deleteMediaObject will delete the attachment based on the media object structure, key and squence |
static MediaObjectDownloadResponse |
downloadMediaObject(MediaObjectDownloadRequest mediaObjectDownloadRequest) 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 FileAttachment |
fromAlbum(int quality, boolean allowEdit, int targetWidth, int targetHeight) Invokes the device manager 'fromAlbum' function to get an image from the album, it re-names the image in the file system with a unique name. |
static FileAttachment |
fromCamera(int quality, boolean allowEdit, int targetWidth, int targetHeight) Invokes the device manager 'fromCamera' function to get an image from the device camera, it re-names the image in the file system with a unique name. |
static MediaObjectListResponse |
getMediaObjectList(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(MediaObjectGetTextRequest mediaObgetTextRequest) getTextMediaObject allows you to request the text of the first text media object based on the media object structure, key |
static int |
PhotoCount(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 void |
removeFromFileSystem(java.lang.String fileLocation) Removes a file from the device file system based on file location |
static java.lang.String |
replaceAll(java.lang.String str, java.lang.String replace, java.lang.String replacement) replaceAll utility, replacess all strings matching the second parameter with the string in the third parameter, result is returned through the call |
static MediaObjectUpdateTextResponse |
updateTextMediaObject(MediaObjectUpdateTextRequest mediaObgetUpdateTextRequest) updateTextMediaObject allows you to update the first text media ogject based on the media object structure, key |
static MediaObjectUploadResponse |
uploadMediaObject(MediaObjectUploadRequest mediaObjectUploadRequest) uploadMediaObject - will upload a single file to the media object based on structure and key |
static int |
uploadSignatureToMO(java.lang.String base64Data) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SHOW_LOADING_JS_FUNCTION
public static final java.lang.String HIDE_LOADING_JS_FUNCTION
Constructor Detail |
---|
public MediaObjectOperations()
Method Detail |
---|
public static MediaObjectGetTextResponse getTextMediaObject(MediaObjectGetTextRequest mediaObgetTextRequest) throws java.lang.Exception
mediaObjectTextRequest
-java.lang.Exception
public static MediaObjectUpdateTextResponse updateTextMediaObject(MediaObjectUpdateTextRequest mediaObgetUpdateTextRequest) throws java.lang.Exception
mediaObjectUpdateTextRequest
-java.lang.Exception
public static MediaObjectDownloadResponse downloadMediaObject(MediaObjectDownloadRequest mediaObjectDownloadRequest) throws java.lang.Exception
mediaObjectDownloadRequest
-downloadDirectory
-java.lang.Exception
public static void removeFromFileSystem(java.lang.String fileLocation) throws java.lang.Exception
fileLocation
-java.lang.Exception
public static void deleteAllImagesfromFile(FileAttachment[] fileAttachments) throws java.lang.Exception
fileAttachments
-java.lang.Exception
public static MediaObjectListResponse getMediaObjectList(MediaObjectListRequest mediaObjectListRequest) throws java.lang.Exception
mediaObjectListRequest
-java.lang.Exception
public static java.lang.String replaceAll(java.lang.String str, java.lang.String replace, java.lang.String replacement)
str
-replace
-replacement
-public static MediaObjectUploadResponse uploadMediaObject(MediaObjectUploadRequest mediaObjectUploadRequest) throws java.lang.Exception
mediaObjectUploadRequest
-java.lang.Exception
public static MediaObjectDeleteResponse deleteMediaObject(MediaObjectDeleteRequest mediaObjectDeleteRequest) throws java.lang.Exception
mediaObjectDeleteRequest
-java.lang.Exception
public static FileAttachment fromAlbum(int quality, boolean allowEdit, int targetWidth, int targetHeight)
quality
-allowEdit
-targetWidth
-targetHeight
-public static FileAttachment fromCamera(int quality, boolean allowEdit, int targetWidth, int targetHeight)
quality
-allowEdit
-targetWidth
-targetHeight
-public static int PhotoCount(java.lang.String moKeyValue, java.lang.String moStructure, java.lang.String formName, java.lang.String version)
moKeyValue
-moStructure
-formName
-version
-public static int uploadSignatureToMO(java.lang.String base64Data)
|
JD Edwards EnterpriseOne Mobile Framework Java API ReferenceRelease 1.0.0E58374-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2014 Oracle and/or its affiliates. All Rights Reserved.