public class AdminConsole extends Object
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.
Modifier and Type | Method and Description |
---|---|
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 |
getAdminText(String string,
String pluginName)
Returns a text element for the admin console, applying the appropriate locale.
|
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.
|
public static void addModel(String name, InputStream in) throws Exception
name
- the name.in
- the XML input stream.Exception
- if an error occurs when parsing the XML or adding it to the model.public static void addModel(String name, org.dom4j.Element element) throws Exception
name
- the name.element
- the ElementException
- if an error occurs.public static void removeModel(String name)
name
- the name.public static String getAppName()
public static String getLogoImage()
public static String getLoginLogoImage()
public static String getVersionString()
public static org.dom4j.Element getModel()
public static org.dom4j.Element getElemnetByID(String id)
id
- the ID.public static String getAdminText(String string, String pluginName)
string
- the String.pluginName
- the name of the plugin that the i18n String can be found in,
or null if the standard Openfire resource bundle should be used.Copyright © 2003–2019 Ignite Realtime. All rights reserved.