org.alfresco.filesys
Class AbstractServerConfigurationBean

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

public abstract class AbstractServerConfigurationBean
extends org.alfresco.jlan.server.config.ServerConfiguration
implements ExtendedServerConfigurationAccessor, org.springframework.context.ApplicationListener, org.springframework.context.ApplicationContextAware

Alfresco File Server Configuration Bean Class


Field Summary
static java.lang.String BIND_TO_IGNORE
           
protected static java.lang.String DefaultFTPAnonymousAccount
           
protected static int DefaultFTPServerPort
           
protected static int[] DefaultMemoryPoolBufSizes
           
protected static int[] DefaultMemoryPoolInitAlloc
           
protected static int[] DefaultMemoryPoolMaxAlloc
           
protected static int DefaultThreadPoolInit
           
protected static int DefaultThreadPoolMax
           
protected static org.apache.commons.logging.Log logger
           
protected  AuthenticationComponent m_authenticationComponent
           
protected  boolean m_disableNativeCode
           
protected static java.lang.String[] m_ftpDebugStr
           
protected static java.lang.String[] m_nfsDebugStr
           
protected static java.lang.String[] m_sessDbgStr
           
protected  org.alfresco.repo.tenant.TenantService m_tenantService
           
protected static int MaxSessionTimeout
           
protected static int MemoryPoolMaximumAllocation
           
protected static int MemoryPoolMinimumAllocation
           
protected static java.lang.String TokenLocalName
           
 
Constructor Summary
AbstractServerConfigurationBean()
          Default constructor
AbstractServerConfigurationBean(java.lang.String srvName)
          Class constructor
 
Method Summary
 void closeConfiguration()
          Close the configuration bean
 org.springframework.context.ApplicationContext getApplicationsContext()
          Return the applicatin context
protected  AuthenticationComponent getAuthenticationComponent()
          Return the authentication component
protected  AuthenticationService getAuthenticationService()
          Return the authentication service
 AuthorityService getAuthorityService()
          Return the authority service
 ExtendedDiskInterface getAvmDiskInterface()
          Return the disk interface to be used to create AVM filesystem shares
 java.lang.Object getBean(java.lang.String beanName)
          Return the named bean
 java.lang.String getLocalDomainName()
          Get the local domain/workgroup name
 java.lang.String getLocalServerName(boolean trimDomain)
          Get the local server name and optionally trim the domain name
protected  org.alfresco.service.namespace.NamespaceService getNamespaceService()
          Return the namespace service
protected  org.alfresco.service.cmr.repository.NodeService getNodeService()
          Return the node service
protected  PersonService getPersonService()
          Return the person service
 ExtendedDiskInterface getRepoDiskInterface()
          Return the repository disk interface to be used to create shares
protected  org.alfresco.service.cmr.search.SearchService getSearchService()
          Return the search service
protected  org.alfresco.repo.tenant.TenantService getTenantService()
          Return the tenant service
protected  TransactionService getTransactionService()
          Return the transaction service
 void init()
          Initialize the configuration using the configuration service
 boolean isFTPServerEnabled()
          Check if the FTP server is enabled
 boolean isInitialised()
          Check if the configuration has been initialized
 boolean isNativeCodeDisabled()
          Check if native code calls are disabled
 boolean isNFSServerEnabled()
          Check if the NFS server is enabled
 boolean isSMBServerEnabled()
          Check if the SMB server is enabled
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
protected  java.net.InetAddress parseAdapterName(java.lang.String adapter)
          Parse an adapter name string and return the matching address
protected  java.util.EnumSet parsePlatformString(java.lang.String platformStr)
          Parse the platforms attribute returning the set of platform ids
protected abstract  void processCIFSServerConfig()
           
protected abstract  void processClusterConfig()
           
protected abstract  void processCoreServerConfig()
           
protected abstract  void processFilesystemsConfig()
           
protected abstract  void processFTPServerConfig()
           
protected abstract  void processNFSServerConfig()
           
protected abstract  void processSecurityConfig()
           
protected  void processWINSServerConfig()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setAuthenticationComponent(AuthenticationComponent component)
          Set the authentication component
 void setAuthenticationService(AuthenticationService authenticationService)
          Set the authentication service
 void setAuthorityService(AuthorityService authService)
          Set the authority service
 void setAvmDiskInterface(ExtendedDiskInterface diskInterface)
          Set the filesystem driver for the AVM based filesystem
 void setDiskInterface(ExtendedDiskInterface diskInterface)
          Set the filesystem driver for the node service based filesystem
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
          Set the namespace service
 void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
          Set the node service
 void setPersonService(PersonService service)
          Set the person service
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
          Set the search service
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
          Set the tenant service
 void setTransactionService(TransactionService service)
          Set the transaction service
 
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

logger

protected static final org.apache.commons.logging.Log logger

BIND_TO_IGNORE

public static final java.lang.String BIND_TO_IGNORE
See Also:
Constant Field Values

m_sessDbgStr

protected static final java.lang.String[] m_sessDbgStr

m_ftpDebugStr

protected static final java.lang.String[] m_ftpDebugStr

DefaultFTPServerPort

protected static final int DefaultFTPServerPort
See Also:
Constant Field Values

DefaultFTPAnonymousAccount

protected static final java.lang.String DefaultFTPAnonymousAccount
See Also:
Constant Field Values

m_nfsDebugStr

protected static final java.lang.String[] m_nfsDebugStr

TokenLocalName

protected static final java.lang.String TokenLocalName
See Also:
Constant Field Values

DefaultThreadPoolInit

protected static final int DefaultThreadPoolInit
See Also:
Constant Field Values

DefaultThreadPoolMax

protected static final int DefaultThreadPoolMax
See Also:
Constant Field Values

DefaultMemoryPoolBufSizes

protected static final int[] DefaultMemoryPoolBufSizes

DefaultMemoryPoolInitAlloc

protected static final int[] DefaultMemoryPoolInitAlloc

DefaultMemoryPoolMaxAlloc

protected static final int[] DefaultMemoryPoolMaxAlloc

MemoryPoolMinimumAllocation

protected static final int MemoryPoolMinimumAllocation
See Also:
Constant Field Values

MemoryPoolMaximumAllocation

protected static final int MemoryPoolMaximumAllocation
See Also:
Constant Field Values

MaxSessionTimeout

protected static final int MaxSessionTimeout
See Also:
Constant Field Values

m_authenticationComponent

protected AuthenticationComponent m_authenticationComponent

m_tenantService

protected org.alfresco.repo.tenant.TenantService m_tenantService

m_disableNativeCode

protected boolean m_disableNativeCode
Constructor Detail

AbstractServerConfigurationBean

public AbstractServerConfigurationBean()
Default constructor


AbstractServerConfigurationBean

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

Parameters:
srvName - String
Method Detail

setAuthenticationService

public void setAuthenticationService(AuthenticationService authenticationService)
Set the authentication service

Parameters:
authenticationService - AuthenticationService

setDiskInterface

public void setDiskInterface(ExtendedDiskInterface diskInterface)
Set the filesystem driver for the node service based filesystem

Parameters:
diskInterface - DiskInterface

setAvmDiskInterface

public void setAvmDiskInterface(ExtendedDiskInterface diskInterface)
Set the filesystem driver for the AVM based filesystem


setAuthenticationComponent

public void setAuthenticationComponent(AuthenticationComponent component)
Set the authentication component

Parameters:
component - AuthenticationComponent

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
Set the node service

Parameters:
service - NodeService

setPersonService

public void setPersonService(PersonService service)
Set the person service

Parameters:
service - PersonService

setTransactionService

public void setTransactionService(TransactionService service)
Set the transaction service

Parameters:
service - TransactionService

setTenantService

public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service

Parameters:
tenantService - TenantService

setSearchService

public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Set the search service

Parameters:
searchService - SearchService

setNamespaceService

public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Set the namespace service

Parameters:
namespaceService - NamespaceService

setAuthorityService

public void setAuthorityService(AuthorityService authService)
Set the authority service

Parameters:
authService - AuthorityService

isInitialised

public boolean isInitialised()
Check if the configuration has been initialized

Returns:
Returns true if the configuration was fully initialised

isSMBServerEnabled

public final boolean isSMBServerEnabled()
Check if the SMB server is enabled

Returns:
boolean

isFTPServerEnabled

public final boolean isFTPServerEnabled()
Check if the FTP server is enabled

Returns:
boolean

isNFSServerEnabled

public final boolean isNFSServerEnabled()
Check if the NFS server is enabled

Returns:
boolean

getRepoDiskInterface

public final ExtendedDiskInterface getRepoDiskInterface()
Return the repository disk interface to be used to create shares

Returns:
DiskInterface

getAvmDiskInterface

public final ExtendedDiskInterface getAvmDiskInterface()
Return the disk interface to be used to create AVM filesystem shares

Returns:
DiskInterface

init

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


processCoreServerConfig

protected abstract void processCoreServerConfig()
                                         throws org.alfresco.jlan.server.config.InvalidConfigurationException
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

processSecurityConfig

protected abstract void processSecurityConfig()

processFilesystemsConfig

protected abstract void processFilesystemsConfig()

processCIFSServerConfig

protected abstract void processCIFSServerConfig()

processNFSServerConfig

protected abstract void processNFSServerConfig()

processFTPServerConfig

protected abstract void processFTPServerConfig()

processClusterConfig

protected abstract void processClusterConfig()
                                      throws org.alfresco.jlan.server.config.InvalidConfigurationException
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

processWINSServerConfig

protected void processWINSServerConfig()

closeConfiguration

public final void closeConfiguration()
Close the configuration bean

Overrides:
closeConfiguration in class org.alfresco.jlan.server.config.ServerConfiguration

parsePlatformString

protected final java.util.EnumSet parsePlatformString(java.lang.String platformStr)
Parse the platforms attribute returning the set of platform ids

Parameters:
platformStr - String
Returns:
EnumSet

getLocalServerName

public final java.lang.String getLocalServerName(boolean trimDomain)
Get the local server name and optionally trim the domain name

Specified by:
getLocalServerName in interface ExtendedServerConfigurationAccessor
Parameters:
trimDomain - boolean
Returns:
String

getLocalDomainName

public final java.lang.String getLocalDomainName()
Get the local domain/workgroup name

Specified by:
getLocalDomainName in interface ExtendedServerConfigurationAccessor
Returns:
String

parseAdapterName

protected final java.net.InetAddress parseAdapterName(java.lang.String adapter)
                                               throws org.alfresco.jlan.server.config.InvalidConfigurationException
Parse an adapter name string and return the matching address

Parameters:
adapter - String
Returns:
InetAddress
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getAuthenticationService

protected final AuthenticationService getAuthenticationService()
Return the authentication service

Returns:
AuthenticationService

getAuthenticationComponent

protected final AuthenticationComponent getAuthenticationComponent()
Return the authentication component

Returns:
AuthenticationComponent

getNodeService

protected final org.alfresco.service.cmr.repository.NodeService getNodeService()
Return the node service

Returns:
NodeService

getPersonService

protected final PersonService getPersonService()
Return the person service

Returns:
PersonService

getTransactionService

protected final TransactionService getTransactionService()
Return the transaction service

Returns:
TransactionService

getTenantService

protected final org.alfresco.repo.tenant.TenantService getTenantService()
Return the tenant service

Returns:
TenantService

getSearchService

protected final org.alfresco.service.cmr.search.SearchService getSearchService()
Return the search service

Returns:
SearchService

getNamespaceService

protected final org.alfresco.service.namespace.NamespaceService getNamespaceService()
Return the namespace service

Returns:
NamespaceService

isNativeCodeDisabled

public final boolean isNativeCodeDisabled()
Check if native code calls are disabled

Returns:
boolean

getBean

public final java.lang.Object getBean(java.lang.String beanName)
Return the named bean

Parameters:
beanName - String
Returns:
Object

getApplicationsContext

public final org.springframework.context.ApplicationContext getApplicationsContext()
Return the applicatin context

Returns:
ApplicationContext

getAuthorityService

public final AuthorityService getAuthorityService()
Return the authority service

Returns:
AuthorityService


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