class BellaDatiServiceImpl extends Object implements com.belladati.sdk.BellaDatiService
| Modifier and Type | Field and Description |
|---|---|
(package private) BellaDatiClient |
client |
static String |
DATE_TIME_FORMAT |
(package private) TokenHolder |
tokenHolder |
| Constructor and Description |
|---|
BellaDatiServiceImpl(BellaDatiClient client,
TokenHolder tokenHolder) |
| Modifier and Type | Method and Description |
|---|---|
(package private) com.belladati.httpclientandroidlib.client.utils.URIBuilder |
appendDateTime(com.belladati.httpclientandroidlib.client.utils.URIBuilder builder,
com.belladati.sdk.intervals.Interval<com.belladati.sdk.intervals.DateUnit> dateInterval,
com.belladati.sdk.intervals.Interval<com.belladati.sdk.intervals.TimeUnit> timeInterval)
Appends a date/time definition parameter to the URI builder.
|
(package private) com.belladati.httpclientandroidlib.client.utils.URIBuilder |
appendFilter(com.belladati.httpclientandroidlib.client.utils.URIBuilder builder,
Collection<com.belladati.sdk.filter.Filter<?>> filters)
Appends a filter parameter from the given filters to the URI builder.
|
com.belladati.sdk.view.ViewLoader |
createViewLoader(String viewId,
com.belladati.sdk.view.ViewType viewType) |
com.belladati.sdk.util.CachedList<com.belladati.sdk.report.AttributeValue> |
getAttributeValues(String reportId,
String attributeCode) |
com.belladati.sdk.util.PaginatedIdList<com.belladati.sdk.dashboard.DashboardInfo> |
getDashboardInfo() |
com.belladati.sdk.util.PaginatedIdList<com.belladati.sdk.dataset.DataSetInfo> |
getDataSetInfo() |
com.belladati.sdk.util.CachedList<com.belladati.sdk.dataset.source.DataSourceImport> |
getDataSourceImports(String id) |
com.belladati.sdk.util.CachedList<com.belladati.sdk.dataset.source.DataSource> |
getDataSources(String id) |
com.belladati.sdk.util.PaginatedList<com.belladati.sdk.report.Comment> |
getReportComments(String reportId) |
com.belladati.sdk.util.PaginatedIdList<com.belladati.sdk.report.ReportInfo> |
getReportInfo() |
com.belladati.sdk.dashboard.Dashboard |
loadDashboard(String id) |
Object |
loadDashboardThumbnail(String id) |
com.belladati.sdk.dataset.DataSet |
loadDataSet(String id) |
(package private) com.fasterxml.jackson.databind.JsonNode |
loadJson(String uri)
Convenience method for other parts of the implementation to easily load
data through the API.
|
com.belladati.sdk.report.Report |
loadReport(String id) |
Object |
loadReportThumbnail(String reportId) |
com.belladati.sdk.user.User |
loadUser(String userId) |
Object |
loadUserImage(String userId) |
Object |
loadViewContent(String viewId,
com.belladati.sdk.view.ViewType viewType,
Collection<com.belladati.sdk.filter.Filter<?>> filters) |
Object |
loadViewContent(String viewId,
com.belladati.sdk.view.ViewType viewType,
com.belladati.sdk.filter.Filter<?>... filters) |
void |
postComment(String reportId,
String text) |
com.belladati.sdk.dataset.source.DataSourcePendingImport |
setupDataSourceImport(String id,
Date date) |
String |
toString() |
void |
uploadData(String id,
com.belladati.sdk.dataset.data.DataTable data) |
public static final String DATE_TIME_FORMAT
final BellaDatiClient client
final TokenHolder tokenHolder
BellaDatiServiceImpl(BellaDatiClient client, TokenHolder tokenHolder)
public com.belladati.sdk.util.PaginatedIdList<com.belladati.sdk.dashboard.DashboardInfo> getDashboardInfo()
getDashboardInfo in interface com.belladati.sdk.BellaDatiServicepublic com.belladati.sdk.dashboard.Dashboard loadDashboard(String id)
loadDashboard in interface com.belladati.sdk.BellaDatiServicepublic Object loadDashboardThumbnail(String id) throws IOException
loadDashboardThumbnail in interface com.belladati.sdk.BellaDatiServiceIOExceptionpublic com.belladati.sdk.util.PaginatedIdList<com.belladati.sdk.report.ReportInfo> getReportInfo()
getReportInfo in interface com.belladati.sdk.BellaDatiServicepublic com.belladati.sdk.report.Report loadReport(String id)
loadReport in interface com.belladati.sdk.BellaDatiServicepublic Object loadReportThumbnail(String reportId) throws IOException
loadReportThumbnail in interface com.belladati.sdk.BellaDatiServiceIOExceptioncom.fasterxml.jackson.databind.JsonNode loadJson(String uri)
uri - URI to contactpublic com.belladati.sdk.util.PaginatedList<com.belladati.sdk.report.Comment> getReportComments(String reportId)
getReportComments in interface com.belladati.sdk.BellaDatiServicepublic void postComment(String reportId, String text)
postComment in interface com.belladati.sdk.BellaDatiServicepublic Object loadViewContent(String viewId, com.belladati.sdk.view.ViewType viewType, com.belladati.sdk.filter.Filter<?>... filters)
loadViewContent in interface com.belladati.sdk.BellaDatiServicepublic Object loadViewContent(String viewId, com.belladati.sdk.view.ViewType viewType, Collection<com.belladati.sdk.filter.Filter<?>> filters)
loadViewContent in interface com.belladati.sdk.BellaDatiServicepublic com.belladati.sdk.view.ViewLoader createViewLoader(String viewId, com.belladati.sdk.view.ViewType viewType)
createViewLoader in interface com.belladati.sdk.BellaDatiServicepublic com.belladati.sdk.util.CachedList<com.belladati.sdk.dataset.source.DataSource> getDataSources(String id) throws com.belladati.sdk.exception.server.NotFoundException
getDataSources in interface com.belladati.sdk.BellaDatiServicecom.belladati.sdk.exception.server.NotFoundExceptionpublic com.belladati.sdk.util.CachedList<com.belladati.sdk.dataset.source.DataSourceImport> getDataSourceImports(String id) throws com.belladati.sdk.exception.server.NotFoundException
getDataSourceImports in interface com.belladati.sdk.BellaDatiServicecom.belladati.sdk.exception.server.NotFoundExceptionpublic com.belladati.sdk.dataset.source.DataSourcePendingImport setupDataSourceImport(String id, Date date)
setupDataSourceImport in interface com.belladati.sdk.BellaDatiServicecom.belladati.httpclientandroidlib.client.utils.URIBuilder appendFilter(com.belladati.httpclientandroidlib.client.utils.URIBuilder builder,
Collection<com.belladati.sdk.filter.Filter<?>> filters)
builder - the builder to append tofilters - filters to appendcom.belladati.httpclientandroidlib.client.utils.URIBuilder appendDateTime(com.belladati.httpclientandroidlib.client.utils.URIBuilder builder,
com.belladati.sdk.intervals.Interval<com.belladati.sdk.intervals.DateUnit> dateInterval,
com.belladati.sdk.intervals.Interval<com.belladati.sdk.intervals.TimeUnit> timeInterval)
builder - the builder to append todateInterval - date interval to append, or nulltimeInterval - time interval to append, or nullpublic com.belladati.sdk.util.CachedList<com.belladati.sdk.report.AttributeValue> getAttributeValues(String reportId, String attributeCode)
getAttributeValues in interface com.belladati.sdk.BellaDatiServicepublic com.belladati.sdk.user.User loadUser(String userId)
loadUser in interface com.belladati.sdk.BellaDatiServicepublic Object loadUserImage(String userId) throws IOException
loadUserImage in interface com.belladati.sdk.BellaDatiServiceIOExceptionpublic com.belladati.sdk.util.PaginatedIdList<com.belladati.sdk.dataset.DataSetInfo> getDataSetInfo()
getDataSetInfo in interface com.belladati.sdk.BellaDatiServicepublic com.belladati.sdk.dataset.DataSet loadDataSet(String id) throws com.belladati.sdk.exception.server.NotFoundException
loadDataSet in interface com.belladati.sdk.BellaDatiServicecom.belladati.sdk.exception.server.NotFoundExceptionpublic void uploadData(String id, com.belladati.sdk.dataset.data.DataTable data)
uploadData in interface com.belladati.sdk.BellaDatiServiceCopyright © 2014. All rights reserved.