protected Map<String, String> headerMap() { return getPaasClientInstance().userHeaderMap(); }
private void init() { objectId = ""; isDataReady = false; if (getPaasClientInstance().getDefaultACL() != null) { acl = new AVACL(getPaasClientInstance().getDefaultACL()); } running = false; }
private void refreshInBackground(boolean sync, String includeKeys, RefreshCallback<AVObject> callback) { Map<String, String> params = new HashMap<String, String>(); if (!AVUtils.isBlankString(includeKeys)) { params.put("include", includeKeys); } getPaasClientInstance().getObject(AVPowerfulUtils.getEndpoint(this), new AVRequestParams(params), sync, headerMap(), new FetchObjectCallback(callback)); }
getPaasClientInstance().postBatchSave(requests, sync, isEventually, headerMap(), new GenericObjectCallback() {
private Map<String, Object> wrapperRequestBody(Map<String, Object> requestBody, List children, boolean compoundRequest) { requestBody.put("__children", children); if (acl != null) { requestBody.putAll(AVUtils.getParsedMap(acl.getACLMap())); } requestBody.put("__internalId", internalId()); String method = "PUT"; boolean post = (AVUtils.isBlankString(getObjectId()) || alwaysUsePost()) && !compoundRequest; if (post) { method = "POST"; } String path = AVPowerfulUtils.getBatchEndpoint(getPaasClientInstance().getApiVersion(), this, post); return getPaasClientInstance().batchItemMap(method, path, requestBody, getBatchParams()); }
private void fetchInBackground(boolean sync, String includeKeys, GetCallback<AVObject> callback) { if (AVUtils.isBlankString(getObjectId())) { if (callback != null) { AVException exception = AVErrorUtils.createException(AVErrorUtils.MISSING_OBJECTID, "Missing objectId"); callback.internalDone(null, exception); } return; } final Map<String, String> params = new HashMap<String, String>(); if (!AVUtils.isBlankString(includeKeys)) { params.put("include", includeKeys); } getPaasClientInstance().getObject(AVPowerfulUtils.getEndpoint(this), new AVRequestParams(params), sync, headerMap(), new FetchObjectCallback(callback)); }
getPaasClientInstance().deleteObject(url, sync, isEventually, new GenericObjectCallback() { @Override