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 FileServerConfigMBean
public void setCIFSServerEnabled(boolean enabled) throws Exception
FileServerConfigMBean
setCIFSServerEnabled
in interface FileServerConfigMBean
enabled
- true to enable, false to disableException
public void setFtpServer(FTPServerBean ftpServer)
ftpServer
- FTP serverpublic boolean isFTPServerEnabled()
isFTPServerEnabled
in interface FileServerConfigMBean
public void setFTPServerEnabled(boolean enabled) throws Exception
FileServerConfigMBean
setFTPServerEnabled
in interface FileServerConfigMBean
enabled
- true to enable, false to disableException
public String getCIFSServerName()
getCIFSServerName
in interface FileServerConfigMBean
public String getCIFSServerAddress()
getCIFSServerAddress
in interface FileServerConfigMBean
public CifsMounter createMounter()
Copyright © 2005–2017 Alfresco Software. All rights reserved.