Map<String, Object> batchItemMap(String method, String path, Object body) { return this.batchItemMap(method, path, body, null); }
Map<String, Object> batchItemMap(String method, String path, Object body) { return this.batchItemMap(method, path, body, null); }
@Deprecated List<Object> assembleBatchOpsList(List<Object> itemList, String path) { List<Object> list = new ArrayList<Object>(); for (Object object : itemList) { Map<String, Object> opDict = batchItemMap("PUT", path, object); list.add(opDict); } return list; }
@Deprecated List<Object> assembleBatchOpsList(List<Object> itemList, String path) { List<Object> list = new ArrayList<Object>(); for (Object object : itemList) { Map<String, Object> opDict = batchItemMap("PUT", path, object); list.add(opDict); } return list; }
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 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(PaasClient.storageInstance().getApiVersion(), this, post); return PaasClient.storageInstance().batchItemMap(method, path, requestBody, getBatchParams()); }