Package com.gooddata.sdk.service
Class GoodData
java.lang.Object
com.gooddata.sdk.service.GoodData
public class GoodData
extends java.lang.Object
Entry point for GoodData SDK usage.
Configure connection to GoodData using one of constructors. One can then get initialized service he needs from the newly constructed instance. This instance can be also used later for logout from GoodData Platform.
Usage example:
GoodData gd = new GoodData("roman@gooddata.com", "Roman1");
// do something useful like: gd.getSomeService().doSomething()
gd.logout();
-
Constructor Summary
Constructors Modifier Constructor Description protectedGoodData(GoodDataRestProvider goodDataRestProvider)Create instance based on givenGoodDataRestProvider.GoodData(java.lang.String login, java.lang.String password)Create instance configured to communicate with GoodData Platform under user with given credentials.GoodData(java.lang.String login, java.lang.String password, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform under user with given credentials.GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password)Create instance configured to communicate with GoodData Platform running on given host using given user's credentials.GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, int port)Create instance configured to communicate with GoodData Platform running on given host and port using given user's credentials.GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, int port, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform running on given host and port using given user's credentials.GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, int port, java.lang.String protocol, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform running on given host, port and protocol using given user's credentials.GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform running on given host using given user's credentials. -
Method Summary
Modifier and Type Method Description AccountServicegetAccountService()Get initialized service for account management (to get current account information, logout, ...)AuditEventServicegetAuditEventService()Get initialized service for audit eventsConnectorServicegetConnectorService()Get initialized service for connector integration management (create, update, start process, ...).DatasetServicegetDatasetService()Get initialized service for dataset management (to list manifest, get datasets, load dataset, ...)DataStoreServicegetDataStoreService()Get initialized service for data store (user staging/WebDAV) management (to upload, download, delete, ...)ExecuteAfmServicegetExecuteAfmService()Get initialized service for afm executionExportImportServicegetExportImportService()Get initialized service for metadata export/import.ExportServicegetExportService()Get initialized service for exports management (export report,...)FeatureFlagServicegetFeatureFlagService()Deprecated.UseHierarchicalConfigServiceinstead.GdcServicegetGdcService()Get initialized service for API root management (to get API root links, ...)HierarchicalConfigServicegetHierarchicalConfigService()Get initialized service for hierarchical config managementLcmServicegetLcmService()Get initialized service for Life Cycle ManagementMetadataServicegetMetadataService()Get initialized service for metadata management (to query, create and update project metadata like attributes, facts, metrics, reports, ...)ModelServicegetModelService()Get initialized service for model management (to get model diff, update model, ...)NotificationServicegetNotificationService()Get initialized service for project notifications management.OutputStageServicegetOutputStageService()Get initialized service for output stage management.ProcessServicegetProcessService()Get initialized service for dataload processes management and process executions.ProjectServicegetProjectService()Get initialized service for project management (to list projects, create a project, ...)ProjectTemplateServicegetProjectTemplateService()Deprecated.The project templates are deprecated and stopped working on May 15, 2019.protected org.springframework.web.client.RestTemplategetRestTemplate()WarehouseServicegetWarehouseService()Get initialized service for ADS management (create, access and delete ads instances).voidlogout()Logout from GoodData Platform
-
Constructor Details
-
GoodData
public GoodData(java.lang.String login, java.lang.String password)Create instance configured to communicate with GoodData Platform under user with given credentials.- Parameters:
login- GoodData user's loginpassword- GoodData user's password
-
GoodData
Create instance configured to communicate with GoodData Platform under user with given credentials.- Parameters:
login- GoodData user's loginpassword- GoodData user's passwordsettings- additional settings
-
GoodData
public GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password)Create instance configured to communicate with GoodData Platform running on given host using given user's credentials.- Parameters:
hostname- GoodData Platform's host name (e.g. secure.gooddata.com)login- GoodData user's loginpassword- GoodData user's password
-
GoodData
public GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform running on given host using given user's credentials.- Parameters:
hostname- GoodData Platform's host name (e.g. secure.gooddata.com)login- GoodData user's loginpassword- GoodData user's passwordsettings- additional settings
-
GoodData
public GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, int port)Create instance configured to communicate with GoodData Platform running on given host and port using given user's credentials.- Parameters:
hostname- GoodData Platform's host name (e.g. secure.gooddata.com)login- GoodData user's loginpassword- GoodData user's passwordport- GoodData Platform's API port (e.g. 443)
-
GoodData
public GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, int port, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform running on given host and port using given user's credentials.- Parameters:
hostname- GoodData Platform's host name (e.g. secure.gooddata.com)login- GoodData user's loginpassword- GoodData user's passwordport- GoodData Platform's API port (e.g. 443)settings- additional settings
-
GoodData
public GoodData(java.lang.String hostname, java.lang.String login, java.lang.String password, int port, java.lang.String protocol, GoodDataSettings settings)Create instance configured to communicate with GoodData Platform running on given host, port and protocol using given user's credentials.- Parameters:
hostname- GoodData Platform's host name (e.g. secure.gooddata.com)login- GoodData user's loginpassword- GoodData user's passwordport- GoodData Platform's API port (e.g. 443)protocol- GoodData Platform's API protocol (e.g. https)settings- additional settings
-
GoodData
Create instance based on givenGoodDataRestProvider.- Parameters:
goodDataRestProvider- configured provider
-
-
Method Details
-
getRestTemplate
protected org.springframework.web.client.RestTemplate getRestTemplate()- Returns:
- underlying RestTemplate
-
logout
public void logout()Logout from GoodData Platform -
getProjectService
Get initialized service for project management (to list projects, create a project, ...)- Returns:
- initialized service for project management
-
getAccountService
Get initialized service for account management (to get current account information, logout, ...)- Returns:
- initialized service for account management
-
getMetadataService
Get initialized service for metadata management (to query, create and update project metadata like attributes, facts, metrics, reports, ...)- Returns:
- initialized service for metadata management
-
getModelService
Get initialized service for model management (to get model diff, update model, ...)- Returns:
- initialized service for model management
-
getGdcService
Get initialized service for API root management (to get API root links, ...)- Returns:
- initialized service for API root management
-
getDataStoreService
Get initialized service for data store (user staging/WebDAV) management (to upload, download, delete, ...)- Returns:
- initialized service for data store management
-
getDatasetService
Get initialized service for dataset management (to list manifest, get datasets, load dataset, ...)- Returns:
- initialized service for dataset management
-
getExportService
Get initialized service for exports management (export report,...)- Returns:
- initialized service for exports
-
getProcessService
Get initialized service for dataload processes management and process executions.- Returns:
- initialized service for dataload processes management and process executions
-
getWarehouseService
Get initialized service for ADS management (create, access and delete ads instances).- Returns:
- initialized service for ADS management
-
getConnectorService
Get initialized service for connector integration management (create, update, start process, ...).- Returns:
- initialized service for connector integration management
-
getNotificationService
Get initialized service for project notifications management.- Returns:
- initialized service for project notifications management
-
getExportImportService
Get initialized service for metadata export/import.- Returns:
- initialized service for metadata export/import
-
getFeatureFlagService
Deprecated.UseHierarchicalConfigServiceinstead.Get initialized service for feature flag management.- Returns:
- initialized service for feature flag management
-
getOutputStageService
Get initialized service for output stage management.- Returns:
- initialized service for output stage management
-
getProjectTemplateService
@Deprecated @Bean("goodDataProjectTemplateService") public ProjectTemplateService getProjectTemplateService()Deprecated.The project templates are deprecated and stopped working on May 15, 2019. See https://support.gooddata.com/hc/en-us/articles/360016126334-April-4-2019 Deprecated since version 3.0.1. Will be removed in one of future versions.Get initialized service for project templates- Returns:
- initialized service for project templates
-
getAuditEventService
Get initialized service for audit events- Returns:
- initialized service for audit events
-
getExecuteAfmService
Get initialized service for afm execution- Returns:
- initialized service for afm execution
-
getLcmService
Get initialized service for Life Cycle Management- Returns:
- initialized service for Life Cycle Management
-
getHierarchicalConfigService
@Bean("goodDataHierarchicalConfigService") public HierarchicalConfigService getHierarchicalConfigService()Get initialized service for hierarchical config management- Returns:
- hierarchical config service
-