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(Element disk,
FilesystemsConfigSection filesysConfig)
Add a disk share
|
protected void |
addUser(Element user,
SecurityConfigSection secConfig)
Add a user
|
protected org.springframework.extensions.config.element.GenericConfigElement |
buildConfigElement(Element root)
Build a configuration element list from an elements child nodes
|
protected org.springframework.extensions.config.element.GenericConfigElement |
buildConfigElement(Element root,
org.springframework.extensions.config.element.GenericConfigElement cfgElem)
Build a configuration element list from an elements child nodes
|
protected Element |
findChildNode(String name,
NodeList list)
Find the specified child node in the node list
|
protected String |
getText(Element elem)
Get the value text for the specified element
|
void |
loadConfiguration(Document doc)
Load the configuration from the specified document
|
void |
loadConfiguration(Reader in)
Load the configuration from the specified input stream
|
void |
loadConfiguration(String fname)
Load the configuration from the specified file.
|
protected InetAddress |
parseAdapterName(String adapter)
Parse an adapter name string and return the matching address
|
protected List<Platform.Type> |
parsePlatformString(String platforms)
Parse a platform type string into a list of platform ids
|
protected AccessControlList |
procAccessControlElement(Element acl,
SecurityConfigSection secConfig)
Process an access control sub-section and return the access control list
|
protected void |
procDebugElement(Element debug)
Process the debug XML element
|
protected void |
procDriveMappingsElement(Element mappings)
Process the drive mappings XML element
|
protected void |
procGlobalElement(Element global)
Process the global settings XML element
|
protected void |
procHostElement(Element host,
CIFSConfigSection cifsConfig)
Process the host XML element
|
protected void |
procSecurityElement(Element security)
Process the security XML element
|
protected void |
procServerCoreElement(Element srvCore)
Process the server core settings XML element
|
protected void |
procSharesElement(Element shares)
Process the shares XML element
|
protected void |
procSMBServerElement(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(String fname) throws IOException, InvalidConfigurationException
loadConfiguration
in class ServerConfiguration
fname
- java.lang.StringIOException
InvalidConfigurationException
public final void loadConfiguration(Reader in) throws IOException, InvalidConfigurationException
in
- ReaderIOException
InvalidConfigurationException
public void loadConfiguration(Document doc) throws IOException, InvalidConfigurationException
doc
- DocumentIOException
InvalidConfigurationException
protected final void procServerCoreElement(Element srvCore) throws InvalidConfigurationException
srvCore
- ElementInvalidConfigurationException
protected final void procGlobalElement(Element global) throws InvalidConfigurationException
global
- ElementInvalidConfigurationException
protected final void procSMBServerElement(Element smb) throws InvalidConfigurationException
smb
- ElementInvalidConfigurationException
protected final void procHostElement(Element host, CIFSConfigSection cifsConfig) throws InvalidConfigurationException
host
- Element 2param cifsConfig CIFSConfigSectionInvalidConfigurationException
protected final void procDebugElement(Element debug) throws InvalidConfigurationException
debug
- ElementInvalidConfigurationException
protected final void procSharesElement(Element shares) throws InvalidConfigurationException
shares
- ElementInvalidConfigurationException
protected final void procSecurityElement(Element security) throws InvalidConfigurationException
security
- ElementInvalidConfigurationException
protected final void procDriveMappingsElement(Element mappings) throws InvalidConfigurationException
mappings
- ElementInvalidConfigurationException
protected final AccessControlList procAccessControlElement(Element acl, SecurityConfigSection secConfig) throws InvalidConfigurationException
acl
- ElementsecConfig
- SecutiryConfigSectionInvalidConfigurationException
protected final void addUser(Element user, SecurityConfigSection secConfig) throws InvalidConfigurationException
user
- ElementsecConfig
- SecurityConfigSectionInvalidConfigurationException
protected final void addDiskShare(Element disk, FilesystemsConfigSection filesysConfig) throws InvalidConfigurationException
disk
- Element 2param filesysConfig FilesystemConfigSectionInvalidConfigurationException
protected final Element findChildNode(String name, NodeList list)
name
- Stringlist
- NodeListprotected final String getText(Element elem)
elem
- Elementprotected final org.springframework.extensions.config.element.GenericConfigElement buildConfigElement(Element root)
root
- Elementprotected final org.springframework.extensions.config.element.GenericConfigElement buildConfigElement(Element root, org.springframework.extensions.config.element.GenericConfigElement cfgElem)
root
- ElementcfgElem
- GenericConfigElementprotected final List<Platform.Type> parsePlatformString(String platforms) throws InvalidConfigurationException
platforms
- StringInvalidConfigurationException
protected final InetAddress parseAdapterName(String adapter) throws InvalidConfigurationException
adapter
- StringInvalidConfigurationException
Copyright © 2005–2018 Alfresco Software. All rights reserved.