@ApplicationScoped public class KPIManagerImpl extends Object implements KPIManager
Modifier and Type | Field and Description |
---|---|
protected DataProviderManager |
dataProviderManager |
protected org.jboss.dashboard.commons.events.Publisher |
eventPublisher
Event publisher addressed to store those listeners interested in process events.
|
EVENT_ALL, EVENT_KPI_CREATED, EVENT_KPI_DELETED, EVENT_KPI_SAVED
Constructor and Description |
---|
KPIManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addKPIListener(KPIListener kpiListener,
int eventId) |
KPI |
createKPI() |
Set |
getAllKPIs() |
KPI |
getKPIByCode(String code) |
KPI |
getKPIById(Long id) |
Map<Integer,List<KPIListener>> |
getKPIListenerMap() |
List<KPIListener> |
getKPIListeners(int eventId) |
void |
notifyKPIListener(int eventId,
KPI kpi) |
void |
removeKPIListener(KPIListener kpiListener) |
void |
removeKPIListener(KPIListener kpiListener,
int eventId) |
void |
sortKPIsByDescription(List<KPI> list,
boolean ascending) |
@Inject protected DataProviderManager dataProviderManager
protected org.jboss.dashboard.commons.events.Publisher eventPublisher
public KPI createKPI()
createKPI
in interface KPIManager
public Set getAllKPIs() throws Exception
getAllKPIs
in interface KPIManager
Exception
public KPI getKPIById(Long id) throws Exception
getKPIById
in interface KPIManager
Exception
public KPI getKPIByCode(String code) throws Exception
getKPIByCode
in interface KPIManager
Exception
public void sortKPIsByDescription(List<KPI> list, boolean ascending)
sortKPIsByDescription
in interface KPIManager
public Map<Integer,List<KPIListener>> getKPIListenerMap()
getKPIListenerMap
in interface KPIManager
public List<KPIListener> getKPIListeners(int eventId)
getKPIListeners
in interface KPIManager
public void addKPIListener(KPIListener kpiListener, int eventId)
addKPIListener
in interface KPIManager
public void removeKPIListener(KPIListener kpiListener, int eventId)
removeKPIListener
in interface KPIManager
public void removeKPIListener(KPIListener kpiListener)
removeKPIListener
in interface KPIManager
public void notifyKPIListener(int eventId, KPI kpi)
notifyKPIListener
in interface KPIManager
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.