public class NCMBFileService extends NCMBService
NCMBService.RequestParams| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVICE_PATH
service path for API category
|
mContext, mServicePath| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
deleteFile(java.lang.String fileName)
Delete file data to NIFCLOUD mobile backend
|
void |
deleteFileInBackground(java.lang.String fileName,
ExecuteServiceCallback callback)
Delete file data to NIFCLOUD mobile backend in background thread
|
byte[] |
fetchFile(java.lang.String fileName)
Get file data from NIFCLOUD mobile backend
|
void |
fetchFileInBackground(java.lang.String fileName,
FetchFileCallback callback)
Get file data from NIFCLOUD mobile backend in background thread
|
org.json.JSONObject |
saveFile(java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson)
Upload file data to NIFCLOUD mobile backend
|
void |
saveFileInBackground(java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson,
ExecuteServiceCallback callback)
Upload file data to NIFCLOUD mobile backend in background thread
|
java.util.List |
searchFile(org.json.JSONObject conditions)
Get files from NIFCLOUD mobile backend
|
void |
searchFileInBackground(org.json.JSONObject conditions,
SearchFileCallback callback)
Get files from NIFCLOUD mobile backend in background thread
|
org.json.JSONObject |
updateFile(java.lang.String fileName,
org.json.JSONObject aclJson)
Update ACL of file
|
void |
updateFileInBackground(java.lang.String fileName,
org.json.JSONObject aclJson,
ExecuteServiceCallback callback)
Update ACL of file in background thread
|
sendRequest, sendRequest, sendRequest, sendRequest, sendRequestAsync, sendRequestAsync, sendRequestFile, sendRequestFileAsyncpublic static final java.lang.String SERVICE_PATH
public org.json.JSONObject saveFile(java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson)
throws NCMBException
fileName - upload file namefileData - file data to byte[]aclJson - saving file aclNCMBException - exception from NIFCLOUD mobile backendpublic void saveFileInBackground(java.lang.String fileName,
byte[] fileData,
org.json.JSONObject aclJson,
ExecuteServiceCallback callback)
fileName - upload file namefileData - file data to byte[]aclJson - saving file aclcallback - callback for after file savepublic org.json.JSONObject updateFile(java.lang.String fileName,
org.json.JSONObject aclJson)
throws NCMBException
fileName - update file nameaclJson - update file aclNCMBException - exception from NIFCLOUD mobile backendpublic void updateFileInBackground(java.lang.String fileName,
org.json.JSONObject aclJson,
ExecuteServiceCallback callback)
fileName - update file nameaclJson - saving file aclcallback - callback for after file updatepublic org.json.JSONObject deleteFile(java.lang.String fileName)
throws NCMBException
fileName - delete file nameNCMBException - exception from NIFCLOUD mobile backendpublic void deleteFileInBackground(java.lang.String fileName,
ExecuteServiceCallback callback)
fileName - delete file namecallback - callback for after file deletepublic byte[] fetchFile(java.lang.String fileName)
throws NCMBException
fileName - get file nameNCMBException - exception from NIFCLOUD mobile backendpublic void fetchFileInBackground(java.lang.String fileName,
FetchFileCallback callback)
fileName - get file namecallback - callback for after file getpublic java.util.List searchFile(org.json.JSONObject conditions)
throws NCMBException
conditions - search conditionsNCMBException - exception from NIFCLOUD mobile backendpublic void searchFileInBackground(org.json.JSONObject conditions,
SearchFileCallback callback)
conditions - search conditionscallback - callback for after file get