Package org.alfresco.filesys
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringprotected static final intprotected static final intprotected static final int[]protected static final int[]protected static final int[]protected static final intprotected static final intprotected static final org.apache.commons.logging.Logprotected AuthenticationComponentprotected booleanprotected static final String[]protected static final String[]protected TenantServicestatic final intprotected static final intprotected static final int -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAbstractServerConfigurationBean(String srvName) Class constructor -
Method Summary
Modifier and TypeMethodDescriptionfinal voidClose the configuration beanfinal org.springframework.context.ApplicationContextReturn the applicatin contextprotected final AuthenticationComponentReturn the authentication componentprotected final AuthenticationServiceReturn the authentication servicefinal AuthorityServiceReturn the authority servicefinal ObjectReturn the named beanfinal StringGet the local domain/workgroup namefinal StringgetLocalServerName(boolean trimDomain) Get the local server name and optionally trim the domain nameprotected final NamespaceServiceReturn the namespace serviceprotected final NodeServiceReturn the node serviceprotected final PersonServiceReturn the person servicefinal ExtendedDiskInterfaceReturn the repository disk interface to be used to create sharesprotected final SearchServiceReturn the search serviceprotected final TenantServiceReturn the tenant serviceprotected final TransactionServiceReturn the transaction servicevoidinit()Initialize the configuration using the configuration servicefinal booleanCheck if the FTP server is enabledbooleanCheck if the configuration has been initializedfinal booleanCheck if native code calls are disabledfinal booleanCheck if the NFS server is enabledvoidonApplicationEvent(org.springframework.context.ApplicationEvent event) protected final InetAddressparseAdapterName(String adapter) Parse an adapter name string and return the matching addressprotected final EnumSet<org.alfresco.jlan.util.Platform.Type>parsePlatformString(String platformStr) Parse the platforms attribute returning the set of platform idsprotected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidprotected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidSet the authentication componentvoidsetAuthenticationService(AuthenticationService authenticationService) Set the authentication servicevoidsetAuthorityService(AuthorityService authService) Set the authority servicevoidsetDiskInterface(ExtendedDiskInterface diskInterface) Set the filesystem driver for the node service based filesystemvoidsetNamespaceService(NamespaceService namespaceService) Set the namespace servicevoidsetNodeService(NodeService service) Set the node servicevoidsetPersonService(PersonService service) Set the person servicevoidsetSearchService(SearchService searchService) Set the search servicevoidsetTenantService(TenantService tenantService) Set the tenant servicevoidsetTransactionService(TransactionService service) Set the transaction serviceMethods 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.alfresco.jlan.server.config.ServerConfigurationAccessor
getConfigSection, getServerName, isServerRunning
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger -
BIND_TO_IGNORE
- See Also:
-
m_ftpDebugStr
-
DefaultFTPServerPort
protected static final int DefaultFTPServerPort- See Also:
-
DefaultFTPSrvSessionTimeout
protected static final int DefaultFTPSrvSessionTimeout- See Also:
-
DefaultFTPAnonymousAccount
- See Also:
-
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
-
m_tenantService
-
m_disableNativeCode
protected boolean m_disableNativeCode
-
-
Constructor Details
-
AbstractServerConfigurationBean
public AbstractServerConfigurationBean()Default constructor -
AbstractServerConfigurationBean
Class constructor- Parameters:
srvName- String
-
-
Method Details
-
setAuthenticationService
Set the authentication service- Parameters:
authenticationService- AuthenticationService
-
setDiskInterface
Set the filesystem driver for the node service based filesystem- Parameters:
diskInterface- DiskInterface
-
setAuthenticationComponent
Set the authentication component- Parameters:
component- AuthenticationComponent
-
setNodeService
Set the node service- Parameters:
service- NodeService
-
setPersonService
Set the person service- Parameters:
service- PersonService
-
setTransactionService
Set the transaction service- Parameters:
service- TransactionService
-
setTenantService
Set the tenant service- Parameters:
tenantService- TenantService
-
setSearchService
Set the search service- Parameters:
searchService- SearchService
-
setNamespaceService
Set the namespace service- Parameters:
namespaceService- NamespaceService
-
setAuthorityService
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
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:
closeConfigurationin classorg.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
Get the local server name and optionally trim the domain name- Specified by:
getLocalServerNamein interfaceExtendedServerConfigurationAccessor- Parameters:
trimDomain- boolean- Returns:
- String
-
getLocalDomainName
Get the local domain/workgroup name- Specified by:
getLocalDomainNamein interfaceExtendedServerConfigurationAccessor- 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:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getAuthenticationService
Return the authentication service- Returns:
- AuthenticationService
-
getAuthenticationComponent
Return the authentication component- Returns:
- AuthenticationComponent
-
getNodeService
Return the node service- Returns:
- NodeService
-
getPersonService
Return the person service- Returns:
- PersonService
-
getTransactionService
Return the transaction service- Returns:
- TransactionService
-
getTenantService
Return the tenant service- Returns:
- TenantService
-
getSearchService
Return the search service- Returns:
- SearchService
-
getNamespaceService
Return the namespace service- Returns:
- NamespaceService
-
isNativeCodeDisabled
public final boolean isNativeCodeDisabled()Check if native code calls are disabled- Returns:
- boolean
-
getBean
Return the named bean- Parameters:
beanName- String- Returns:
- Object
-
getApplicationsContext
public final org.springframework.context.ApplicationContext getApplicationsContext()Return the applicatin context- Returns:
- ApplicationContext
-
getAuthorityService
Return the authority service- Returns:
- AuthorityService
-