List of usage examples for org.json JSONArray getInt
public int getInt(int index) throws JSONException
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getFoldersAndFileEntriesAndFileShortcutsCount(long repositoryId, long folderId, int status, boolean includeMountFolders) throws Exception { JSONObject _command = new JSONObject(); try {//from w w w.j av a 2 s . c o m JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("folderId", folderId); _params.put("status", status); _params.put("includeMountFolders", includeMountFolders); _command.put("/dlapp/get-folders-and-file-entries-and-file-shortcuts-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getFoldersAndFileEntriesAndFileShortcutsCount(long repositoryId, long folderId, int status, JSONArray mimeTypes, boolean includeMountFolders) throws Exception { JSONObject _command = new JSONObject(); try {//w ww . ja va2 s .c o m JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("folderId", folderId); _params.put("status", status); _params.put("mimeTypes", checkNull(mimeTypes)); _params.put("includeMountFolders", includeMountFolders); _command.put("/dlapp/get-folders-and-file-entries-and-file-shortcuts-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getFoldersCount(long repositoryId, long parentFolderId) throws Exception { JSONObject _command = new JSONObject(); try {//from ww w .ja v a2 s.co m JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("parentFolderId", parentFolderId); _command.put("/dlapp/get-folders-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getFoldersCount(long repositoryId, long parentFolderId, boolean includeMountFolders) throws Exception { JSONObject _command = new JSONObject(); try {// w w w . j a va 2 s . c o m JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("parentFolderId", parentFolderId); _params.put("includeMountFolders", includeMountFolders); _command.put("/dlapp/get-folders-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getFoldersCount(long repositoryId, long parentFolderId, int status, boolean includeMountFolders) throws Exception { JSONObject _command = new JSONObject(); try {//from w ww. j a v a 2 s. com JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("parentFolderId", parentFolderId); _params.put("status", status); _params.put("includeMountFolders", includeMountFolders); _command.put("/dlapp/get-folders-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getFoldersFileEntriesCount(long repositoryId, JSONArray folderIds, int status) throws Exception { JSONObject _command = new JSONObject(); try {/*from w w w . j a v a2s. c om*/ JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("folderIds", checkNull(folderIds)); _params.put("status", status); _command.put("/dlapp/get-folders-file-entries-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getGroupFileEntriesCount(long groupId, long userId) throws Exception { JSONObject _command = new JSONObject(); try {/*from www . j a v a 2 s . c om*/ JSONObject _params = new JSONObject(); _params.put("groupId", groupId); _params.put("userId", userId); _command.put("/dlapp/get-group-file-entries-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getGroupFileEntriesCount(long groupId, long userId, long rootFolderId) throws Exception { JSONObject _command = new JSONObject(); try {// ww w . j av a 2s. c om JSONObject _params = new JSONObject(); _params.put("groupId", groupId); _params.put("userId", userId); _params.put("rootFolderId", rootFolderId); _command.put("/dlapp/get-group-file-entries-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getGroupFileEntriesCount(long groupId, long userId, long rootFolderId, JSONArray mimeTypes, int status) throws Exception { JSONObject _command = new JSONObject(); try {//from w w w . ja v a 2s . c om JSONObject _params = new JSONObject(); _params.put("groupId", groupId); _params.put("userId", userId); _params.put("rootFolderId", rootFolderId); _params.put("mimeTypes", checkNull(mimeTypes)); _params.put("status", status); _command.put("/dlapp/get-group-file-entries-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }
From source file:com.liferay.mobile.android.v62.dlapp.DLAppService.java
public Integer getMountFoldersCount(long repositoryId, long parentFolderId) throws Exception { JSONObject _command = new JSONObject(); try {//w w w.jav a2 s . c o m JSONObject _params = new JSONObject(); _params.put("repositoryId", repositoryId); _params.put("parentFolderId", parentFolderId); _command.put("/dlapp/get-mount-folders-count", _params); } catch (JSONException _je) { throw new Exception(_je); } JSONArray _result = session.invoke(_command); if (_result == null) { return null; } return _result.getInt(0); }