public class Dashboard extends Object
Modifier and Type | Field and Description |
---|---|
protected DashboardFilter |
dashboardFilter
The dashboard filter.
|
static String |
KPI_CODE |
protected org.jboss.dashboard.commons.events.Publisher |
listeners
Dashboard listeners
|
protected static org.slf4j.Logger |
log
Logger
|
protected Dashboard |
parent
Parent dashboard for Drill-down.
|
protected String |
parentProperty
Parent property to drill-up if dashboard filter does not contains it.
|
protected Long |
sectionDbid
Dashboard section.
|
Constructor and Description |
---|
Dashboard() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(DashboardListener listener) |
boolean |
belongsToDashboard(Panel panel)
Check if a given panel belongs to this dashboard.
|
protected boolean |
drillDown(Dashboard parent,
String parentPropertyId) |
protected Dashboard |
drillUp() |
boolean |
equals(Object obj) |
protected void |
filter() |
boolean |
filter(String propertyId,
Interval interval,
int allowMode) |
boolean |
filter(String propertyId,
Object minValue,
boolean minValueIncluded,
Object maxValue,
boolean maxValueIncluded,
Collection allowedValues,
int allowMode) |
DashboardFilter |
getDashboardFilter() |
DataProperty |
getDataPropertyById(String propertyId)
Search for a data property into the data providers.
|
DataProvider |
getDataProviderByCode(String code) |
Set<DataProvider> |
getDataProviders() |
KPI |
getKPI(Panel panel)
Get the KPI rendered by a given panel.
|
static KPI |
getKPI(PanelInstance panelInstance)
Get the KPI configured for the specified panel.
|
Dashboard |
getParent() |
String |
getParentProperty() |
Section |
getSection() |
int |
hashCode() |
void |
init()
Init the dashboard with the KPIs in the section.
|
boolean |
isDrillDownAllowed(Dashboard fromParent)
Check if drill down from the specified page to this one is allowed.
|
void |
refresh()
Refresh all the KPI data sets for this dashboard.
|
protected void |
refreshPanels(String[] propertySet)
Refresh those dashboard panels that are handling any of the properties specified.
|
void |
setDashboardFilter(DashboardFilter dashboardFilter) |
void |
setParentProperty(String parentProperty) |
void |
setSection(Section newSection) |
String |
toString() |
boolean |
unfilter() |
boolean |
unfilter(String propertyId) |
protected static transient org.slf4j.Logger log
protected Long sectionDbid
protected DashboardFilter dashboardFilter
protected Dashboard parent
protected String parentProperty
protected transient org.jboss.dashboard.commons.events.Publisher listeners
public static final String KPI_CODE
public void addListener(DashboardListener listener)
public String getParentProperty()
public void setParentProperty(String parentProperty)
public Dashboard getParent()
public DashboardFilter getDashboardFilter()
public void setDashboardFilter(DashboardFilter dashboardFilter)
public Section getSection()
public void setSection(Section newSection)
public boolean belongsToDashboard(Panel panel)
public static KPI getKPI(PanelInstance panelInstance)
public Set<DataProvider> getDataProviders()
public DataProvider getDataProviderByCode(String code)
public DataProperty getDataPropertyById(String propertyId)
public void init()
All the KPIs and its related data sets are refreshed. The dashboard filter is cleared as well.
public void refresh()
public boolean filter(String propertyId, Interval interval, int allowMode) throws Exception
Exception
public boolean filter(String propertyId, Object minValue, boolean minValueIncluded, Object maxValue, boolean maxValueIncluded, Collection allowedValues, int allowMode) throws Exception
Exception
protected Dashboard drillUp()
public boolean isDrillDownAllowed(Dashboard fromParent)
fromParent
- The parent dasboard we are coming.Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.