public class XMLServerConfiguration extends CifsOnlyXMLServerConfiguration
XML implementation of the SMB server configuration. Save/load the server configuration to an XML format file using the DOM API.
| Constructor and Description |
|---|
XMLServerConfiguration()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCIFSServerEnabled()
Check if the CIFS server is enabled
|
boolean |
isFTPServerEnabled()
Check if the FTP server is enabled
|
boolean |
isNFSServerEnabled()
Check if the NFS server is enabled
|
void |
loadConfiguration(org.w3c.dom.Document doc)
Load the configuration from the specified document
|
protected void |
procClusterElement(org.w3c.dom.Element cluster)
Process the servers XML element
|
protected void |
procFTPServerElement(org.w3c.dom.Element ftp)
Process the FTP server XML element
|
protected void |
procNFSServerElement(org.w3c.dom.Element nfs)
Process the NFS server XML element
|
protected void |
procServersElement(org.w3c.dom.Element servers)
Process the servers XML element
|
addDiskShare, addUser, buildConfigElement, buildConfigElement, findChildNode, getText, loadConfiguration, loadConfiguration, parseAdapterName, parsePlatformString, procAccessControlElement, procDebugElement, procDriveMappingsElement, procGlobalElement, procHostElement, procSecurityElement, procServerCoreElement, procSharesElement, procSMBServerElementaddConfigSection, addListener, addServer, closeConfiguration, findServer, fireConfigurationChange, getConfigSection, getPlatformType, getPlatformTypeString, getServer, getServerName, hasConfigSection, hasConfigurationListeners, isServerRunning, isUpdated, numberOfServers, removeAllConfigSections, removeConfigSection, removeListener, removeServer, saveConfiguration, setServerName, setUpdatedpublic void loadConfiguration(org.w3c.dom.Document doc)
throws java.io.IOException,
InvalidConfigurationException
loadConfiguration in class CifsOnlyXMLServerConfigurationdoc - Documentjava.io.IOExceptionInvalidConfigurationExceptionpublic final boolean isCIFSServerEnabled()
public final boolean isFTPServerEnabled()
public final boolean isNFSServerEnabled()
protected final void procServersElement(org.w3c.dom.Element servers)
throws InvalidConfigurationException
servers - ElementInvalidConfigurationExceptionprotected final void procFTPServerElement(org.w3c.dom.Element ftp)
throws InvalidConfigurationException
ftp - ElementInvalidConfigurationExceptionprotected final void procNFSServerElement(org.w3c.dom.Element nfs)
throws InvalidConfigurationException
nfs - ElementInvalidConfigurationExceptionprotected final void procClusterElement(org.w3c.dom.Element cluster)
throws InvalidConfigurationException
cluster - ElementInvalidConfigurationExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.