Class AbstractServerConfigurationBean

java.lang.Object
org.alfresco.jlan.server.config.ServerConfiguration
org.alfresco.filesys.AbstractServerConfigurationBean
All Implemented Interfaces:
EventListener, ExtendedServerConfigurationAccessor, org.alfresco.jlan.server.config.ServerConfigurationAccessor, org.springframework.beans.factory.Aware, 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
Author:
gkspencer
  • Field Details

    • logger

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

      public static final String BIND_TO_IGNORE
      See Also:
    • m_ftpDebugStr

      protected static final String[] m_ftpDebugStr
    • DefaultFTPServerPort

      protected static final int DefaultFTPServerPort
      See Also:
    • DefaultFTPSrvSessionTimeout

      protected static final int DefaultFTPSrvSessionTimeout
      See Also:
    • DefaultFTPAnonymousAccount

      protected static final String DefaultFTPAnonymousAccount
      See Also:
    • m_nfsDebugStr

      protected static final String[] m_nfsDebugStr
    • DefaultThreadPoolInit

      protected static final int DefaultThreadPoolInit
      See Also:
    • DefaultThreadPoolMax

      protected static final int DefaultThreadPoolMax
      See Also:
    • 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:
    • MemoryPoolMaximumAllocation

      protected static final int MemoryPoolMaximumAllocation
      See Also:
    • MaxSessionTimeout

      public static final int MaxSessionTimeout
      See Also:
    • m_authenticationComponent

      protected AuthenticationComponent m_authenticationComponent
    • m_tenantService

      protected TenantService m_tenantService
    • m_disableNativeCode

      protected boolean m_disableNativeCode
  • Constructor Details

    • AbstractServerConfigurationBean

      public AbstractServerConfigurationBean()
      Default constructor
    • AbstractServerConfigurationBean

      public AbstractServerConfigurationBean(String srvName)
      Class constructor
      Parameters:
      srvName - String
  • Method Details

    • 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
    • setAuthenticationComponent

      public void setAuthenticationComponent(AuthenticationComponent component)
      Set the authentication component
      Parameters:
      component - AuthenticationComponent
    • setNodeService

      public void setNodeService(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(TenantService tenantService)
      Set the tenant service
      Parameters:
      tenantService - TenantService
    • setSearchService

      public void setSearchService(SearchService searchService)
      Set the search service
      Parameters:
      searchService - SearchService
    • setNamespaceService

      public void setNamespaceService(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
    • 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
    • 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()
    • processFTPServerConfig

      protected abstract void processFTPServerConfig()
    • 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 EnumSet<org.alfresco.jlan.util.Platform.Type> parsePlatformString(String platformStr)
      Parse the platforms attribute returning the set of platform ids
      Parameters:
      platformStr - String
    • getLocalServerName

      public final 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 String getLocalDomainName()
      Get the local domain/workgroup name
      Specified by:
      getLocalDomainName in interface ExtendedServerConfigurationAccessor
      Returns:
      String
    • parseAdapterName

      protected final InetAddress parseAdapterName(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 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 TenantService getTenantService()
      Return the tenant service
      Returns:
      TenantService
    • getSearchService

      protected final SearchService getSearchService()
      Return the search service
      Returns:
      SearchService
    • getNamespaceService

      protected final 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 Object getBean(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