Package org.opennms.web.category
Class CategoryList
- java.lang.Object
-
- org.opennms.web.category.CategoryList
-
public class CategoryList extends java.lang.Object
CategoryList class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_disconnectTimeout
protected CategoryModel
m_model
protected java.util.List<Section>
m_sections
Display rules from viewsdisplay.xml.
-
Constructor Summary
Constructors Constructor Description CategoryList()
Constructor for CategoryList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<Category>>
getCategoryData()
getCategoryDatastatic long
getEarliestUpdate(java.util.Map<java.lang.String,java.util.List<Category>> categoryData)
Returns the earliest update time for the categories in categoryData.boolean
isDisconnected()
isDisconnectedboolean
isDisconnected(long earliestUpdate)
isDisconnected
-
-
-
Field Detail
-
m_model
protected final CategoryModel m_model
-
m_sections
protected final java.util.List<Section> m_sections
Display rules from viewsdisplay.xml. If null, then just show all known categories under the header "Category". (See the getSections method.)
-
m_disconnectTimeout
protected final int m_disconnectTimeout
-
-
Method Detail
-
getCategoryData
public java.util.Map<java.lang.String,java.util.List<Category>> getCategoryData() throws java.io.IOException
getCategoryData
- Returns:
- a
Map
object. - Throws:
java.io.IOException
- if any.
-
getEarliestUpdate
public static long getEarliestUpdate(java.util.Map<java.lang.String,java.util.List<Category>> categoryData)
Returns the earliest update time for the categories in categoryData.- Parameters:
categoryData
- category data to evaluate. From getCategoryData().- Returns:
- a long.
-
isDisconnected
public boolean isDisconnected() throws java.io.IOException
isDisconnected
- Returns:
- a boolean.
- Throws:
java.io.IOException
- if any.
-
isDisconnected
public boolean isDisconnected(long earliestUpdate)
isDisconnected
- Parameters:
earliestUpdate
- a long.- Returns:
- a boolean.
-
-