org.alfresco.filesys.config
Class ServerConfigurationBean

java.lang.Object
  extended by org.alfresco.jlan.server.config.ServerConfiguration
      extended by org.alfresco.filesys.AbstractServerConfigurationBean
          extended by org.alfresco.filesys.config.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

Acts as an adaptor between JLAN's configuration requirements and the spring configuration of the Alfresco filesystem subsystem.

Also contains an amount of initialisation logic.


Field Summary
 
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 initialiseRuntimeContext(AlfrescoContext diskCtx)
          Initialise a runtime context - not configured through spring e.g MT.
protected  void processCIFSServerConfig()
          Process the CIFS server configuration
protected  void processClusterConfig()
           
protected  void processCoreServerConfig()
          Process the core server configuration
protected  void processFilesystemsConfig()
          Process the filesystems configuration
protected  void processFTPServerConfig()
          Process the FTP server configuration
protected  void processNFSServerConfig()
          Process the NFS server configuration
protected  void processSecurityConfig()
          Process the security configuration
 void setAvmAllStores(boolean avmAllStores)
           
 void setCifsConfigBean(CIFSConfigBean cifsConfigBean)
           
 void setClusterConfigBean(ClusterConfigBean clusterConfigBean)
           
 void setCoreServerConfigBean(CoreServerConfigBean coreServerConfigBean)
           
 void setFilesystemContexts(java.util.List filesystemContexts)
           
 void setFtpConfigBean(FTPConfigBean ftpConfigBean)
           
 void setNfsConfigBean(NFSConfigBean nfsConfigBean)
           
 void setSecurityConfigBean(SecurityConfigBean securityConfigBean)
           
 
Methods inherited from class org.alfresco.filesys.AbstractServerConfigurationBean
closeConfiguration, getApplicationsContext, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getAvmDiskInterface, getBean, getLocalDomainName, getLocalServerName, getNamespaceService, getNodeService, getPersonService, getRepoDiskInterface, getSearchService, getTenantService, getTransactionService, init, isFTPServerEnabled, isInitialised, isNativeCodeDisabled, isNFSServerEnabled, isSMBServerEnabled, onApplicationEvent, parseAdapterName, parsePlatformString, processWINSServerConfig, 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
 

Constructor Detail

ServerConfigurationBean

public ServerConfigurationBean()
Default constructor


ServerConfigurationBean

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

Parameters:
srvName - String
Method Detail

setCifsConfigBean

public void setCifsConfigBean(CIFSConfigBean cifsConfigBean)

setFtpConfigBean

public void setFtpConfigBean(FTPConfigBean ftpConfigBean)

setNfsConfigBean

public void setNfsConfigBean(NFSConfigBean nfsConfigBean)

setFilesystemContexts

public void setFilesystemContexts(java.util.List filesystemContexts)

setAvmAllStores

public void setAvmAllStores(boolean avmAllStores)

setSecurityConfigBean

public void setSecurityConfigBean(SecurityConfigBean securityConfigBean)

setCoreServerConfigBean

public void setCoreServerConfigBean(CoreServerConfigBean coreServerConfigBean)

setClusterConfigBean

public void setClusterConfigBean(ClusterConfigBean clusterConfigBean)

processCIFSServerConfig

protected void processCIFSServerConfig()
Process the CIFS server configuration

Specified by:
processCIFSServerConfig in class AbstractServerConfigurationBean

processFTPServerConfig

protected void processFTPServerConfig()
Process the FTP server configuration

Specified by:
processFTPServerConfig in class AbstractServerConfigurationBean

processNFSServerConfig

protected void processNFSServerConfig()
Process the NFS server configuration

Specified by:
processNFSServerConfig in class AbstractServerConfigurationBean

processFilesystemsConfig

protected void processFilesystemsConfig()
Process the filesystems configuration

Specified by:
processFilesystemsConfig in class AbstractServerConfigurationBean

processSecurityConfig

protected void processSecurityConfig()
Process the security configuration

Specified by:
processSecurityConfig in class AbstractServerConfigurationBean

processCoreServerConfig

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

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

initialiseRuntimeContext

public void initialiseRuntimeContext(AlfrescoContext diskCtx)
Initialise a runtime context - not configured through spring e.g MT. TODO - what about desktop actions etc?

Parameters:
diskCtx -

processClusterConfig

protected void processClusterConfig()
                             throws org.alfresco.jlan.server.config.InvalidConfigurationException
Specified by:
processClusterConfig in class AbstractServerConfigurationBean
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException


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