|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.svclayer.support.DefaultSiteStatusViewService
public class DefaultSiteStatusViewService
This service layer class creates a collection that represents the current status of devices per site (a column from the asset table such as building, floor, etc.) The status per site is broken down into rows of categories from the categories table. example: site: HQBLDB |Routers/Switches | 1 of 20 | |Servers | 0 of 200 | |Hubs/APs | 5 of 30 |
| Constructor Summary | |
|---|---|
DefaultSiteStatusViewService()
|
|
| Method Summary | |
|---|---|
java.util.Collection<AggregateStatus> |
createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView statusView)
|
java.util.Collection<AggregateStatus> |
createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView statusView,
java.lang.String statusSite)
This creator is used when wanting to use a different value than the defined column value defined for the requested view. |
java.util.Collection<AggregateStatus> |
createAggregateStatusesUsingNodeId(int nodeId,
java.lang.String viewName)
Use the node id to find the value assciated with column defined in the view. |
java.util.Collection<AggregateStatus> |
createAggregateStatusUsingAssetColumn(org.opennms.netmgt.model.AggregateStatusView statusView)
|
org.opennms.netmgt.model.AggregateStatusView |
createAggregateStatusView(java.lang.String statusViewName)
This creator looks up a configured status view by name and calls the creator that accepts the AggregateStatusView model object. |
AggregateStatus |
getAggregateStatus(java.lang.String statusViewName,
java.lang.String statusSite,
java.lang.String rowLabel)
|
org.opennms.netmgt.dao.NodeDao |
getNodeDao()
|
java.util.Collection<org.opennms.netmgt.model.OnmsNode> |
getNodes(java.lang.String statusViewName,
java.lang.String statusSite,
java.lang.String rowLabel)
|
void |
setCategoryDao(org.opennms.netmgt.dao.CategoryDao dao)
|
void |
setNodeDao(org.opennms.netmgt.dao.NodeDao nodeDao)
|
void |
setSiteStatusViewConfigDao(SiteStatusViewConfigDao dao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSiteStatusViewService()
| Method Detail |
|---|
public org.opennms.netmgt.model.AggregateStatusView createAggregateStatusView(java.lang.String statusViewName)
createAggregateStatusView in interface SiteStatusViewServiceSiteStatusViewService.createAggregateStatusView(java.lang.String)
public java.util.Collection<AggregateStatus> createAggregateStatusesUsingNodeId(int nodeId,
java.lang.String viewName)
createAggregateStatusesUsingNodeId in interface SiteStatusViewServiceSiteStatusViewService.createAggregateStatusesUsingNodeId(int, java.lang.String)
public java.util.Collection<AggregateStatus> createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView statusView,
java.lang.String statusSite)
createAggregateStatuses in interface SiteStatusViewServiceSiteStatusViewService.createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView, java.lang.String)public java.util.Collection<AggregateStatus> createAggregateStatusUsingAssetColumn(org.opennms.netmgt.model.AggregateStatusView statusView)
public org.opennms.netmgt.dao.NodeDao getNodeDao()
public void setNodeDao(org.opennms.netmgt.dao.NodeDao nodeDao)
public void setCategoryDao(org.opennms.netmgt.dao.CategoryDao dao)
public void setSiteStatusViewConfigDao(SiteStatusViewConfigDao dao)
public java.util.Collection<AggregateStatus> createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView statusView)
createAggregateStatuses in interface SiteStatusViewService
public AggregateStatus getAggregateStatus(java.lang.String statusViewName,
java.lang.String statusSite,
java.lang.String rowLabel)
getAggregateStatus in interface SiteStatusViewService
public java.util.Collection<org.opennms.netmgt.model.OnmsNode> getNodes(java.lang.String statusViewName,
java.lang.String statusSite,
java.lang.String rowLabel)
getNodes in interface SiteStatusViewService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||