public class GoodData extends Object
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("[email protected]", "Roman1");
// do something useful like: gd.getSomeService().doSomething()
gd.logout();
Modifier and Type | Field and Description |
---|---|
static String |
GDC_REQUEST_ID_HEADER
Deprecated.
use
Header.GDC_REQUEST_ID instead. |
protected static String |
HOSTNAME |
protected static int |
PORT |
protected static String |
PROTOCOL |
Modifier | Constructor and Description |
---|---|
protected |
GoodData(GoodDataEndpoint endpoint,
Authentication authentication)
Create instance configured to communicate with GoodData Platform running on given endpoint and using
given http client factory.
|
protected |
GoodData(GoodDataEndpoint endpoint,
Authentication authentication,
GoodDataSettings settings)
Create instance configured to communicate with GoodData Platform running on given endpoint and using
given http client factory.
|
|
GoodData(String login,
String password)
Create instance configured to communicate with GoodData Platform under user with given credentials.
|
|
GoodData(String login,
String password,
GoodDataSettings settings)
Create instance configured to communicate with GoodData Platform under user with given credentials.
|
|
GoodData(String hostname,
String login,
String password)
Create instance configured to communicate with GoodData Platform running on given host using given user's
credentials.
|
|
GoodData(String hostname,
String login,
String password,
GoodDataSettings settings)
Create instance configured to communicate with GoodData Platform running on given host using given user's
credentials.
|
|
GoodData(String hostname,
String login,
String password,
int port)
Create instance configured to communicate with GoodData Platform running on given host and port using given user's
credentials.
|
|
GoodData(String hostname,
String login,
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.
|
protected |
GoodData(String hostname,
String login,
String password,
int port,
String protocol,
GoodDataSettings settings)
Create instance configured to communicate with GoodData Platform running on given host, port and protocol using
given user's credentials.
|
Modifier and Type | Method and Description |
---|---|
AccountService |
getAccountService()
Get initialized service for account management (to get current account information, logout, ...)
|
AuditEventService |
getAuditEventService()
Get initialized service for audit events
|
ConnectorService |
getConnectorService()
Get initialized service for connector integration management (create, update, start process, ...).
|
DatasetService |
getDatasetService()
Get initialized service for dataset management (to list manifest, get datasets, load dataset, ...)
|
DataStoreService |
getDataStoreService()
Get initialized service for data store (user staging/WebDAV) management (to upload, download, delete, ...)
|
ExecuteAfmService |
getExecuteAfmService()
Get initialized service for afm execution
|
ExportImportService |
getExportImportService()
Get initialized service for metadata export/import.
|
ExportService |
getExportService()
Get initialized service for exports management (export report,...)
|
FeatureFlagService |
getFeatureFlagService()
Get initialized service for feature flag management.
|
GdcService |
getGdcService()
Get initialized service for API root management (to get API root links, ...)
|
protected org.apache.http.client.HttpClient |
getHttpClient()
Get the configured
HttpClient used by the library. |
LcmService |
getLcmService()
Get initialized service for Life Cycle Management
|
MetadataService |
getMetadataService()
Get initialized service for metadata management (to query, create and update project metadata like attributes,
facts, metrics, reports, ...)
|
ModelService |
getModelService()
Get initialized service for model management (to get model diff, update model, ...)
|
NotificationService |
getNotificationService()
Get initialized service for project notifications management.
|
OutputStageService |
getOutputStageService()
Get initialized service for output stage management.
|
ProcessService |
getProcessService()
Get initialized service for dataload processes management and process executions.
|
ProjectService |
getProjectService()
Get initialized service for project management (to list projects, create a project, ...)
|
ProjectTemplateService |
getProjectTemplateService()
Get initialized service for project templates
|
ReportService |
getReportService()
Get initialized service for report management (to execute and export report, ...)
|
protected org.springframework.web.client.RestTemplate |
getRestTemplate()
Get the configured
RestTemplate used by the library. |
WarehouseService |
getWarehouseService()
Get initialized service for ADS management (create, access and delete ads instances).
|
void |
logout()
Logout from GoodData Platform
|
@Deprecated public static final String GDC_REQUEST_ID_HEADER
Header.GDC_REQUEST_ID
instead.protected static final String PROTOCOL
protected static final int PORT
protected static final String HOSTNAME
public GoodData(String login, String password)
login
- GoodData user's loginpassword
- GoodData user's passwordpublic GoodData(String login, String password, GoodDataSettings settings)
login
- GoodData user's loginpassword
- GoodData user's passwordsettings
- additional settingspublic GoodData(String hostname, String login, String password)
hostname
- GoodData Platform's host name (e.g. secure.gooddata.com)login
- GoodData user's loginpassword
- GoodData user's passwordpublic GoodData(String hostname, String login, String password, GoodDataSettings settings)
hostname
- GoodData Platform's host name (e.g. secure.gooddata.com)login
- GoodData user's loginpassword
- GoodData user's passwordsettings
- additional settingspublic GoodData(String hostname, String login, String password, int port)
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)public GoodData(String hostname, String login, String password, int port, GoodDataSettings settings)
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 settingsprotected GoodData(String hostname, String login, String password, int port, String protocol, GoodDataSettings settings)
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 settingsprotected GoodData(GoodDataEndpoint endpoint, Authentication authentication)
endpoint
- GoodData Platform's endpointauthentication
- authenticationprotected GoodData(GoodDataEndpoint endpoint, Authentication authentication, GoodDataSettings settings)
endpoint
- GoodData Platform's endpointauthentication
- authenticationsettings
- additional settingsprotected final org.springframework.web.client.RestTemplate getRestTemplate()
RestTemplate
used by the library.
This is the extension point for inheriting classes providing additional services.protected final org.apache.http.client.HttpClient getHttpClient()
HttpClient
used by the library.
This is the extension point for inheriting classes providing additional services.public void logout()
@Bean public ProjectService getProjectService()
@Bean public AccountService getAccountService()
@Bean public MetadataService getMetadataService()
@Bean public ModelService getModelService()
@Bean public GdcService getGdcService()
@Bean public DataStoreService getDataStoreService()
@Bean public DatasetService getDatasetService()
@Bean public ReportService getReportService()
@Bean public ExportService getExportService()
@Bean public ProcessService getProcessService()
@Bean public WarehouseService getWarehouseService()
@Bean public ConnectorService getConnectorService()
@Bean public NotificationService getNotificationService()
@Bean public ExportImportService getExportImportService()
@Bean public FeatureFlagService getFeatureFlagService()
@Bean public OutputStageService getOutputStageService()
@Bean public ProjectTemplateService getProjectTemplateService()
@Bean public AuditEventService getAuditEventService()
@Bean public ExecuteAfmService getExecuteAfmService()
@Bean public LcmService getLcmService()
Copyright © 2019. All rights reserved.