org.alfresco.filesys
Class FileServerConfig

java.lang.Object
  extended by org.alfresco.filesys.FileServerConfig
All Implemented Interfaces:
FileServerConfigMBean

public class FileServerConfig
extends java.lang.Object
implements FileServerConfigMBean

File Server Configuration MBean Class

Implements the file server configuration interface using the fileServerConfigurationBase bean from network-protocol-context.xml.


Constructor Summary
FileServerConfig()
          Default constructor
 
Method Summary
 CifsMounter createMounter()
          Create a mounter to mount/unmount a share on the CIFS server
 java.lang.String getCIFSServerAddress()
          Return the CIFS server IP address
 java.lang.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
 boolean isNFSServerEnabled()
          Check if the NFS 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
 void setNfsServer(NFSServerBean nfsServer)
          Set the NFS server
 void setNFSServerEnabled(boolean enabled)
          Enable/disable NFS server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileServerConfig

public FileServerConfig()
Default constructor

Method Detail

getFileServerConfiguration

public org.alfresco.jlan.server.config.ServerConfiguration getFileServerConfiguration()
Set the file server configuration

Returns:
ServerConfiguration

setFileServerConfiguration

public void setFileServerConfiguration(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
Set the file server configuration

Parameters:
serverConfig - ServerConfiguration

setCifsServer

public void setCifsServer(CIFSServerBean smbServer)
Set the CIFS server

Parameters:
smbServer - CIFS server

isCIFSServerEnabled

public boolean isCIFSServerEnabled()
Check if the CIFS server is enabled

Specified by:
isCIFSServerEnabled in interface FileServerConfigMBean
Returns:
boolean

setCIFSServerEnabled

public void setCIFSServerEnabled(boolean enabled)
                          throws java.lang.Exception
Description copied from interface: FileServerConfigMBean
Enable/disable CIFS server

Specified by:
setCIFSServerEnabled in interface FileServerConfigMBean
Parameters:
enabled - true to enable, false to disable
Throws:
java.lang.Exception

setFtpServer

public void setFtpServer(FTPServerBean ftpServer)
Set the FTP server

Parameters:
ftpServer - FTP server

isFTPServerEnabled

public boolean isFTPServerEnabled()
Check if the FTP server is enabled

Specified by:
isFTPServerEnabled in interface FileServerConfigMBean
Returns:
boolean

setFTPServerEnabled

public void setFTPServerEnabled(boolean enabled)
                         throws java.lang.Exception
Description copied from interface: FileServerConfigMBean
Enable/disable FTP server

Specified by:
setFTPServerEnabled in interface FileServerConfigMBean
Parameters:
enabled - true to enable, false to disable
Throws:
java.lang.Exception

setNfsServer

public void setNfsServer(NFSServerBean nfsServer)
Set the NFS server

Parameters:
nfsServer - NFS server

isNFSServerEnabled

public boolean isNFSServerEnabled()
Check if the NFS server is enabled

Specified by:
isNFSServerEnabled in interface FileServerConfigMBean
Returns:
boolean

setNFSServerEnabled

public void setNFSServerEnabled(boolean enabled)
                         throws java.lang.Exception
Description copied from interface: FileServerConfigMBean
Enable/disable NFS server

Specified by:
setNFSServerEnabled in interface FileServerConfigMBean
Parameters:
enabled - true to enable, false to disable
Throws:
java.lang.Exception

getCIFSServerName

public java.lang.String getCIFSServerName()
Return the CIFS server name

Specified by:
getCIFSServerName in interface FileServerConfigMBean
Returns:
String

getCIFSServerAddress

public java.lang.String getCIFSServerAddress()
Return the CIFS server IP address

Specified by:
getCIFSServerAddress in interface FileServerConfigMBean
Returns:
String

createMounter

public CifsMounter createMounter()
Create a mounter to mount/unmount a share on the CIFS server

Returns:
CifsMounter


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.