public class SiteSetupQuestionFileParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
m_adminSiteName |
protected static String |
m_configBackupFolder |
protected static String |
m_configFolder |
protected static String |
m_configXml |
protected static SiteSetupQuestionMap |
m_siteSetupQuestionMap |
| Constructor and Description |
|---|
SiteSetupQuestionFileParser() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
enableSecurityAdvisor()
Establish a security advisor to allow the "embedded" azg work to occur
with no need for additional security permissions.
|
protected static boolean |
exists(String resourceName)
Does the specified configuration/hierarchy resource exist?
|
String |
getAdminSiteName() |
static String |
getConfigBackupFolderReference()
the reference to config backup folder
|
static String |
getConfigFolderReference()
the reference to config folder
|
protected String |
getText(Document root,
String elementName)
Get the text associated with this element
|
protected String |
getText(Element root,
String elementName)
Get the text associated with this element
|
protected static DocumentBuilder |
getXmlDocumentBuilder()
Get a DOM Document builder.
|
static boolean |
isConfigurationXmlAvailable()
Is the configuration XML file provided and readable
|
protected String |
normalizeText(String original,
String update)
"Normalize" XML text node content to create a simple string
|
protected static Document |
parseXmlFromStream(InputStream stream)
Parse an XML resource
|
protected static void |
popSecurityAdvisor()
remove recent SecurityAdvisor
|
protected static SiteSetupQuestionMap |
populateConfig(String configurationXml,
InputStream stream)
Populate cached values from a configuration XML resource.
|
protected void |
saveParameter(Document document,
Map parameterMap,
String name)
Lookup and save one dynamic configuration parameter
|
void |
setAdminSiteName(String siteName) |
static SiteSetupQuestionMap |
updateConfig()
Update configuration data from an XML resource
|
protected static String m_adminSiteName
protected static String m_configFolder
protected static String m_configBackupFolder
protected static String m_configXml
protected static SiteSetupQuestionMap m_siteSetupQuestionMap
public String getAdminSiteName()
public void setAdminSiteName(String siteName)
public static String getConfigFolderReference()
public static String getConfigBackupFolderReference()
public static boolean isConfigurationXmlAvailable()
protected static boolean exists(String resourceName)
resourceName - Resource nameprotected static void enableSecurityAdvisor()
protected static void popSecurityAdvisor()
public static SiteSetupQuestionMap updateConfig()
configFileRef - XML configuration reference (/content/...)protected static SiteSetupQuestionMap populateConfig(String configurationXml, InputStream stream)
configurationXml - Configuration resource name (this doubles as a
unique key into the configuration cache)protected void saveParameter(Document document, Map parameterMap, String name)
Configuration - XMLparameterMap - Parameter name=value pairsname - Parameter nameprotected static Document parseXmlFromStream(InputStream stream)
filename - The filename (or URI) to parseprotected static DocumentBuilder getXmlDocumentBuilder()
DomExceptionprotected String normalizeText(String original, String update)
original - Original textupdate - Text to add to the original string (a space separates the two)protected String getText(Document root, String elementName)
root - The document containing the text elementCopyright © 2003–2018 University of Michigan. All rights reserved.