org.alfresco.filesys
Class ServerConfigurationBean

java.lang.Object
  extended by org.alfresco.jlan.server.config.ServerConfiguration
      extended by org.alfresco.filesys.AbstractServerConfigurationBean
          extended by org.alfresco.filesys.ServerConfigurationBean
All Implemented Interfaces:
java.util.EventListener, ExtendedServerConfigurationAccessor, org.alfresco.jlan.server.config.ServerConfigurationAccessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class ServerConfigurationBean
extends AbstractServerConfigurationBean

Alfresco File Server Configuration Bean Class


Field Summary
static java.lang.String SERVER_CONFIGURATION
           
 
Fields inherited from class org.alfresco.filesys.AbstractServerConfigurationBean
BIND_TO_IGNORE, DefaultFTPAnonymousAccount, DefaultFTPServerPort, DefaultMemoryPoolBufSizes, DefaultMemoryPoolInitAlloc, DefaultMemoryPoolMaxAlloc, DefaultThreadPoolInit, DefaultThreadPoolMax, logger, m_authenticationComponent, m_disableNativeCode, m_ftpDebugStr, m_nfsDebugStr, m_sessDbgStr, m_tenantService, MaxSessionTimeout, MemoryPoolMaximumAllocation, MemoryPoolMinimumAllocation, TokenLocalName
 
Constructor Summary
ServerConfigurationBean()
          Default constructor
ServerConfigurationBean(java.lang.String srvName)
          Class constructor
 
Method Summary
 void init()
          Initialize the configuration using the configuration service
protected  org.alfresco.jlan.server.auth.acl.AccessControlList processAccessControlList(org.alfresco.jlan.server.config.SecurityConfigSection secConfig, org.springframework.extensions.config.ConfigElement aclsElem)
          Process an access control sub-section and return the access control list
protected  void processCIFSServerConfig()
          Process the CIFS server configuration
protected  void processCIFSServerConfig(org.springframework.extensions.config.Config config)
          Process the CIFS server configuration
protected  void processCoreServerConfig()
          Process the core server configuration
protected  void processCoreServerConfig(org.springframework.extensions.config.Config config)
          Process the core server configuration
protected  DesktopActionTable processDesktopActions(org.springframework.extensions.config.ConfigElement deskActionElem, org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
          Process a desktop actions sub-section and return the desktop action table
protected  void processFilesystemsConfig()
          Process the filesystems configuration
protected  void processFilesystemsConfig(org.springframework.extensions.config.Config config)
          Process the filesystems configuration
protected  void processFTPServerConfig()
          Process the FTP server configuration
protected  void processFTPServerConfig(org.springframework.extensions.config.Config config)
          Process the FTP server configuration
protected  void processNFSServerConfig()
          Process the NFS server configuration
protected  void processNFSServerConfig(org.springframework.extensions.config.Config config)
          Process the NFS server configuration
protected  void processSecurityConfig()
          Process the security configuration
protected  void processSecurityConfig(org.springframework.extensions.config.Config config)
          Process the security configuration
protected  void processWINSServerConfig()
          Parse the CIFS server config section to get the WINS server details, if available
protected  void processWINSServerConfig(org.springframework.extensions.config.Config config)
          Parse the CIFS server config section to get the WINS server details, if available
 void setConfigService(org.springframework.extensions.config.ConfigService configService)
          Set the configuration service
 
Methods inherited from class org.alfresco.filesys.AbstractServerConfigurationBean
closeConfiguration, getApplicationsContext, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getAvmDiskInterface, getBean, getLocalDomainName, getLocalServerName, getNamespaceService, getNodeService, getPersonService, getRepoDiskInterface, getSearchService, getTenantService, getTransactionService, isFTPServerEnabled, isInitialised, isNativeCodeDisabled, isNFSServerEnabled, isSMBServerEnabled, onApplicationEvent, parseAdapterName, parsePlatformString, setApplicationContext, setAuthenticationComponent, setAuthenticationService, setAuthorityService, setAvmDiskInterface, setDiskInterface, setNamespaceService, setNodeService, setPersonService, setSearchService, setTenantService, setTransactionService
 
Methods inherited from class org.alfresco.jlan.server.config.ServerConfiguration
addConfigSection, addListener, addServer, findServer, fireConfigurationChange, getConfigSection, getPlatformType, getPlatformTypeString, getServer, getServerName, hasConfigSection, hasConfigurationListeners, isServerRunning, isUpdated, loadConfiguration, numberOfServers, removeAllConfigSections, removeConfigSection, removeListener, removeServer, saveConfiguration, setServerName, setUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.jlan.server.config.ServerConfigurationAccessor
getConfigSection, getServerName, isServerRunning
 

Field Detail

SERVER_CONFIGURATION

public static final java.lang.String SERVER_CONFIGURATION
See Also:
Constant Field Values
Constructor Detail

ServerConfigurationBean

public ServerConfigurationBean()
Default constructor


ServerConfigurationBean

public ServerConfigurationBean(java.lang.String srvName)
Class constructor

Parameters:
srvName - String
Method Detail

setConfigService

public void setConfigService(org.springframework.extensions.config.ConfigService configService)
Set the configuration service

Parameters:
configService - ConfigService

init

public void init()
Initialize the configuration using the configuration service

Overrides:
init in class AbstractServerConfigurationBean

processCIFSServerConfig

protected void processCIFSServerConfig()
Process the CIFS server configuration

Specified by:
processCIFSServerConfig in class AbstractServerConfigurationBean

processCIFSServerConfig

protected void processCIFSServerConfig(org.springframework.extensions.config.Config config)
Process the CIFS server configuration

Parameters:
config - Config

processFTPServerConfig

protected void processFTPServerConfig()
Process the FTP server configuration

Specified by:
processFTPServerConfig in class AbstractServerConfigurationBean

processFTPServerConfig

protected void processFTPServerConfig(org.springframework.extensions.config.Config config)
Process the FTP server configuration

Parameters:
config - Config

processNFSServerConfig

protected void processNFSServerConfig()
Process the NFS server configuration

Specified by:
processNFSServerConfig in class AbstractServerConfigurationBean

processNFSServerConfig

protected void processNFSServerConfig(org.springframework.extensions.config.Config config)
Process the NFS server configuration

Parameters:
config - Config

processFilesystemsConfig

protected void processFilesystemsConfig()
Process the filesystems configuration

Specified by:
processFilesystemsConfig in class AbstractServerConfigurationBean

processFilesystemsConfig

protected void processFilesystemsConfig(org.springframework.extensions.config.Config config)
Process the filesystems configuration

Parameters:
config - Config

processSecurityConfig

protected void processSecurityConfig()
Process the security configuration

Specified by:
processSecurityConfig in class AbstractServerConfigurationBean

processSecurityConfig

protected void processSecurityConfig(org.springframework.extensions.config.Config config)
Process the security configuration

Parameters:
config - Config

processCoreServerConfig

protected void processCoreServerConfig()
                                throws org.alfresco.jlan.server.config.InvalidConfigurationException
Process the core server configuration

Specified by:
processCoreServerConfig in class AbstractServerConfigurationBean
Parameters:
config - Config
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

processCoreServerConfig

protected void processCoreServerConfig(org.springframework.extensions.config.Config config)
                                throws org.alfresco.jlan.server.config.InvalidConfigurationException
Process the core server configuration

Parameters:
config - Config
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

processAccessControlList

protected org.alfresco.jlan.server.auth.acl.AccessControlList processAccessControlList(org.alfresco.jlan.server.config.SecurityConfigSection secConfig,
                                                                                       org.springframework.extensions.config.ConfigElement aclsElem)
Process an access control sub-section and return the access control list

Parameters:
secConfig - SecurityConfigSection
aclsElem - ConfigElement

processDesktopActions

protected DesktopActionTable processDesktopActions(org.springframework.extensions.config.ConfigElement deskActionElem,
                                                   org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
Process a desktop actions sub-section and return the desktop action table

Parameters:
deskActionElem - ConfigElement
fileSys - DiskSharedDevice

processWINSServerConfig

protected void processWINSServerConfig(org.springframework.extensions.config.Config config)
Parse the CIFS server config section to get the WINS server details, if available

Parameters:
config - Config

processWINSServerConfig

protected void processWINSServerConfig()
Parse the CIFS server config section to get the WINS server details, if available

Overrides:
processWINSServerConfig in class AbstractServerConfigurationBean


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.