Package ru.slie.luna.dashboard
Interface DashboardManager
public interface DashboardManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddWidget(Dashboard dashboard, DashboardWidgetDescriptor widgetDescriptor, List<Integer> columns, List<Integer> rows) getForUser(User user) getWidgetDescriptor(String widgetKey) removeWidget(Dashboard dashboard, Long userWidgetId) search(User user, String term, SearchParams params) voidvoidupdateWidget(User user, Dashboard dashboard, Long userWidgetId, List<Integer> columns, List<Integer> rows, Map<String, String> params) voidvoidupdateWidgetPosition(Dashboard dashboard, Long userWidgetId, List<Integer> columns, List<Integer> rows) voidupdateWidgetsPosition(Dashboard dashboard, Map<Long, DashboardWidgetPosition> positionMap)
-
Method Details
-
getById
-
search
-
getForUser
-
create
- Throws:
ValidateException
-
update
- Throws:
ValidateException
-
delete
-
addWidget
void addWidget(Dashboard dashboard, DashboardWidgetDescriptor widgetDescriptor, List<Integer> columns, List<Integer> rows) throws ValidateException - Throws:
ValidateException
-
addWidget
void addWidget(Dashboard dashboard, String dashboardWidgetId, List<Integer> columns, List<Integer> rows) throws ValidateException - Throws:
ValidateException
-
removeWidget
-
updateWidgetParams
void updateWidgetParams(User user, Dashboard dashboard, Long userWidgetId, Map<String, String> params) throws ValidateException- Throws:
ValidateException
-
updateWidget
void updateWidget(User user, Dashboard dashboard, Long userWidgetId, List<Integer> columns, List<Integer> rows, Map<String, String> params) throws ValidateException- Throws:
ValidateException
-
updateWidgetPosition
void updateWidgetPosition(Dashboard dashboard, Long userWidgetId, List<Integer> columns, List<Integer> rows) throws ValidateException - Throws:
ValidateException
-
updateWidgetsPosition
void updateWidgetsPosition(Dashboard dashboard, Map<Long, DashboardWidgetPosition> positionMap) throws ValidateException- Throws:
ValidateException
-
getWidgetDescriptors
List<DashboardWidgetDescriptor> getWidgetDescriptors() -
getWidgetDescriptor
-