Package org.alfresco.filesys.config
Class ServerConfigurationBean
java.lang.Object
org.alfresco.jlan.server.config.ServerConfiguration
org.alfresco.filesys.AbstractServerConfigurationBean
org.alfresco.filesys.config.ServerConfigurationBean
- All Implemented Interfaces:
EventListener,ExtendedServerConfigurationAccessor,org.alfresco.jlan.server.config.ServerConfigurationAccessor,org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class ServerConfigurationBean
extends AbstractServerConfigurationBean
implements org.springframework.beans.factory.DisposableBean
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.
- Author:
- gkspencer, dward, mrogers
-
Field Summary
Fields inherited from class org.alfresco.filesys.AbstractServerConfigurationBean
BIND_TO_IGNORE, DefaultFTPAnonymousAccount, DefaultFTPServerPort, DefaultFTPSrvSessionTimeout, DefaultMemoryPoolBufSizes, DefaultMemoryPoolInitAlloc, DefaultMemoryPoolMaxAlloc, DefaultThreadPoolInit, DefaultThreadPoolMax, logger, m_authenticationComponent, m_disableNativeCode, m_ftpDebugStr, m_nfsDebugStr, m_tenantService, MaxSessionTimeout, MemoryPoolMaximumAllocation, MemoryPoolMinimumAllocation -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorServerConfigurationBean(String srvName) Class constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidinitialiseRuntimeContext(String uniqueName, AlfrescoContext diskCtx) Initialise a runtime context - not configured through spring e.g MT.protected voidProcess the core server configurationprotected voidProcess the filesystems configurationprotected voidProcess the FTP server configurationprotected voidProcess the security configurationvoidsetCoreServerConfigBean(CoreServerConfigBean coreServerConfigBean) voidsetFilesystemContexts(List<org.alfresco.jlan.server.core.DeviceContext> filesystemContexts) voidsetFtpConfigBean(FTPConfigBean ftpConfigBean) voidsetSecurityConfigBean(SecurityConfigBean securityConfigBean) Methods inherited from class org.alfresco.filesys.AbstractServerConfigurationBean
closeConfiguration, getApplicationsContext, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getBean, getLocalDomainName, getLocalServerName, getNamespaceService, getNodeService, getPersonService, getRepoDiskInterface, getSearchService, getTenantService, getTransactionService, init, isFTPServerEnabled, isInitialised, isNativeCodeDisabled, isNFSServerEnabled, onApplicationEvent, parseAdapterName, parsePlatformString, processWINSServerConfig, setApplicationContext, setAuthenticationComponent, setAuthenticationService, setAuthorityService, setDiskInterface, setNamespaceService, setNodeService, setPersonService, setSearchService, setTenantService, setTransactionServiceMethods 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, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.alfresco.jlan.server.config.ServerConfigurationAccessor
getConfigSection, getServerName, isServerRunning
-
Constructor Details
-
ServerConfigurationBean
public ServerConfigurationBean()Default constructor -
ServerConfigurationBean
Class constructor- Parameters:
srvName- String
-
-
Method Details
-
setFtpConfigBean
-
setFilesystemContexts
public void setFilesystemContexts(List<org.alfresco.jlan.server.core.DeviceContext> filesystemContexts) -
setSecurityConfigBean
-
setCoreServerConfigBean
-
processFTPServerConfig
protected void processFTPServerConfig()Process the FTP server configuration- Specified by:
processFTPServerConfigin classAbstractServerConfigurationBean
-
processFilesystemsConfig
protected void processFilesystemsConfig()Process the filesystems configuration- Specified by:
processFilesystemsConfigin classAbstractServerConfigurationBean
-
processSecurityConfig
protected void processSecurityConfig()Process the security configuration- Specified by:
processSecurityConfigin classAbstractServerConfigurationBean
-
processCoreServerConfig
protected void processCoreServerConfig() throws org.alfresco.jlan.server.config.InvalidConfigurationExceptionProcess the core server configuration- Specified by:
processCoreServerConfigin classAbstractServerConfigurationBean- Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException
-
initialiseRuntimeContext
Initialise a runtime context - not configured through spring e.g MT. TODO - what about desktop actions etc?- Parameters:
uniqueName- StringdiskCtx- AlfrescoContext
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-