Search in sources :

Example 1 with Dashboard

use of com.hortonworks.streamline.registries.dashboard.entites.Dashboard in project streamline by hortonworks.

the class DashboardCatalogService method removeDashboard.

public Dashboard removeDashboard(Long dashboardId) {
    Dashboard dashboard = new Dashboard();
    dashboard.setId(dashboardId);
    return dao.remove(new StorableKey(DASHBOARD_NAMESPACE, dashboard.getPrimaryKey()));
}
Also used : StorableKey(com.hortonworks.registries.storage.StorableKey) Dashboard(com.hortonworks.streamline.registries.dashboard.entites.Dashboard)

Example 2 with Dashboard

use of com.hortonworks.streamline.registries.dashboard.entites.Dashboard in project streamline by hortonworks.

the class DashboardCatalogService method getDashboard.

public Dashboard getDashboard(Long dashboardId) {
    Dashboard dashboard = new Dashboard();
    dashboard.setId(dashboardId);
    return dao.get(new StorableKey(DASHBOARD_NAMESPACE, dashboard.getPrimaryKey()));
}
Also used : StorableKey(com.hortonworks.registries.storage.StorableKey) Dashboard(com.hortonworks.streamline.registries.dashboard.entites.Dashboard)

Aggregations

StorableKey (com.hortonworks.registries.storage.StorableKey)2 Dashboard (com.hortonworks.streamline.registries.dashboard.entites.Dashboard)2