Commit 06b9d937 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Added more global settings.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@520 b35dd754-fafc-0310-a699-88a17e54d16e
parent b41dca30
......@@ -88,7 +88,9 @@ public class AdminConsole {
}
/**
* Returns the URL (relative or absolute) of the main logo image for the admin console.
* Returns the URL of the main logo image for the admin console.
*
* @return the logo image.
*/
public static String getLogoImage() {
Element globalLogoImage = (Element)generatedModel.selectSingleNode(
......@@ -101,6 +103,38 @@ public class AdminConsole {
}
}
/**
* Returns the URL of the login image for the admin console.
*
* @return the login image.
*/
public static String getLoginLogoImage() {
Element globalLoginLogoImage = (Element)generatedModel.selectSingleNode(
"/adminconsole/global/login-image");
if (globalLoginLogoImage != null) {
return globalLoginLogoImage.getText();
}
else {
return null;
}
}
/**
* Returns the version string displayed in the admin console.
*
* @return the version string.
*/
public static String getVersionString() {
Element globalVersion = (Element)generatedModel.selectSingleNode(
"/adminconsole/global/version");
if (globalVersion != null) {
return globalVersion.getText();
}
else {
return null;
}
}
/**
* Returns the model. The model should be considered read-only.
*
......@@ -196,6 +230,18 @@ public class AdminConsole {
"/adminconsole/global/logo-image");
existingLogoImage.setText(appLogoImage.getText());
}
Element appLoginImage = (Element)element.selectSingleNode("/adminconsole/global/login-image");
if (appLogoImage != null) {
Element existingLoginImage = (Element)generatedModel.selectSingleNode(
"/adminconsole/global/login-image");
existingLoginImage.setText(appLoginImage.getText());
}
Element appVersion = (Element)element.selectSingleNode("/adminconsole/global/version");
if (appLogoImage != null) {
Element existingVersion = (Element)generatedModel.selectSingleNode(
"/adminconsole/global/version");
existingVersion.setText(appVersion.getText());
}
// Tabs
for (Iterator i=element.selectNodes("//tab").iterator(); i.hasNext(); ) {
Element tab = (Element)i.next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment