Class SearchManagerBean

  • All Implemented Interfaces:, AdminBean, GenericHTTPHandler

    public class SearchManagerBean
    extends SimpleAdminBean
    The SearchManagerBean is a simple AdminBean interface to the SearchManager. It currently can be used to force a reload of all of the pages.
    • Constructor Detail

      • SearchManagerBean

        public SearchManagerBean​(Engine engine)
    • Method Detail

      • getAttributeNames

        public java.lang.String[] getAttributeNames()
        Description copied from class: SimpleMBean
        This method must return a list of attributes which are exposed by the SimpleMBean. If there's a getXXX() method available, it'll be exposed as a getter, and if there's a setXXX() method available, it'll be exposed as a setter. For example:
             public void setFoo( String foo ) ...
             public String getFoo() ...
             public String[] getAttributeNames()
                 String[] attrs = { "foo" };
                 return attrs;
        Also, methods starting with "is" are also recognized as getters (e.g. public boolean isFoo().)
        Specified by:
        getAttributeNames in class SimpleMBean
        An array of attribute names that can be get and optionally set.
      • getMethodNames

        public java.lang.String[] getMethodNames()
        Description copied from class: SimpleMBean
        This method must return a list of operations which are to be exposed by the SimpleMBean. Note that using overloaded method names is not supported - only one will be exposed as a JMX method at random.
        Specified by:
        getMethodNames in class SimpleMBean
        An array of method names that should be exposed as JMX operations.
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: AdminBean
        Return a human-readable title for this AdminBean.
        the bean's title
      • reload

        public void reload()
        Starts a background thread which goes through all the pages and adds them to the reindex queue.

        This method prevents itself from being called twice.

      • getType

        public int getType()
        Description copied from interface: AdminBean
        Returns a type (UNKNOWN, EDITOR, etc).
        the bean's type
      • doGet

        public java.lang.String doGet​(Context context)
        Description copied from class: SimpleAdminBean
        By default, this method creates a blob of HTML, listing all the attributes which can be read or written to. If the attribute is read-only, a readonly input widget is created. The value is determined by the toString() method of the attribute.
        Specified by:
        doGet in interface GenericHTTPHandler
        doGet in class SimpleAdminBean
        context - associated WikiContext
        the HTML for the bean