public class DashboardServiceImpl extends PersistedServiceImpl implements DashboardService
mongoConnection| Constructor and Description |
|---|
DashboardServiceImpl(MongoConnection mongoConnection,
DashboardWidgetCreator dashboardWidgetCreator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWidget(Dashboard dashboard,
DashboardWidget widget) |
List<Dashboard> |
all() |
long |
count() |
Dashboard |
create(String title,
String description,
String creatorUserId,
org.joda.time.DateTime createdAt) |
Dashboard |
load(String id) |
void |
removeWidget(Dashboard dashboard,
DashboardWidget widget) |
void |
updateWidgetCacheTime(Dashboard dashboard,
DashboardWidget widget,
int cacheTime)
Deprecated.
|
void |
updateWidgetDescription(Dashboard dashboard,
DashboardWidget widget,
String newDescription)
Deprecated.
|
void |
updateWidgetPositions(Dashboard dashboard,
WidgetPositionsRequest 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, DashboardWidgetCreator dashboardWidgetCreator)
public Dashboard create(String title, String description, String creatorUserId, org.joda.time.DateTime createdAt)
create in interface DashboardServicepublic Dashboard load(String id) throws NotFoundException
load in interface DashboardServiceNotFoundExceptionpublic List<Dashboard> all()
all in interface DashboardServicepublic void updateWidgetPositions(Dashboard dashboard, WidgetPositionsRequest 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 DashboardService@Deprecated public void updateWidgetDescription(Dashboard dashboard, DashboardWidget widget, String newDescription) throws ValidationException
updateWidgetDescription in interface DashboardServiceValidationException@Deprecated public void updateWidgetCacheTime(Dashboard dashboard, DashboardWidget widget, int cacheTime) throws ValidationException
updateWidgetCacheTime in interface DashboardServiceValidationExceptionpublic long count()
count in interface DashboardServiceCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.