|
|||||||||
| 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 | |
|---|---|
Collection<AggregateStatus> |
createAggregateStatuses(AggregateStatusView statusView)
|
Collection<AggregateStatus> |
createAggregateStatuses(AggregateStatusView statusView,
String statusSite)
This creator is used when wanting to use a different value than the defined column value defined for the requested view. |
Collection<AggregateStatus> |
createAggregateStatusesUsingNodeId(int nodeId,
String viewName)
Use the node id to find the value assciated with column defined in the view. |
Collection<AggregateStatus> |
createAggregateStatusUsingAssetColumn(AggregateStatusView statusView)
|
AggregateStatusView |
createAggregateStatusView(String statusViewName)
This creator looks up a configured status view by name and calls the creator that accepts the AggregateStatusView model object. |
AggregateStatus |
getAggregateStatus(String statusViewName,
String statusSite,
String rowLabel)
|
NodeDao |
getNodeDao()
|
Collection<OnmsNode> |
getNodes(String statusViewName,
String statusSite,
String rowLabel)
|
void |
setCategoryDao(CategoryDao dao)
|
void |
setNodeDao(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 AggregateStatusView createAggregateStatusView(String statusViewName)
createAggregateStatusView in interface SiteStatusViewServiceSiteStatusViewService.createAggregateStatusView(java.lang.String)
public Collection<AggregateStatus> createAggregateStatusesUsingNodeId(int nodeId,
String viewName)
createAggregateStatusesUsingNodeId in interface SiteStatusViewServiceSiteStatusViewService.createAggregateStatusesUsingNodeId(int, java.lang.String)
public Collection<AggregateStatus> createAggregateStatuses(AggregateStatusView statusView,
String statusSite)
createAggregateStatuses in interface SiteStatusViewServiceSiteStatusViewService.createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView, java.lang.String)public Collection<AggregateStatus> createAggregateStatusUsingAssetColumn(AggregateStatusView statusView)
public NodeDao getNodeDao()
public void setNodeDao(NodeDao nodeDao)
public void setCategoryDao(CategoryDao dao)
public void setSiteStatusViewConfigDao(SiteStatusViewConfigDao dao)
public Collection<AggregateStatus> createAggregateStatuses(AggregateStatusView statusView)
createAggregateStatuses in interface SiteStatusViewService
public AggregateStatus getAggregateStatus(String statusViewName,
String statusSite,
String rowLabel)
getAggregateStatus in interface SiteStatusViewService
public Collection<OnmsNode> getNodes(String statusViewName,
String statusSite,
String rowLabel)
getNodes in interface SiteStatusViewService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||