public abstract class AbstractServerConfigurationBean extends org.alfresco.jlan.server.config.ServerConfiguration implements ExtendedServerConfigurationAccessor, org.springframework.context.ApplicationListener, org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
static String |
BIND_TO_IGNORE |
protected static String |
DefaultFTPAnonymousAccount |
protected static int |
DefaultFTPServerPort |
protected static int |
DefaultFTPSrvSessionTimeout |
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 String[] |
m_ftpDebugStr |
protected static String[] |
m_nfsDebugStr |
protected static String[] |
m_sessDbgStr |
protected org.alfresco.repo.tenant.TenantService |
m_tenantService |
static int |
MaxSessionTimeout |
protected static int |
MemoryPoolMaximumAllocation |
protected static int |
MemoryPoolMinimumAllocation |
protected static String |
TokenLocalName |
Constructor and Description |
---|
AbstractServerConfigurationBean()
Default constructor
|
AbstractServerConfigurationBean(String srvName)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
Object |
getBean(String beanName)
Return the named bean
|
String |
getLocalDomainName()
Get the local domain/workgroup name
|
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 InetAddress |
parseAdapterName(String adapter)
Parse an adapter name string and return the matching address
|
protected EnumSet<org.alfresco.jlan.util.Platform.Type> |
parsePlatformString(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 |
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 |
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
|
addConfigSection, addListener, addServer, findServer, fireConfigurationChange, getConfigSection, getPlatformType, getPlatformTypeString, getServer, getServerName, hasConfigSection, hasConfigurationListeners, isServerRunning, isUpdated, loadConfiguration, numberOfServers, removeAllConfigSections, removeConfigSection, removeListener, removeServer, saveConfiguration, setServerName, setUpdated
protected static final org.apache.commons.logging.Log logger
public static final String BIND_TO_IGNORE
protected static final String[] m_sessDbgStr
protected static final String[] m_ftpDebugStr
protected static final int DefaultFTPServerPort
protected static final int DefaultFTPSrvSessionTimeout
protected static final String DefaultFTPAnonymousAccount
protected static final String[] m_nfsDebugStr
protected static final String TokenLocalName
protected static final int DefaultThreadPoolInit
protected static final int DefaultThreadPoolMax
protected static final int[] DefaultMemoryPoolBufSizes
protected static final int[] DefaultMemoryPoolInitAlloc
protected static final int[] DefaultMemoryPoolMaxAlloc
protected static final int MemoryPoolMinimumAllocation
protected static final int MemoryPoolMaximumAllocation
public static final int MaxSessionTimeout
protected AuthenticationComponent m_authenticationComponent
protected org.alfresco.repo.tenant.TenantService m_tenantService
protected boolean m_disableNativeCode
public AbstractServerConfigurationBean()
public AbstractServerConfigurationBean(String srvName)
srvName
- Stringpublic void setAuthenticationService(AuthenticationService authenticationService)
authenticationService
- AuthenticationServicepublic void setDiskInterface(ExtendedDiskInterface diskInterface)
diskInterface
- DiskInterfacepublic void setAuthenticationComponent(AuthenticationComponent component)
component
- AuthenticationComponentpublic void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
service
- NodeServicepublic void setPersonService(PersonService service)
service
- PersonServicepublic void setTransactionService(TransactionService service)
service
- TransactionServicepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- TenantServicepublic void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- SearchServicepublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- NamespaceServicepublic void setAuthorityService(AuthorityService authService)
authService
- AuthorityServicepublic boolean isInitialised()
public final boolean isSMBServerEnabled()
public final boolean isFTPServerEnabled()
public final boolean isNFSServerEnabled()
public final ExtendedDiskInterface getRepoDiskInterface()
public void init()
protected abstract void processCoreServerConfig() throws org.alfresco.jlan.server.config.InvalidConfigurationException
org.alfresco.jlan.server.config.InvalidConfigurationException
protected abstract void processSecurityConfig()
protected abstract void processFilesystemsConfig()
protected abstract void processCIFSServerConfig()
protected abstract void processFTPServerConfig()
protected abstract void processClusterConfig() throws org.alfresco.jlan.server.config.InvalidConfigurationException
org.alfresco.jlan.server.config.InvalidConfigurationException
protected void processWINSServerConfig()
public final void closeConfiguration()
closeConfiguration
in class org.alfresco.jlan.server.config.ServerConfiguration
protected final EnumSet<org.alfresco.jlan.util.Platform.Type> parsePlatformString(String platformStr)
platformStr
- Stringpublic final String getLocalServerName(boolean trimDomain)
getLocalServerName
in interface ExtendedServerConfigurationAccessor
trimDomain
- booleanpublic final String getLocalDomainName()
getLocalDomainName
in interface ExtendedServerConfigurationAccessor
protected final InetAddress parseAdapterName(String adapter) throws org.alfresco.jlan.server.config.InvalidConfigurationException
adapter
- Stringorg.alfresco.jlan.server.config.InvalidConfigurationException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
protected final AuthenticationService getAuthenticationService()
protected final AuthenticationComponent getAuthenticationComponent()
protected final org.alfresco.service.cmr.repository.NodeService getNodeService()
protected final PersonService getPersonService()
protected final TransactionService getTransactionService()
protected final org.alfresco.repo.tenant.TenantService getTenantService()
protected final org.alfresco.service.cmr.search.SearchService getSearchService()
protected final org.alfresco.service.namespace.NamespaceService getNamespaceService()
public final boolean isNativeCodeDisabled()
public final Object getBean(String beanName)
beanName
- Stringpublic final org.springframework.context.ApplicationContext getApplicationsContext()
public final AuthorityService getAuthorityService()
Copyright © 2005–2017 Alfresco Software. All rights reserved.