public class DashboardServiceImpl extends PersistedServiceImpl implements DashboardService
mongoConnection| Constructor and Description |
|---|
DashboardServiceImpl(MongoConnection mongoConnection,
com.codahale.metrics.MetricRegistry metricRegistry,
Indexer indexer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWidget(Dashboard dashboard,
DashboardWidget widget) |
List<Dashboard> |
all() |
Dashboard |
load(String id) |
void |
removeWidget(Dashboard dashboard,
DashboardWidget widget) |
void |
updateWidgetCacheTime(Dashboard dashboard,
DashboardWidget widget,
int cacheTime) |
void |
updateWidgetDescription(Dashboard dashboard,
DashboardWidget widget,
String newDescription) |
void |
updateWidgetPositions(Dashboard dashboard,
List<WidgetPositionRequest> positions) |
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroyAll, save, saveWithoutValidation, validate, validate, validate@Inject public DashboardServiceImpl(MongoConnection mongoConnection, com.codahale.metrics.MetricRegistry metricRegistry, Indexer indexer)
public Dashboard load(String id) throws NotFoundException
load in interface DashboardServiceNotFoundExceptionpublic List<Dashboard> all()
all in interface DashboardServicepublic void updateWidgetPositions(Dashboard dashboard, List<WidgetPositionRequest> positions) throws ValidationException
updateWidgetPositions in interface DashboardServiceValidationExceptionpublic void addWidget(Dashboard dashboard, DashboardWidget widget) throws ValidationException
addWidget in interface DashboardServiceValidationExceptionpublic void removeWidget(Dashboard dashboard, DashboardWidget widget)
removeWidget in interface DashboardServicepublic void updateWidgetDescription(Dashboard dashboard, DashboardWidget widget, String newDescription) throws ValidationException
updateWidgetDescription in interface DashboardServiceValidationExceptionpublic void updateWidgetCacheTime(Dashboard dashboard, DashboardWidget widget, int cacheTime) throws ValidationException
updateWidgetCacheTime in interface DashboardServiceValidationExceptionCopyright © 2012–2014 TORCH GmbH. All rights reserved.