public class FileServerConfig extends Object implements FileServerConfigMBean
Implements the file server configuration interface using the fileServerConfigurationBase bean from network-protocol-context.xml.
| Constructor and Description |
|---|
FileServerConfig()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
CifsMounter |
createMounter()
Create a mounter to mount/unmount a share on the CIFS server
|
String |
getCIFSServerAddress()
Return the CIFS server IP address
|
String |
getCIFSServerName()
Return the CIFS server name
|
org.alfresco.jlan.server.config.ServerConfiguration |
getFileServerConfiguration()
Set the file server configuration
|
boolean |
isCIFSServerEnabled()
Check if the CIFS server is enabled
|
boolean |
isFTPServerEnabled()
Check if the FTP server is enabled
|
void |
setCifsServer(CIFSServerBean smbServer)
Set the CIFS server
|
void |
setCIFSServerEnabled(boolean enabled)
Enable/disable CIFS server
|
void |
setFileServerConfiguration(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
Set the file server configuration
|
void |
setFtpServer(FTPServerBean ftpServer)
Set the FTP server
|
void |
setFTPServerEnabled(boolean enabled)
Enable/disable FTP server
|
public org.alfresco.jlan.server.config.ServerConfiguration getFileServerConfiguration()
public void setFileServerConfiguration(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
serverConfig - ServerConfigurationpublic void setCifsServer(CIFSServerBean smbServer)
smbServer - CIFS serverpublic boolean isCIFSServerEnabled()
isCIFSServerEnabled in interface FileServerConfigMBeanpublic void setCIFSServerEnabled(boolean enabled)
throws Exception
FileServerConfigMBeansetCIFSServerEnabled in interface FileServerConfigMBeanenabled - true to enable, false to disableExceptionpublic void setFtpServer(FTPServerBean ftpServer)
ftpServer - FTP serverpublic boolean isFTPServerEnabled()
isFTPServerEnabled in interface FileServerConfigMBeanpublic void setFTPServerEnabled(boolean enabled)
throws Exception
FileServerConfigMBeansetFTPServerEnabled in interface FileServerConfigMBeanenabled - true to enable, false to disableExceptionpublic String getCIFSServerName()
getCIFSServerName in interface FileServerConfigMBeanpublic String getCIFSServerAddress()
getCIFSServerAddress in interface FileServerConfigMBeanpublic CifsMounter createMounter()
Copyright © 2005–2018 Alfresco Software. All rights reserved.