Package com.zoho.analytics.client
Class WorkspaceAPI
- java.lang.Object
-
- com.zoho.analytics.client.WorkspaceAPI
-
public class WorkspaceAPI extends java.lang.ObjectWorkspaceAPI contains workspace level operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorkspaceAPI(AnalyticsClient ac, long orgId, long workspaceId)Creates a newWorkspaceAPIinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdmins(org.json.JSONArray emailIds, org.json.JSONObject config)Add admins for the specified workspace.voidaddDefault()Adds a specified workspace as default.voidaddFavorite()Adds a specified workspace as favorite.voidaddGroupMembers(long groupId, org.json.JSONArray emailIds, org.json.JSONObject config)Add users to the specified group.voidaddWorkspaceUsers(org.json.JSONArray emailIds, java.lang.String role, org.json.JSONObject config)Add users to the specified workspace.org.json.JSONObjectautoMLAnalysisPrediction(java.lang.String analysisId, java.lang.String modelId, org.json.JSONObject features, org.json.JSONObject config)Generates predictions using a trained AutoML model with sample input values.voidchangeEmailScheduleStatus(long scheduleId, java.lang.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, java.lang.String role, org.json.JSONObject config)Change role of the specified users in the workspace.voidchangeWorkspaceUserStatus(org.json.JSONArray emailIds, java.lang.String operation, org.json.JSONObject config)Change users staus in the specified workspace.longcopy(java.lang.String newWorkspaceName, org.json.JSONObject config, java.lang.Long destOrgId)Copy 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, java.lang.Long destOrgId)Copy the specified views from one workspace to another workspace.java.lang.StringcreateAutoMLAnalysis(java.lang.String name, java.lang.String trainingTableId, java.lang.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(java.lang.String analysisId, java.lang.String modelId, java.lang.String inputTableId, java.lang.String outputTable, org.json.JSONArray outputColumns, java.lang.String predictionColumn, int serverOption, java.lang.String importType, java.lang.Object scheduleDetails, org.json.JSONObject config)Creates a deployment for an AutoML analysis model.longcreateEmailSchedule(java.lang.String scheduleName, org.json.JSONArray viewIds, java.lang.String format, org.json.JSONArray emailIds, org.json.JSONObject scheduleDetails, org.json.JSONObject config)Create an email schedule in the specified workspace.longcreateFolder(java.lang.String folderName, org.json.JSONObject config)Create a folder in the specified workspace.java.lang.StringcreateGroup(java.lang.String groupName, org.json.JSONArray emailIds, org.json.JSONObject config)Create a group in the specified workspace.longcreateQueryTable(java.lang.String sqlQuery, java.lang.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(java.lang.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.longcreateVariable(java.lang.String variableName, int variableDataType, int variableType, org.json.JSONObject config)Create a variable in the workspace.voiddelete()Delete a specified workspace in the organization.voiddeleteAutoMLAnalysis(java.lang.String analysisId, org.json.JSONObject config)Deletes a specified AutoML analysis from the workspace.voiddeleteAutoMLAnalysisDeployment(java.lang.String analysisId, java.lang.String deploymentId, org.json.JSONObject config)Deletes a specific AutoML deployment.voiddeleteAutoMLAnalysisModel(java.lang.String analysisId, java.lang.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.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(java.lang.String analysisId, java.lang.String deploymentId, org.json.JSONObject config)Executes a specific AutoML deployment.voiddisableDomainAccess()Disable workspace from the specified white label domain.voidenableDomainAccess()Enable workspace to the specified white label domain.voidexportAsTemplate(org.json.JSONArray viewIds, java.lang.String filePath, org.json.JSONObject config)Export the mentioned views as templates.org.json.JSONArraygetAdmins()Returns 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.java.lang.StringgetAggregateFormulaValue(long formulaId)Returns the value of the aggregate formula.org.json.JSONArraygetAutoMLAnalysis()Returns list of AutoML analysis for the specified workspace.org.json.JSONObjectgetAutoMLAnalysisDetails(java.lang.String analysisId)Retrieves detailed information for a specific AutoML analysis.org.json.JSONArraygetDatasources()Returns list of all datasource for the specified workspace.org.json.JSONObjectgetDeploymentDetails(java.lang.String analysisId, java.lang.String modelId)Returns deployment details for a specific AutoML analysis model.org.json.JSONArraygetEmailSchedules()Returns list of email schedules available in the specified workspace.org.json.JSONArraygetFolders()Returns list of all accessible folders for the specified workspace.org.json.JSONObjectgetGroupDetails(long groupId)Returns details of the specified group.org.json.JSONArraygetGroups()Returns list of groups for the specified workspace.org.json.JSONObjectgetQueryTableDetails(java.lang.String queryTableId)Returns details of the specified query table.java.lang.StringgetSecretKey(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.ShareInfogetShareInfo()Returns shared details of the specified workspace.org.json.JSONObjectgetSlideshowDetails(long slideId)Returns details of the specified slideshow.org.json.JSONArraygetSlideshows()Returns list of slideshows for the specified workspace.java.lang.StringgetSlideshowURL(long slideId, org.json.JSONObject config)Returns slide URL to access the specified slideshow.org.json.JSONArraygetTrashViews()Returns list of all views available in trash for the specified workspace.org.json.JSONObjectgetVariableDetails(long variableId)Returns details of the specified variable.org.json.JSONArraygetVariables()Returns 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.JSONObjectgetWorkspaceMetadata()Internally used in JDBC driverorg.json.JSONArraygetWorkspaceUsers()Returns list of users for the specified 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.voidremoveDefault()Remove a specified workspace from default.voidremoveFavorite()Remove 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.voidremoveWorkspaceUsers(org.json.JSONArray emailIds, org.json.JSONObject config)Remove users from the specified workspace.voidrename(java.lang.String workspaceName, org.json.JSONObject config)Rename a specified workspace in the organization.voidrenameFolder(long folderId, java.lang.String folderName, org.json.JSONObject config)Rename a specified folder in the workspace.voidrenameGroup(long groupId, java.lang.String groupName, org.json.JSONObject config)Rename a specified group.voidrestoreTrashView(long viewId, org.json.JSONObject config)Restore the specified view from trash.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.voidtriggerEmailSchedule(long scheduleId)Trigger configured email schedules instantly.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, java.lang.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.voidupdateVariable(long variableId, java.lang.String variableName, int variableDataType, int variableType, org.json.JSONObject config)Update details of the specified variable in the workspace.
-
-
-
Constructor Detail
-
WorkspaceAPI
protected WorkspaceAPI(AnalyticsClient ac, long orgId, long workspaceId)
Creates a newWorkspaceAPIinstance.- Parameters:
ac-AnalyticsClientinstance.orgId- The ID of the organization.workspaceId- The ID of the workspace.
-
-
Method Detail
-
rename
public void rename(java.lang.String workspaceName, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionRename 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.java.io.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
public void delete() throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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 java.lang.String getSecretKey(org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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(java.lang.String newWorkspaceName, org.json.JSONObject config, java.lang.Long destOrgId) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCopy 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.java.io.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, java.io.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.java.io.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, java.io.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.java.io.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, java.io.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.java.io.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, java.io.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.java.io.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, java.io.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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionDeprecated.- Throws:
ServerExceptionParseExceptionjava.io.IOExceptionorg.json.JSONException
-
getViews
public org.json.JSONArray getViews(org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.lang.Long destOrgId) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCopy 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.java.io.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, java.io.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.java.io.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(java.lang.String folderName, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.lang.String folderName, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionRename 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.java.io.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, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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 java.lang.String createGroup(java.lang.String groupName, org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.lang.String groupName, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionRename 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.java.io.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, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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, java.io.IOException, org.json.JSONExceptionAdd 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.java.io.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, java.io.IOException, org.json.JSONExceptionRemove 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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionAdd 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.java.io.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, java.io.IOException, org.json.JSONExceptionRemove 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.java.io.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.
-
getShareInfo
public ShareInfo getShareInfo() throws ServerException, ParseException, java.io.IOException, org.json.JSONException
Returns shared details of the specified workspace.- Returns:
- A
ShareInfoobject. - 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.java.io.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.
-
shareViews
public void shareViews(org.json.JSONArray viewIds, org.json.JSONArray emailIds, org.json.JSONObject permissions, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionShare views to the specified users.- Parameters:
viewIds- View ids which to be shared.emailIds- The email address of the users to whom the views need to be shared.permissions- Contains permission details.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.java.io.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.
-
removeShare
public void removeShare(org.json.JSONArray viewIds, org.json.JSONArray emailIds, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionRemove shared views for the specified users.- Parameters:
viewIds- View ids whose sharing needs to be removed.emailIds- The email address of the users to whom the sharing need 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.java.io.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.
-
getSharedDetailsForViews
public org.json.JSONArray getSharedDetailsForViews(org.json.JSONArray viewIds) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns shared details of the specified views.- Parameters:
viewIds- Ids of the view to be included in the slideshow.- Returns:
- A
JSONArrayof shared info of 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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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 java.lang.String getSlideshowURL(long slideId, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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(java.lang.String slideName, org.json.JSONArray viewIds, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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(java.lang.String variableName, int variableDataType, int variableType, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.lang.String variableName, int variableDataType, int variableType, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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, java.io.IOException, org.json.JSONExceptionMake 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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionInitiate 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.java.io.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, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.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.java.io.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, java.io.IOException, org.json.JSONExceptionRestore 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.java.io.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, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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(java.lang.String sqlQuery, java.lang.String queryTableName, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.lang.String sqlQuery, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.IOException, org.json.JSONExceptionSwaps 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.java.io.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, java.io.IOException, org.json.JSONExceptionPlace 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.java.io.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, java.io.IOException, org.json.JSONExceptionMove 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.java.io.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, java.io.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.java.io.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, java.lang.String role, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionAdd 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.java.io.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, java.io.IOException, org.json.JSONExceptionRemove 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.java.io.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, java.lang.String operation, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionChange 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.java.io.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, java.lang.String role, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionChange 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.java.io.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, java.lang.String filePath, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionExport 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.java.io.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, java.io.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.java.io.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(java.lang.String scheduleName, org.json.JSONArray viewIds, java.lang.String format, org.json.JSONArray emailIds, org.json.JSONObject scheduleDetails, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.IOException, org.json.JSONExceptionTrigger 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.java.io.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, java.lang.String operation) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.IOException, org.json.JSONExceptionDelete 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.java.io.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, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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 java.lang.String getAggregateFormulaValue(long formulaId) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.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, java.io.IOException, org.json.JSONExceptionCreate 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.java.io.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, java.io.IOException, org.json.JSONExceptionUpdate 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.java.io.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, java.io.IOException, org.json.JSONExceptionInternally used in JDBC driver- Throws:
ServerExceptionParseExceptionjava.io.IOExceptionorg.json.JSONException
-
getQueryTableDetails
public org.json.JSONObject getQueryTableDetails(java.lang.String queryTableId) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getAutoMLAnalysis
public org.json.JSONArray getAutoMLAnalysis() throws ServerException, ParseException, java.io.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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getAutoMLAnalysisDetails
public org.json.JSONObject getAutoMLAnalysisDetails(java.lang.String analysisId) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionRetrieves 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
getDeploymentDetails
public org.json.JSONObject getDeploymentDetails(java.lang.String analysisId, java.lang.String modelId) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionReturns 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
createAutoMLAnalysis
public java.lang.String createAutoMLAnalysis(java.lang.String name, java.lang.String trainingTableId, java.lang.String predictionType, org.json.JSONArray features, int serverOption, org.json.JSONObject algorithms, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreates 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deleteAutoMLAnalysis
public void deleteAutoMLAnalysis(java.lang.String analysisId, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionDeletes 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deleteAutoMLAnalysisModel
public void deleteAutoMLAnalysisModel(java.lang.String analysisId, java.lang.String modelId, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionDeletes 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
createAutoMLAnalysisDeployment
public org.json.JSONObject createAutoMLAnalysisDeployment(java.lang.String analysisId, java.lang.String modelId, java.lang.String inputTableId, java.lang.String outputTable, org.json.JSONArray outputColumns, java.lang.String predictionColumn, int serverOption, java.lang.String importType, java.lang.Object scheduleDetails, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionCreates 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deployAutoMLAnalysis
public void deployAutoMLAnalysis(java.lang.String analysisId, java.lang.String deploymentId, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionExecutes 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
deleteAutoMLAnalysisDeployment
public void deleteAutoMLAnalysisDeployment(java.lang.String analysisId, java.lang.String deploymentId, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionDeletes 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
autoMLAnalysisPrediction
public org.json.JSONObject autoMLAnalysisPrediction(java.lang.String analysisId, java.lang.String modelId, org.json.JSONObject features, org.json.JSONObject config) throws ServerException, ParseException, java.io.IOException, org.json.JSONExceptionGenerates 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.java.io.IOException- If communication errors occur.org.json.JSONException- If JSON processing fails.
-
-