Package com.zoho.analytics.client
Class WorkspaceAPI
java.lang.Object
com.zoho.analytics.client.WorkspaceAPI
WorkspaceAPI contains workspace level operations.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorkspaceAPI(AnalyticsClient ac, long orgId, long workspaceId) Creates a newWorkspaceAPIinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdmins(org.json.JSONArray emailIds, org.json.JSONObject config) Add admins for the specified workspace.voidAdds a specified workspace as default.voidAdds a specified workspace as favorite.voidaddGroupMembers(long groupId, org.json.JSONArray emailIds, org.json.JSONObject config) Add users to the specified group.voidaddTagToViews(long tagId, org.json.JSONArray viewIds, org.json.JSONObject config) Adds the specified tag to multiple views in the workspace.voidaddWorkspaceUsers(org.json.JSONArray emailIds, String role, org.json.JSONObject config) Add users to the specified workspace.org.json.JSONObjectautoMLAnalysisPrediction(String analysisId, String modelId, org.json.JSONObject features, org.json.JSONObject config) Generates predictions using a trained AutoML model with sample input values.org.json.JSONObjectbackupWorkspaceNow(org.json.JSONObject config) Trigger an instant backup for the specified workspace.voidchangeAlertStatus(org.json.JSONArray alertIds, boolean enabled, org.json.JSONObject config) Enable or disable the specified data alerts in the workspace.voidchangeEmailScheduleStatus(long scheduleId, String operation) Update configurations of the specified email schedule in the workspace.voidchangeFolderHierarchy(long folderId, int hierarchy, org.json.JSONObject config) Swaps the hierarchy of a parent folder and a subfolder.voidchangeFolderPosition(long folderId, long referenceFolderId, org.json.JSONObject config) Place the folder above the reference folder.voidchangeWorkspaceUserRole(org.json.JSONArray emailIds, String role, org.json.JSONObject config) Change role of the specified users in the workspace.voidchangeWorkspaceUserStatus(org.json.JSONArray emailIds, String operation, org.json.JSONObject config) Change users staus in the specified workspace.longCopy the specified workspace from one organization to another or within the organization.org.json.JSONArraycopyViews(org.json.JSONArray viewIds, long destWorkspaceId, org.json.JSONObject config, Long destOrgId) Copy the specified views from one workspace to another workspace.createAutoMLAnalysis(String name, String trainingTableId, String predictionType, org.json.JSONArray features, int serverOption, org.json.JSONObject algorithms, org.json.JSONObject config) Creates a new AutoML analysis in the workspace.org.json.JSONObjectcreateAutoMLAnalysisDeployment(String analysisId, String modelId, String inputTableId, String outputTable, org.json.JSONArray outputColumns, String predictionColumn, int serverOption, String importType, Object scheduleDetails, org.json.JSONObject config) Creates a deployment for an AutoML analysis model.longcreateDashboard(String displayName, String layout, org.json.JSONObject config) Create a dashboard in the specified workspace.longcreateEmailSchedule(String scheduleName, org.json.JSONArray viewIds, String format, org.json.JSONArray emailIds, org.json.JSONObject scheduleDetails, org.json.JSONObject config) Create an email schedule in the specified workspace.longcreateFolder(String folderName, org.json.JSONObject config) Create a folder in the specified workspace.createGroup(String groupName, org.json.JSONArray emailIds, org.json.JSONObject config) Create a group in the specified workspace.longcreateQueryTable(String sqlQuery, String queryTableName, org.json.JSONObject config) Create a new query table in the workspace.longcreateReport(org.json.JSONObject config) Create a report in the specified workspace.longcreateSlideshow(String slideName, org.json.JSONArray viewIds, org.json.JSONObject config) Create a slideshow in the specified workspace.longcreateTable(org.json.JSONObject tableDesign) Create a table in the specified workspace.longCreate a tag in the specified workspace.longcreateVariable(String variableName, int variableDataType, int variableType, org.json.JSONObject config) Create a variable in the workspace.voiddelete()Delete a specified workspace in the organization.voiddeleteAlerts(org.json.JSONArray alertIds, org.json.JSONObject config) Delete the specified data alerts from the workspace.voiddeleteAutoMLAnalysis(String analysisId, org.json.JSONObject config) Deletes a specified AutoML analysis from the workspace.voiddeleteAutoMLAnalysisDeployment(String analysisId, String deploymentId, org.json.JSONObject config) Deletes a specific AutoML deployment.voiddeleteAutoMLAnalysisModel(String analysisId, String modelId, org.json.JSONObject config) Deletes a specified model from an AutoML analysis.voiddeleteEmailSchedule(long scheduleId) Delete the specified email schedule in the workspace.voiddeleteFolder(long folderId) Delete a specified folder in the workspace.voiddeleteGroup(long groupId) Delete a specified group.voiddeleteSlideshow(long slideId) Delete a specified slideshow in the workspace.voiddeleteTag(long tagId) Delete the specified tag from the workspace.voiddeleteTrashView(long viewId, org.json.JSONObject config) Delete the specified view permanently from trash.voiddeleteVariable(long variableId) Delete a specified variable in the workspace.voiddeployAutoMLAnalysis(String analysisId, String deploymentId, org.json.JSONObject config) Executes a specific AutoML deployment.voidDisable workspace from the specified white label domain.voiddownloadWorkspaceBackup(long backupId, String filePath, org.json.JSONObject config) Download the specified workspace backup.voidEnable workspace to the specified white label domain.voidexportAsTemplate(org.json.JSONArray viewIds, String filePath, org.json.JSONObject config) Export the mentioned views as templates.org.json.JSONArrayReturns list of admins for the specified workspace.org.json.JSONObjectgetAggregateFormulaDependents(long formulaId) Returns list of all dependent views and formulas for the specified aggregate formula.org.json.JSONArraygetAggregateFormulas(org.json.JSONObject config) Returns list of all aggregate formulas for the specified workspace.getAggregateFormulaValue(long formulaId) Returns the value of the aggregate formula.org.json.JSONObjectgetAlertConfiguration(long alertId) Returns the configuration of the specified data alert.org.json.JSONObjectgetAlertEvents(long alertId, org.json.JSONObject config) Returns the execution events of the specified data alert.org.json.JSONArrayReturns list of data alerts available in the specified workspace.org.json.JSONArrayReturns list of AutoML analysis for the specified workspace.org.json.JSONObjectgetAutoMLAnalysisDetails(String analysisId) Retrieves detailed information for a specific AutoML analysis.org.json.JSONObjectgetDashboardMetadata(long dashboardId, org.json.JSONObject config) Returns the metadata of the specified dashboard.org.json.JSONArrayReturns list of all datasource for the specified workspace.org.json.JSONObjectgetDeploymentDetails(String analysisId, String modelId) Returns deployment details for a specific AutoML analysis model.org.json.JSONArrayReturns list of email schedules available in the specified workspace.org.json.JSONArrayReturns list of all accessible folders for the specified workspace.org.json.JSONObjectgetGroupDetails(long groupId) Returns details of the specified group.org.json.JSONArrayReturns list of groups for the specified workspace.org.json.JSONArrayReturns list of organizations and workspaces that can be linked to the specified master workspace.org.json.JSONArrayReturns list of workspaces linked to the specified master workspace.org.json.JSONArraygetLinkedWorkspaceSyncDetails(org.json.JSONArray sandboxIds, org.json.JSONObject config) Returns the sync details of the specified linked workspaces.org.json.JSONObjectgetQueryTableDetails(String queryTableId) Returns details of the specified query table.org.json.JSONArraygetQueryTables(org.json.JSONObject config) Returns list of all query tables for the specified workspace.org.json.JSONObjectgetReportMetadata(long viewId) Returns the metadata of the specified report.getSecretKey(org.json.JSONObject config) Returns the secret key of the specified workspace.org.json.JSONArraygetSharedDetailsForViews(org.json.JSONArray viewIds) Returns shared details of the specified views.Returns shared details of the specified workspace.org.json.JSONObjectgetSlideshowDetails(long slideId) Returns details of the specified slideshow.org.json.JSONArrayReturns list of slideshows for the specified workspace.getSlideshowURL(long slideId, org.json.JSONObject config) Returns slide URL to access the specified slideshow.org.json.JSONArraygetTaggedViews(long tagId) Returns the list of views associated with the specified tag.org.json.JSONArraygetTags()Returns list of all tags for the specified workspace.org.json.JSONArrayReturns list of all views available in trash for the specified workspace.org.json.JSONObjectgetVariableDetails(long variableId) Returns details of the specified variable.org.json.JSONArrayReturns list of all variables for the specified workspace.org.json.JSONArraygetViews()Deprecated.org.json.JSONArraygetViews(org.json.JSONObject config) Returns list of all accessible views for the specified workspace.org.json.JSONObjectReturns the access restriction settings configured for the specified workspace.org.json.JSONObjectReturns the backup configuration and the list of backups available for the specified workspace.org.json.JSONObjectgetWorkspaceBackupStatus(long backupId) Returns the status of the specified workspace backup.org.json.JSONObjectgetWorkspaceDetails(org.json.JSONObject config) Returns details of the specified workspace.org.json.JSONArraygetWorkspaceLinkingCompatibility(org.json.JSONArray clients, org.json.JSONObject config) Returns the linking compatibility details for the specified client workspaces.org.json.JSONObjectInternally used in JDBC driverorg.json.JSONObjectgetWorkspaceRestoreStatus(long restoreId) Returns the status of the specified workspace restore.org.json.JSONArrayReturns list of users for the specified workspace.voidlinkWorkspaces(org.json.JSONArray clients, org.json.JSONObject config) Link the specified client workspaces to the master workspace.voidmakeDefaultFolder(long folderId) Make the specified folder as default.voidmoveViewsToFolder(long folderId, org.json.JSONArray viewIds, org.json.JSONObject config) Move views to the mentioned folder.voidremoveAdmins(org.json.JSONArray emailIds, org.json.JSONObject config) Remove admins from the specified workspace.voidRemove a specified workspace from default.voidRemove a specified workspace from favorite.voidremoveGroupMembers(long groupId, org.json.JSONArray emailIds, org.json.JSONObject config) Remove users from the specified group.voidremoveShare(org.json.JSONArray viewIds, org.json.JSONArray emailIds, org.json.JSONObject config) Remove shared views for the specified users.voidremoveTagFromViews(long tagId, org.json.JSONArray viewIds, boolean dissociateAll, org.json.JSONObject config) Removes the specified tag from multiple views in the workspace.voidremoveWorkspaceUsers(org.json.JSONArray emailIds, org.json.JSONObject config) Remove users from the specified workspace.voidRename a specified workspace in the organization.voidrenameFolder(long folderId, String folderName, org.json.JSONObject config) Rename a specified folder in the workspace.voidrenameGroup(long groupId, String groupName, org.json.JSONObject config) Rename a specified group.voidrestoreTrashView(long viewId, org.json.JSONObject config) Restore the specified view from trash.org.json.JSONObjectrestoreWorkspaceFromBackup(long backupId, boolean confirmRestore, org.json.JSONObject config) Restore the specified workspace from the given backup.voidrunAlert(long alertId, org.json.JSONObject config) Execute the specified data alert immediately.voidshareViews(org.json.JSONArray viewIds, org.json.JSONArray emailIds, org.json.JSONObject permissions, org.json.JSONObject config) Share views to the specified users.voidsyncData(long datasourceId, org.json.JSONObject config) Initiate data sync for the specified datasource.voidsyncLinkedWorkspaces(String scope, org.json.JSONObject config) Sync the metadata of the master workspace to its linked client workspaces.voidtriggerEmailSchedule(long scheduleId) Trigger configured email schedules instantly.voidunlinkWorkspaces(String scope, org.json.JSONObject config) Unlink the client workspaces from the specified master workspace.voidupdateAlert(long alertId, String alertName, org.json.JSONObject scheduleDetails, org.json.JSONArray rules, org.json.JSONObject config) Update the specified data alert in the workspace.voidupdateDashboard(long dashboardId, org.json.JSONObject config) Update the specified dashboard in the workspace.voidupdateDatasourceConnection(long datasourceId, org.json.JSONObject config) Update connection details for the specified datasource.longupdateEmailSchedule(long scheduleId, org.json.JSONObject config) Update configurations of the specified email schedule in the workspace.voidupdateQueryTable(long viewId, String sqlQuery, org.json.JSONObject config) Update the mentioned query table in the workspace.voidupdateReport(long viewId, org.json.JSONObject config) Update the design and configuration of the specified report.voidupdateSlideshow(long slideId, org.json.JSONObject config) Update details of the specified slideshow.voidupdateTag(long tagId, org.json.JSONObject config) Update details of the specified tag in the workspace.voidupdateVariable(long variableId, String variableName, int variableDataType, int variableType, org.json.JSONObject config) Update details of the specified variable in the workspace.voidupdateWorkspaceAccessRestrictions(org.json.JSONObject config) Update the access restriction settings of the specified workspace.
-
Constructor Details
-
WorkspaceAPI
Creates a newWorkspaceAPIinstance.- Parameters:
ac-AnalyticsClientinstance.orgId- The ID of the organization.workspaceId- The ID of the workspace.
-
-
Method Details
-
getWorkspaceDetails
public org.json.JSONObject getWorkspaceDetails(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns details of the specified workspace.- Parameters:
config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONObjectof workspace details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
rename
public void rename(String workspaceName, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Rename a specified workspace in the organization.- Parameters:
workspaceName- New name of the workspace.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
delete
Delete a specified workspace in the organization.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getSecretKey
public String getSecretKey(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns the secret key of the specified workspace.- Parameters:
config- Contains any additional control configurations. Can be null.- Returns:
- A
Stringof workspace secret key. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
copy
public long copy(String newWorkspaceName, org.json.JSONObject config, Long destOrgId) throws ServerException, ParseException, IOException, org.json.JSONException Copy the specified workspace from one organization to another or within the organization.- Parameters:
newWorkspaceName- Name of the new workspace.config- Contains any additional control configurations. Can be null.destOrgId- Id of the organization where the destination workspace is present. Can be null.- Returns:
- A
longof new workspace id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
addFavorite
public void addFavorite() throws ServerException, ParseException, IOException, org.json.JSONExceptionAdds a specified workspace as favorite.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
removeFavorite
public void removeFavorite() throws ServerException, ParseException, IOException, org.json.JSONExceptionRemove a specified workspace from favorite.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
addDefault
public void addDefault() throws ServerException, ParseException, IOException, org.json.JSONExceptionAdds a specified workspace as default.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
removeDefault
public void removeDefault() throws ServerException, ParseException, IOException, org.json.JSONExceptionRemove a specified workspace from default.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
enableDomainAccess
public void enableDomainAccess() throws ServerException, ParseException, IOException, org.json.JSONExceptionEnable workspace to the specified white label domain.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
disableDomainAccess
public void disableDomainAccess() throws ServerException, ParseException, IOException, org.json.JSONExceptionDisable workspace from the specified white label domain.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getViews
public org.json.JSONArray getViews() throws ServerException, ParseException, IOException, org.json.JSONExceptionDeprecated.- Throws:
ServerExceptionParseExceptionIOExceptionorg.json.JSONException
-
getViews
public org.json.JSONArray getViews(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns list of all accessible views for the specified workspace.- Parameters:
config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONArrayof views list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createTable
public long createTable(org.json.JSONObject tableDesign) throws ServerException, ParseException, IOException, org.json.JSONException Create a table in the specified workspace.- Parameters:
tableDesign- JSON object of table structure.- Returns:
- A
longof table id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
copyViews
public org.json.JSONArray copyViews(org.json.JSONArray viewIds, long destWorkspaceId, org.json.JSONObject config, Long destOrgId) throws ServerException, ParseException, IOException, org.json.JSONException Copy the specified views from one workspace to another workspace.- Parameters:
viewIds- The id of the views to be copied.destWorkspaceId- The destination workspace id.config- Contains any additional control configurations. Can be null.destOrgId- Id of the organization where the destination workspace is present. Can be null.- Returns:
- A
JSONArrayof views list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getFolders
public org.json.JSONArray getFolders() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of all accessible folders for the specified workspace.- Returns:
- A
JSONArrayof folders list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createFolder
public long createFolder(String folderName, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a folder in the specified workspace.- Parameters:
folderName- The name of the folder.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof folder id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
renameFolder
public void renameFolder(long folderId, String folderName, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Rename a specified folder in the workspace.- Parameters:
folderId- The id of the folder.folderName- The new name of the folder.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteFolder
public void deleteFolder(long folderId) throws ServerException, ParseException, IOException, org.json.JSONException Delete a specified folder in the workspace.- Parameters:
folderId- The id of the folder.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getGroups
public org.json.JSONArray getGroups() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of groups for the specified workspace.- Returns:
- A
JSONArrayof groups list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getGroupDetails
public org.json.JSONObject getGroupDetails(long groupId) throws ServerException, ParseException, IOException, org.json.JSONException Returns details of the specified group.- Parameters:
groupId- The id of the group.- Returns:
- A
JSONObjectof group details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createGroup
public String createGroup(String groupName, org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a group in the specified workspace.- Parameters:
groupName- Name of the group.emailIds- The email address of the users to be added to the group.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof group id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
renameGroup
public void renameGroup(long groupId, String groupName, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Rename a specified group.- Parameters:
groupId- The id of the group.groupName- The new name of the group.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteGroup
public void deleteGroup(long groupId) throws ServerException, ParseException, IOException, org.json.JSONException Delete a specified group.- Parameters:
groupId- The id of the group.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
addGroupMembers
public void addGroupMembers(long groupId, org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Add users to the specified group.- Parameters:
groupId- The id of the group.emailIds- The email address of the users to be added to the group.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
removeGroupMembers
public void removeGroupMembers(long groupId, org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Remove users from the specified group.- Parameters:
groupId- The id of the group.emailIds- The email address of the users to be removed from the group.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAdmins
public org.json.JSONArray getAdmins() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of admins for the specified workspace.- Returns:
- A
JSONArrayof workspace admins. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
addAdmins
public void addAdmins(org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Add admins for the specified workspace.- Parameters:
emailIds- The email address of the admin users to be added.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
removeAdmins
public void removeAdmins(org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Remove admins from the specified workspace.- Parameters:
emailIds- The email address of the admin users to be removed.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getSlideshows
public org.json.JSONArray getSlideshows() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of slideshows for the specified workspace.- Returns:
- A
JSONArrayof slideshows. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getSlideshowDetails
public org.json.JSONObject getSlideshowDetails(long slideId) throws ServerException, ParseException, IOException, org.json.JSONException Returns details of the specified slideshow.- Parameters:
slideId- The id of the slideshow.- Returns:
- A
JSONObjectof slideshow details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getSlideshowURL
public String getSlideshowURL(long slideId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns slide URL to access the specified slideshow.- Parameters:
slideId- The id of the slideshow.config- Contains any additional control configurations. Can be null.- Returns:
- A
Stringof slideshow URL. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createSlideshow
public long createSlideshow(String slideName, org.json.JSONArray viewIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a slideshow in the specified workspace.- Parameters:
slideName- Name of the slideshow to be created.viewIds- Ids of the view to be included in the slideshow.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof created slideshow id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateSlideshow
public void updateSlideshow(long slideId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update details of the specified slideshow.- Parameters:
slideId- The id of the slideshow.config- Contains the control configurations.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteSlideshow
public void deleteSlideshow(long slideId) throws ServerException, ParseException, IOException, org.json.JSONException Delete a specified slideshow in the workspace.- Parameters:
slideId- The id of the slideshow.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createVariable
public long createVariable(String variableName, int variableDataType, int variableType, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a variable in the workspace.- Parameters:
variableName- Name of the variable to be created.variableDataType- Datatype of the variable to be created.variableType- Type of the variable to be created.config- Contains the control configurations.- Returns:
- A
longof created variable id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateVariable
public void updateVariable(long variableId, String variableName, int variableDataType, int variableType, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update details of the specified variable in the workspace.- Parameters:
variableId- Id for the variable.variableName- Name of the variable to be created.variableDataType- Datatype of the variable to be created.variableType- Type of the variable to be created.config- Contains the control configurations.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteVariable
public void deleteVariable(long variableId) throws ServerException, ParseException, IOException, org.json.JSONException Delete a specified variable in the workspace.- Parameters:
variableId- Id of the variable.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getVariables
public org.json.JSONArray getVariables() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of all variables for the specified workspace.- Returns:
- A
JSONArrayof variables list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getVariableDetails
public org.json.JSONObject getVariableDetails(long variableId) throws ServerException, ParseException, IOException, org.json.JSONException Returns details of the specified variable.- Parameters:
variableId- The id of the variable.- Returns:
- A
JSONObjectof variable details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
makeDefaultFolder
public void makeDefaultFolder(long folderId) throws ServerException, ParseException, IOException, org.json.JSONException Make the specified folder as default.- Parameters:
folderId- Id of the variable.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getDatasources
public org.json.JSONArray getDatasources() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of all datasource for the specified workspace.- Returns:
- A
JSONArrayof datasource list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
syncData
public void syncData(long datasourceId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Initiate data sync for the specified datasource.- Parameters:
datasourceId- Id for the datasource.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateDatasourceConnection
public void updateDatasourceConnection(long datasourceId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update connection details for the specified datasource.- Parameters:
datasourceId- Id of the datasource.config- Contains the control configurations.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getTrashViews
public org.json.JSONArray getTrashViews() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of all views available in trash for the specified workspace.- Returns:
- A
JSONArrayof trash views. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
restoreTrashView
public void restoreTrashView(long viewId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Restore the specified view from trash.- Parameters:
viewId- Id of the view.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteTrashView
public void deleteTrashView(long viewId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Delete the specified view permanently from trash.- Parameters:
viewId- Id of the view.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createQueryTable
public long createQueryTable(String sqlQuery, String queryTableName, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a new query table in the workspace.- Parameters:
sqlQuery- SQL query to construct the query table.queryTableName- Name of the query table to be created.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof created query table id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getQueryTables
public org.json.JSONArray getQueryTables(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns list of all query tables for the specified workspace.- Parameters:
config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONArrayof query tables. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateQueryTable
public void updateQueryTable(long viewId, String sqlQuery, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update the mentioned query table in the workspace.- Parameters:
viewId- Id of the query table to be updated.sqlQuery- New SQL query to be updated.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
changeFolderHierarchy
public void changeFolderHierarchy(long folderId, int hierarchy, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Swaps the hierarchy of a parent folder and a subfolder.- Parameters:
folderId- Id for the folder.hierarchy- New hierarchy for the folder. (0 - Parent; 1 - Child)config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
changeFolderPosition
public void changeFolderPosition(long folderId, long referenceFolderId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Place the folder above the reference folder.- Parameters:
folderId- Id for the folder.referenceFolderId- Id of the reference folder.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
moveViewsToFolder
public void moveViewsToFolder(long folderId, org.json.JSONArray viewIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Move views to the mentioned folder.- Parameters:
folderId- Id for the folder.viewIds- Ids of the views to be moved.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceUsers
public org.json.JSONArray getWorkspaceUsers() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of users for the specified workspace.- Returns:
- A
JSONArrayof users. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
addWorkspaceUsers
public void addWorkspaceUsers(org.json.JSONArray emailIds, String role, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Add users to the specified workspace.- Parameters:
emailIds- The email address of the users to be added.role- Role of the users to be added.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
removeWorkspaceUsers
public void removeWorkspaceUsers(org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Remove users from the specified workspace.- Parameters:
emailIds- The email address of the users to be removed.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
changeWorkspaceUserStatus
public void changeWorkspaceUserStatus(org.json.JSONArray emailIds, String operation, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Change users staus in the specified workspace.- Parameters:
emailIds- Email address of the users.operation- New status for the users ( Values - activate | deactivate )config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
changeWorkspaceUserRole
public void changeWorkspaceUserRole(org.json.JSONArray emailIds, String role, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Change role of the specified users in the workspace.- Parameters:
emailIds- Email address of the users.role- Name of the role.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
exportAsTemplate
public void exportAsTemplate(org.json.JSONArray viewIds, String filePath, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Export the mentioned views as templates.- Parameters:
viewIds- Ids of the view to be exported.filePath- Path of the file where the data exported to be stored. ( Should be in 'atpt' format )config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getEmailSchedules
public org.json.JSONArray getEmailSchedules() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of email schedules available in the specified workspace.- Returns:
- A
JSONArrayof emailschedules. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createEmailSchedule
public long createEmailSchedule(String scheduleName, org.json.JSONArray viewIds, String format, org.json.JSONArray emailIds, org.json.JSONObject scheduleDetails, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create an email schedule in the specified workspace.- Parameters:
scheduleName- Name of the email schedule.viewIds- View ids to be mailed.format- The format in which the data has to be mailed.emailIds- The recipients' email addresses for sending views.scheduleDetails- Contains schedule frequency, date, and time info.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof email schedule id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateEmailSchedule
public long updateEmailSchedule(long scheduleId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update configurations of the specified email schedule in the workspace.- Parameters:
scheduleId- Id of the email schedule.config- Contains the control configurations.- Returns:
- A
longof updatd email schedule id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
triggerEmailSchedule
public void triggerEmailSchedule(long scheduleId) throws ServerException, ParseException, IOException, org.json.JSONException Trigger configured email schedules instantly.- Parameters:
scheduleId- Id of the email schedule.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
changeEmailScheduleStatus
public void changeEmailScheduleStatus(long scheduleId, String operation) throws ServerException, ParseException, IOException, org.json.JSONException Update configurations of the specified email schedule in the workspace.- Parameters:
scheduleId- Id of the email schedule.operation- New status for the email schedule ( Values - activate | deactivate )- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteEmailSchedule
public void deleteEmailSchedule(long scheduleId) throws ServerException, ParseException, IOException, org.json.JSONException Delete the specified email schedule in the workspace.- Parameters:
scheduleId- Id of the email schedule to be deleted.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAggregateFormulas
public org.json.JSONArray getAggregateFormulas(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns list of all aggregate formulas for the specified workspace.- Parameters:
config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONArrayof aggregate formulas. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAggregateFormulaDependents
public org.json.JSONObject getAggregateFormulaDependents(long formulaId) throws ServerException, ParseException, IOException, org.json.JSONException Returns list of all dependent views and formulas for the specified aggregate formula.- Parameters:
formulaId- Id of the aggregate formula.- Returns:
- A
JSONObjectof dependent views and formulas. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAggregateFormulaValue
public String getAggregateFormulaValue(long formulaId) throws ServerException, ParseException, IOException, org.json.JSONException Returns the value of the aggregate formula.- Parameters:
formulaId- Id of the aggregate formula.- Returns:
- A
Stringcontains aggregate formula value. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createReport
public long createReport(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a report in the specified workspace.- Parameters:
config- Contains the control configurations.- Returns:
- A
longof created view id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateReport
public void updateReport(long viewId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update the design and configuration of the specified report.- Parameters:
viewId- Id of the view.config- Contains the control configurations.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceMetadata
public org.json.JSONObject getWorkspaceMetadata() throws ServerException, ParseException, IOException, org.json.JSONExceptionInternally used in JDBC driver- Throws:
ServerExceptionParseExceptionIOExceptionorg.json.JSONException
-
getQueryTableDetails
public org.json.JSONObject getQueryTableDetails(String queryTableId) throws ServerException, ParseException, IOException, org.json.JSONException Returns details of the specified query table.- Parameters:
queryTableId- Id of the query table.- Returns:
- Query table details.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getAutoMLAnalysis
public org.json.JSONArray getAutoMLAnalysis() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of AutoML analysis for the specified workspace.- Returns:
- AutoML analysis list.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getAutoMLAnalysisDetails
public org.json.JSONObject getAutoMLAnalysisDetails(String analysisId) throws ServerException, ParseException, IOException, org.json.JSONException Retrieves detailed information for a specific AutoML analysis.- Parameters:
analysisId- Id of the AutoML analysis.- Returns:
- AutoML analysis details.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getDeploymentDetails
public org.json.JSONObject getDeploymentDetails(String analysisId, String modelId) throws ServerException, ParseException, IOException, org.json.JSONException Returns deployment details for a specific AutoML analysis model.- Parameters:
analysisId- Id of the AutoML analysis.modelId- Id of the AutoML analysis model.- Returns:
- Deployment details.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
createAutoMLAnalysis
public String createAutoMLAnalysis(String name, String trainingTableId, String predictionType, org.json.JSONArray features, int serverOption, org.json.JSONObject algorithms, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Creates a new AutoML analysis in the workspace.- Parameters:
name- Name of the AutoML analysis.trainingTableId- Id of the training table.predictionType- Prediction type (REGRESSION / CLASSIFICATION / CLUSTERING).features- Feature column names.serverOption- Compute size (1 -> 8GB, 2 -> 16GB, 3 -> 32GB).algorithms- Algorithms configuration.config- Additional control parameters. Can be null.- Returns:
- Created AutoML analysis Id.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deleteAutoMLAnalysis
public void deleteAutoMLAnalysis(String analysisId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Deletes a specified AutoML analysis from the workspace.- Parameters:
analysisId- Id of the AutoML analysis to be deleted.config- Additional control parameters. Can be null.- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deleteAutoMLAnalysisModel
public void deleteAutoMLAnalysisModel(String analysisId, String modelId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Deletes a specified model from an AutoML analysis.- Parameters:
analysisId- Id of the AutoML analysis.modelId- Id of the model to be deleted.config- Additional control parameters. Can be null.- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
createAutoMLAnalysisDeployment
public org.json.JSONObject createAutoMLAnalysisDeployment(String analysisId, String modelId, String inputTableId, String outputTable, org.json.JSONArray outputColumns, String predictionColumn, int serverOption, String importType, Object scheduleDetails, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Creates a deployment for an AutoML analysis model.- Parameters:
analysisId- Id of the AutoML analysis.modelId- Id of the AutoML model.inputTableId- Id of the input table.outputTable- Name of the output table.outputColumns- Columns to be included in the output table.predictionColumn- Prediction column name.serverOption- Compute size (1 -> 8GB, 2 -> 16GB, 3 -> 32GB).importType- Import type (APPEND, TRUNCATEADD, UPDATEADD).scheduleDetails- Schedule details. Can be null.config- Additional control parameters. Can be null.- Returns:
- Deployment details.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deployAutoMLAnalysis
public void deployAutoMLAnalysis(String analysisId, String deploymentId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Executes a specific AutoML deployment.- Parameters:
analysisId- Id of the AutoML analysis.deploymentId- Id of the deployment to be executed.config- Additional control parameters. Can be null.- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deleteAutoMLAnalysisDeployment
public void deleteAutoMLAnalysisDeployment(String analysisId, String deploymentId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Deletes a specific AutoML deployment.- Parameters:
analysisId- Id of the AutoML analysis.deploymentId- Id of the deployment to be deleted.config- Additional control parameters. Can be null.- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
autoMLAnalysisPrediction
public org.json.JSONObject autoMLAnalysisPrediction(String analysisId, String modelId, org.json.JSONObject features, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Generates predictions using a trained AutoML model with sample input values.- Parameters:
analysisId- Id of the AutoML analysis.modelId- Id of the AutoML model.features- Feature values for prediction.config- Additional control parameters. Can be null.- Returns:
- Prediction details.
- Throws:
ServerException- If the server failed to process the request.ParseException- If the response could not be parsed.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getTags
public org.json.JSONArray getTags() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of all tags for the specified workspace.- Returns:
- A
JSONArrayof tags list. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createTag
public long createTag(String tagName, String colorCode, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a tag in the specified workspace.- Parameters:
tagName- Name of the tag to be created.colorCode- Color of the tag in HEX color code.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof created tag id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateTag
public void updateTag(long tagId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update details of the specified tag in the workspace.- Parameters:
tagId- Id of the tag.config- Contains the control configurations.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteTag
public void deleteTag(long tagId) throws ServerException, ParseException, IOException, org.json.JSONException Delete the specified tag from the workspace.- Parameters:
tagId- Id of the tag.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
addTagToViews
public void addTagToViews(long tagId, org.json.JSONArray viewIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Adds the specified tag to multiple views in the workspace.- Parameters:
tagId- Id of the tag.viewIds- List of view ids to be associated with the tag.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
removeTagFromViews
public void removeTagFromViews(long tagId, org.json.JSONArray viewIds, boolean dissociateAll, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Removes the specified tag from multiple views in the workspace.- Parameters:
tagId- Id of the tag.viewIds- List of view ids to be dissociated. Can be null when dissociateAll is true.dissociateAll- To dissociate the tag from all associated views.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getTaggedViews
public org.json.JSONArray getTaggedViews(long tagId) throws ServerException, ParseException, IOException, org.json.JSONException Returns the list of views associated with the specified tag.- Parameters:
tagId- Id of the tag.- Returns:
- A
JSONArrayof tagged views. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getLinkedWorkspaces
public org.json.JSONArray getLinkedWorkspaces() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of workspaces linked to the specified master workspace.- Returns:
- A
JSONArrayof linked workspaces. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getLinkableWorkspaces
public org.json.JSONArray getLinkableWorkspaces() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of organizations and workspaces that can be linked to the specified master workspace.- Returns:
- A
JSONArrayof organizations with their linkable workspaces. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceLinkingCompatibility
public org.json.JSONArray getWorkspaceLinkingCompatibility(org.json.JSONArray clients, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns the linking compatibility details for the specified client workspaces.- Parameters:
clients- Contains the client workspaces to be verified for linking compatibility.config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONArrayof client workspace compatibility details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
linkWorkspaces
public void linkWorkspaces(org.json.JSONArray clients, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Link the specified client workspaces to the master workspace.- Parameters:
clients- Contains the client workspaces to be linked with the master workspace.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
unlinkWorkspaces
public void unlinkWorkspaces(String scope, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Unlink the client workspaces from the specified master workspace.- Parameters:
scope- Scope of the unlink operation.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
syncLinkedWorkspaces
public void syncLinkedWorkspaces(String scope, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Sync the metadata of the master workspace to its linked client workspaces.- Parameters:
scope- Scope of the sync operation.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getLinkedWorkspaceSyncDetails
public org.json.JSONArray getLinkedWorkspaceSyncDetails(org.json.JSONArray sandboxIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns the sync details of the specified linked workspaces.- Parameters:
sandboxIds- Ids of the linked workspaces for which the sync details are fetched.config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONArrayof linked workspace sync details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceBackups
public org.json.JSONObject getWorkspaceBackups() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns the backup configuration and the list of backups available for the specified workspace.- Returns:
- A
JSONObjectof workspace backup details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
backupWorkspaceNow
public org.json.JSONObject backupWorkspaceNow(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Trigger an instant backup for the specified workspace.- Parameters:
config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONObjectof the triggered backup details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceBackupStatus
public org.json.JSONObject getWorkspaceBackupStatus(long backupId) throws ServerException, ParseException, IOException, org.json.JSONException Returns the status of the specified workspace backup.- Parameters:
backupId- Id of the backup.- Returns:
- A
JSONObjectof backup status details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
downloadWorkspaceBackup
public void downloadWorkspaceBackup(long backupId, String filePath, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Download the specified workspace backup.- Parameters:
backupId- Id of the backup.filePath- Path of the file where the downloaded backup is to be stored.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
restoreWorkspaceFromBackup
public org.json.JSONObject restoreWorkspaceFromBackup(long backupId, boolean confirmRestore, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Restore the specified workspace from the given backup.- Parameters:
backupId- Id of the backup.confirmRestore- Passtrueto confirm that the existing workspace data can be overwritten.config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONObjectof the triggered restore details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceRestoreStatus
public org.json.JSONObject getWorkspaceRestoreStatus(long restoreId) throws ServerException, ParseException, IOException, org.json.JSONException Returns the status of the specified workspace restore.- Parameters:
restoreId- Id of the restore.- Returns:
- A
JSONObjectof restore status details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
createDashboard
public long createDashboard(String displayName, String layout, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Create a dashboard in the specified workspace.- Parameters:
displayName- Name of the dashboard.layout- Layout configuration of the dashboard.config- Contains any additional control configurations. Can be null.- Returns:
- A
longof new dashboard id. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateDashboard
public void updateDashboard(long dashboardId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update the specified dashboard in the workspace.- Parameters:
dashboardId- Id of the dashboard.config- Contains the dashboard configurations to be updated.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getDashboardMetadata
public org.json.JSONObject getDashboardMetadata(long dashboardId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns the metadata of the specified dashboard.- Parameters:
dashboardId- Id of the dashboard.config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONObjectof dashboard configuration. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getReportMetadata
public org.json.JSONObject getReportMetadata(long viewId) throws ServerException, ParseException, IOException, org.json.JSONException Returns the metadata of the specified report.- Parameters:
viewId- Id of the report.- Returns:
- A
JSONObjectof report configuration. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAlertsInWorkspace
public org.json.JSONArray getAlertsInWorkspace() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns list of data alerts available in the specified workspace.- Returns:
- A
JSONArrayof data alerts. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAlertConfiguration
public org.json.JSONObject getAlertConfiguration(long alertId) throws ServerException, ParseException, IOException, org.json.JSONException Returns the configuration of the specified data alert.- Parameters:
alertId- Id of the data alert.- Returns:
- A
JSONObjectof data alert configuration. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateAlert
public void updateAlert(long alertId, String alertName, org.json.JSONObject scheduleDetails, org.json.JSONArray rules, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update the specified data alert in the workspace.- Parameters:
alertId- Id of the data alert.alertName- Name of the data alert.scheduleDetails- Contains the schedule configurations of the data alert.rules- Contains the rules to be evaluated by the data alert.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
deleteAlerts
public void deleteAlerts(org.json.JSONArray alertIds, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Delete the specified data alerts from the workspace.- Parameters:
alertIds- Ids of the data alerts to be deleted.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
changeAlertStatus
public void changeAlertStatus(org.json.JSONArray alertIds, boolean enabled, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Enable or disable the specified data alerts in the workspace.- Parameters:
alertIds- Ids of the data alerts.enabled- Passtrueto enable the data alerts andfalseto disable them.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
runAlert
public void runAlert(long alertId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Execute the specified data alert immediately.- Parameters:
alertId- Id of the data alert.config- Contains any additional control configurations. Can be null.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getAlertEvents
public org.json.JSONObject getAlertEvents(long alertId, org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Returns the execution events of the specified data alert.- Parameters:
alertId- Id of the data alert.config- Contains any additional control configurations. Can be null.- Returns:
- A
JSONObjectof data alert events along with the page details. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
getWorkspaceAccessRestrictions
public org.json.JSONObject getWorkspaceAccessRestrictions() throws ServerException, ParseException, IOException, org.json.JSONExceptionReturns the access restriction settings configured for the specified workspace.- Returns:
- A
JSONObjectof workspace access restriction settings. - Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-
updateWorkspaceAccessRestrictions
public void updateWorkspaceAccessRestrictions(org.json.JSONObject config) throws ServerException, ParseException, IOException, org.json.JSONException Update the access restriction settings of the specified workspace.- Parameters:
config- Contains the access restriction configurations to be updated.- Throws:
ServerException- If the server has received the request but did not process the request, due to some error.ParseException- If the server has responded but the client was not able to parse the response.IOException- If any communication related errors like request time out occurs, when trying to contact the service.org.json.JSONException- If any errors while processing the JSON data.
-