Class DefaultRtcService
- java.lang.Object
-
- org.opennms.web.svclayer.support.DefaultRtcService
-
- All Implemented Interfaces:
RtcService
,org.springframework.beans.factory.InitializingBean
public class DefaultRtcService extends java.lang.Object implements RtcService, org.springframework.beans.factory.InitializingBean
DefaultRtcService class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description DefaultRtcService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetOnmsCriteria
createOutageCriteria()
Create aOnmsCriteria
that will selectOnmsOutage
objects.OnmsCriteria
createServiceCriteria()
Create aOnmsCriteria
that will selectOnmsMonitoredService
objects.MonitoredServiceDao
getMonitoredServiceDao()
getMonitoredServiceDaoRtcNodeModel
getNodeList()
getNodeListRtcNodeModel
getNodeListForCriteria(OnmsCriteria serviceCriteria, OnmsCriteria outageCriteria)
getNodeListForCriteriaOutageDao
getOutageDao()
getOutageDaovoid
setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
setMonitoredServiceDaovoid
setOutageDao(OutageDao outageDao)
setOutageDao
-
-
-
Method Detail
-
getNodeList
public RtcNodeModel getNodeList()
getNodeList
- Specified by:
getNodeList
in interfaceRtcService
- Returns:
- a
RtcNodeModel
object.
-
getNodeListForCriteria
public RtcNodeModel getNodeListForCriteria(OnmsCriteria serviceCriteria, OnmsCriteria outageCriteria)
getNodeListForCriteria
- Specified by:
getNodeListForCriteria
in interfaceRtcService
- Parameters:
serviceCriteria
- aOnmsCriteria
object.outageCriteria
- aOnmsCriteria
object.- Returns:
- a
RtcNodeModel
object.
-
createOutageCriteria
public OnmsCriteria createOutageCriteria()
Create a
OnmsCriteria
that will selectOnmsOutage
objects.CAUTION: This criteria must contain a JOIN alias to the node table called 'node' so that the {@link org.opennms.dashboard.server.CriteriaAddingVisitor.addCriteriaForCategories(OnmsCriteria, String...)} function can add a category-based restriction on matching node IDs to the criteria.
- Specified by:
createOutageCriteria
in interfaceRtcService
- Returns:
- a
OnmsCriteria
object.
-
createServiceCriteria
public OnmsCriteria createServiceCriteria()
Create a
OnmsCriteria
that will selectOnmsMonitoredService
objects.CAUTION: This criteria must contain a JOIN alias to the node table called 'node' so that the {@link org.opennms.dashboard.server.CriteriaAddingVisitor.addCriteriaForCategories(OnmsCriteria, String...)} function can add a category-based restriction on matching node IDs to the criteria.
- Specified by:
createServiceCriteria
in interfaceRtcService
- Returns:
- a
OnmsCriteria
object.
-
afterPropertiesSet
public void afterPropertiesSet()
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getMonitoredServiceDao
public MonitoredServiceDao getMonitoredServiceDao()
getMonitoredServiceDao
- Returns:
- a
MonitoredServiceDao
object.
-
setMonitoredServiceDao
public void setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
setMonitoredServiceDao
- Parameters:
monitoredServiceDao
- aMonitoredServiceDao
object.
-
-