Class CategoryList


  • public class CategoryList
    extends java.lang.Object

    CategoryList class.

    Version:
    $Id: $
    Author:
    ranger
    • Field Detail

      • 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
    • Constructor Detail

      • CategoryList

        public CategoryList()
                     throws javax.servlet.ServletException

        Constructor for CategoryList.

        Throws:
        javax.servlet.ServletException - if any.
    • 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.