Jive Messenger 2.2.2 Javadoc

org.jivesoftware.admin
Class AdminConsole

java.lang.Object
  extended by org.jivesoftware.admin.AdminConsole

public class AdminConsole
extends Object

A model for admin tab and sidebar info. This class loads in xml definitions of the data and produces an in-memory model.

This class loads its data from the admin-sidebar.xml file which is assumed to be in the main application jar file. In addition, it will load files from META-INF/admin-sidebar.xml if they're found. This allows developers to extend the functionality of the admin console to provide more options. See the main admin-sidebar.xml file for documentation of its format.


Method Summary
static void addModel(String name, org.dom4j.Element element)
          Adds an <adminconsole> Element to the tabs/sidebar model.
static void addModel(String name, InputStream in)
          Adds XML stream to the tabs/sidebar model.
static String getAppName()
          Returns the name of the application.
static org.dom4j.Element getElemnetByID(String id)
          Convenience method to select an element from the model by its ID.
static String getLoginLogoImage()
          Returns the URL of the login image for the admin console.
static String getLogoImage()
          Returns the URL of the main logo image for the admin console.
static org.dom4j.Element getModel()
          Returns the model.
static String getVersionString()
          Returns the version string displayed in the admin console.
static void removeModel(String name)
          Removes an <adminconsole> Element from the tabs/sidebar model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addModel

public static void addModel(String name,
                            InputStream in)
                     throws Exception
Adds XML stream to the tabs/sidebar model.

Parameters:
name - the name.
in - the XML input stream.
Throws:
Exception - if an error occurs when parsing the XML or adding it to the model.

addModel

public static void addModel(String name,
                            org.dom4j.Element element)
                     throws Exception
Adds an <adminconsole> Element to the tabs/sidebar model.

Parameters:
name - the name.
element - the Element
Throws:
Exception - if an error occurs.

removeModel

public static void removeModel(String name)
Removes an <adminconsole> Element from the tabs/sidebar model.

Parameters:
name - the name.

getAppName

public static String getAppName()
Returns the name of the application.


getLogoImage

public static String getLogoImage()
Returns the URL of the main logo image for the admin console.

Returns:
the logo image.

getLoginLogoImage

public static String getLoginLogoImage()
Returns the URL of the login image for the admin console.

Returns:
the login image.

getVersionString

public static String getVersionString()
Returns the version string displayed in the admin console.

Returns:
the version string.

getModel

public static org.dom4j.Element getModel()
Returns the model. The model should be considered read-only.

Returns:
the model.

getElemnetByID

public static org.dom4j.Element getElemnetByID(String id)
Convenience method to select an element from the model by its ID. If an element with a matching ID is not found, null will be returned.

Parameters:
id - the ID.
Returns:
the element.

Jive Messenger 2.2.2 Javadoc

Copyright © 1999-2004 Jive Software.