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(Document doc)
Load the configuration from the specified document
|
protected void |
procFTPServerElement(Element ftp)
Process the FTP server XML element
|
protected void |
procNFSServerElement(Element nfs)
Process the NFS server XML element
|
protected void |
procServersElement(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, procSMBServerElement
addConfigSection, addListener, addServer, closeConfiguration, findServer, fireConfigurationChange, getConfigSection, getPlatformType, getPlatformTypeString, getServer, getServerName, hasConfigSection, hasConfigurationListeners, isServerRunning, isUpdated, numberOfServers, removeAllConfigSections, removeConfigSection, removeListener, removeServer, saveConfiguration, setServerName, setUpdated
public void loadConfiguration(Document doc) throws IOException, InvalidConfigurationException
loadConfiguration
in class CifsOnlyXMLServerConfiguration
doc
- DocumentIOException
InvalidConfigurationException
public final boolean isCIFSServerEnabled()
public final boolean isFTPServerEnabled()
public final boolean isNFSServerEnabled()
protected final void procServersElement(Element servers) throws InvalidConfigurationException
servers
- ElementInvalidConfigurationException
protected final void procFTPServerElement(Element ftp) throws InvalidConfigurationException
ftp
- ElementInvalidConfigurationException
protected final void procNFSServerElement(Element nfs) throws InvalidConfigurationException
nfs
- ElementInvalidConfigurationException
Copyright © 2005–2018 Alfresco Software. All rights reserved.