public class CifsOnlyXMLServerConfiguration extends ServerConfiguration
XML implementation of the SMB server configuration.
Constructor and Description |
---|
CifsOnlyXMLServerConfiguration()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDiskShare(org.w3c.dom.Element disk,
FilesystemsConfigSection filesysConfig)
Add a disk share
|
protected void |
addUser(org.w3c.dom.Element user,
SecurityConfigSection secConfig)
Add a user
|
protected org.springframework.extensions.config.element.GenericConfigElement |
buildConfigElement(org.w3c.dom.Element root)
Build a configuration element list from an elements child nodes
|
protected org.springframework.extensions.config.element.GenericConfigElement |
buildConfigElement(org.w3c.dom.Element root,
org.springframework.extensions.config.element.GenericConfigElement cfgElem)
Build a configuration element list from an elements child nodes
|
protected org.w3c.dom.Element |
findChildNode(java.lang.String name,
org.w3c.dom.NodeList list)
Find the specified child node in the node list
|
protected java.lang.String |
getText(org.w3c.dom.Element elem)
Get the value text for the specified element
|
void |
loadConfiguration(org.w3c.dom.Document doc)
Load the configuration from the specified document
|
void |
loadConfiguration(java.io.Reader in)
Load the configuration from the specified input stream
|
void |
loadConfiguration(java.lang.String fname)
Load the configuration from the specified file.
|
protected java.net.InetAddress |
parseAdapterName(java.lang.String adapter)
Parse an adapter name string and return the matching address
|
protected java.util.List |
parsePlatformString(java.lang.String platforms)
Parse a platform type string into a list of platform ids
|
protected AccessControlList |
procAccessControlElement(org.w3c.dom.Element acl,
SecurityConfigSection secConfig)
Process an access control sub-section and return the access control list
|
protected void |
procDebugElement(org.w3c.dom.Element debug)
Process the debug XML element
|
protected void |
procDriveMappingsElement(org.w3c.dom.Element mappings)
Process the drive mappings XML element
|
protected void |
procGlobalElement(org.w3c.dom.Element global)
Process the global settings XML element
|
protected void |
procHostElement(org.w3c.dom.Element host,
CIFSConfigSection cifsConfig)
Process the host XML element
|
protected void |
procSecurityElement(org.w3c.dom.Element security)
Process the security XML element
|
protected void |
procServerCoreElement(org.w3c.dom.Element srvCore)
Process the server core settings XML element
|
protected void |
procSharesElement(org.w3c.dom.Element shares)
Process the shares XML element
|
protected void |
procSMBServerElement(org.w3c.dom.Element smb)
Process the SMB server XML element
|
addConfigSection, addListener, addServer, closeConfiguration, findServer, fireConfigurationChange, getConfigSection, getPlatformType, getPlatformTypeString, getServer, getServerName, hasConfigSection, hasConfigurationListeners, isServerRunning, isUpdated, numberOfServers, removeAllConfigSections, removeConfigSection, removeListener, removeServer, saveConfiguration, setServerName, setUpdated
public CifsOnlyXMLServerConfiguration()
public final void loadConfiguration(java.lang.String fname) throws java.io.IOException, InvalidConfigurationException
loadConfiguration
in class ServerConfiguration
fname
- java.lang.Stringjava.io.IOException
InvalidConfigurationException
public final void loadConfiguration(java.io.Reader in) throws java.io.IOException, InvalidConfigurationException
in
- Readerjava.io.IOException
InvalidConfigurationException
public void loadConfiguration(org.w3c.dom.Document doc) throws java.io.IOException, InvalidConfigurationException
doc
- Documentjava.io.IOException
InvalidConfigurationException
protected final void procServerCoreElement(org.w3c.dom.Element srvCore) throws InvalidConfigurationException
srvCore
- ElementInvalidConfigurationException
protected final void procGlobalElement(org.w3c.dom.Element global) throws InvalidConfigurationException
global
- ElementInvalidConfigurationException
protected final void procSMBServerElement(org.w3c.dom.Element smb) throws InvalidConfigurationException
smb
- ElementInvalidConfigurationException
protected final void procHostElement(org.w3c.dom.Element host, CIFSConfigSection cifsConfig) throws InvalidConfigurationException
host
- Element 2param cifsConfig CIFSConfigSectionInvalidConfigurationException
protected final void procDebugElement(org.w3c.dom.Element debug) throws InvalidConfigurationException
debug
- ElementInvalidConfigurationException
protected final void procSharesElement(org.w3c.dom.Element shares) throws InvalidConfigurationException
shares
- ElementInvalidConfigurationException
protected final void procSecurityElement(org.w3c.dom.Element security) throws InvalidConfigurationException
security
- ElementInvalidConfigurationException
protected final void procDriveMappingsElement(org.w3c.dom.Element mappings) throws InvalidConfigurationException
mappings
- ElementInvalidConfigurationException
protected final AccessControlList procAccessControlElement(org.w3c.dom.Element acl, SecurityConfigSection secConfig) throws InvalidConfigurationException
acl
- ElementsecConfig
- SecutiryConfigSectionInvalidConfigurationException
protected final void addUser(org.w3c.dom.Element user, SecurityConfigSection secConfig) throws InvalidConfigurationException
user
- ElementsecConfig
- SecurityConfigSectionInvalidConfigurationException
protected final void addDiskShare(org.w3c.dom.Element disk, FilesystemsConfigSection filesysConfig) throws InvalidConfigurationException
disk
- Element 2param filesysConfig FilesystemConfigSectionInvalidConfigurationException
protected final org.w3c.dom.Element findChildNode(java.lang.String name, org.w3c.dom.NodeList list)
name
- Stringlist
- NodeListprotected final java.lang.String getText(org.w3c.dom.Element elem)
elem
- Elementprotected final org.springframework.extensions.config.element.GenericConfigElement buildConfigElement(org.w3c.dom.Element root)
root
- Elementprotected final org.springframework.extensions.config.element.GenericConfigElement buildConfigElement(org.w3c.dom.Element root, org.springframework.extensions.config.element.GenericConfigElement cfgElem)
root
- ElementcfgElem
- GenericConfigElementprotected final java.util.List parsePlatformString(java.lang.String platforms) throws InvalidConfigurationException
platforms
- StringInvalidConfigurationException
protected final java.net.InetAddress parseAdapterName(java.lang.String adapter) throws InvalidConfigurationException
adapter
- StringInvalidConfigurationException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.