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("roman@gooddata.com", "Roman1");
// do something useful like: gd.getSomeService().doSomething()
gd.logout();
| Modifier and Type | Field and Description |
|---|---|
static String |
GDC_REQUEST_ID_HEADER |
protected static String |
HOSTNAME |
protected static int |
PORT |
protected static String |
PROTOCOL |
| Modifier | Constructor and Description |
|---|---|
|
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 |
|---|---|
protected org.apache.http.client.HttpClient |
createHttpClient(String login,
String password,
String hostname,
int port,
String protocol,
org.apache.http.impl.client.HttpClientBuilder builder) |
AccountService |
getAccountService()
Get initialized service for account management (to get current account information, logout, ...)
|
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, ...)
|
GdcService |
getGdcService()
Get initialized service for API root management (to get API root links, ...)
|
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, ...)
|
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, ...)
|
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
|
public static final String GDC_REQUEST_ID_HEADER
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 org.apache.http.client.HttpClient createHttpClient(String login, String password, String hostname, int port, String protocol, org.apache.http.impl.client.HttpClientBuilder builder)
protected final org.springframework.web.client.RestTemplate getRestTemplate()
RestTemplate used by the library.
This is the extension point for inheriting classes providing additional services.public void logout()
public ProjectService getProjectService()
public AccountService getAccountService()
public MetadataService getMetadataService()
public ModelService getModelService()
public GdcService getGdcService()
public DataStoreService getDataStoreService()
public DatasetService getDatasetService()
public ReportService getReportService()
public ProcessService getProcessService()
public WarehouseService getWarehouseService()
public ConnectorService getConnectorService()
Copyright © 2015. All Rights Reserved.