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 |
| Constructor and Description |
|---|
GoodData(String login,
String password)
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,
int port)
Create instance configured to communicate with GoodData Platform running on given host and port 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() |
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() |
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, ...)
|
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
public GoodData(String login, String password)
login - GoodData user's loginpassword - GoodData user's passwordpublic 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, 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)protected org.apache.http.client.HttpClient createHttpClient(String login, String password, String hostname, int port, String protocol, org.apache.http.impl.client.HttpClientBuilder builder)
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 © 2014. All Rights Reserved.