mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-651: Decouple File Servers from Config Service and Authenticators
- Minor JLAN changes (backward compatible) - CIFSAuthenticator implements an interface (to allow dynamic proxying to authentication subsystem) - CIFSAuthenticator accesses ServerConfiguration via ServerConfigurationAccessor interface and doesn't retain references to config sections (again to allow dynamic proxying and hot swapping) - ConfigSections have way of directly setting container initialised authenticators, sharemappers, etc. - Authenticators, etc. still support initialisation from config service in backward compatible manner. - Most of ServerConfigurationBean moved to AbstractServerConfigurationBean superclass. - New org.alfresco.filesys.config package with ServerConfigurationBean implementation and supporting classes that can be initialised by a Spring container. - File server authenticators moved into authentication subsystem. TODO: Kerberos and NTLM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13795 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
253
source/java/org/alfresco/filesys/config/FTPConfigBean.java
Normal file
253
source/java/org/alfresco/filesys/config/FTPConfigBean.java
Normal file
@@ -0,0 +1,253 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2009 Alfresco Software Limited.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have received a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* http://www.alfresco.com/legal/licensing"
|
||||
*/
|
||||
package org.alfresco.filesys.config;
|
||||
|
||||
import org.alfresco.jlan.ftp.FTPAuthenticator;
|
||||
|
||||
// TODO: Auto-generated Javadoc
|
||||
/**
|
||||
* The Class FTPConfigBean.
|
||||
*
|
||||
* @author dward
|
||||
*/
|
||||
public class FTPConfigBean
|
||||
{
|
||||
|
||||
/** The server enabled. */
|
||||
private boolean serverEnabled;
|
||||
|
||||
/** The bind to. */
|
||||
private String bindTo;
|
||||
|
||||
/** The port. */
|
||||
private Integer port;
|
||||
|
||||
/** The allow anonymous. */
|
||||
private boolean allowAnonymous;
|
||||
|
||||
/** The anonymous account. */
|
||||
private String anonymousAccount;
|
||||
|
||||
/** The root directory. */
|
||||
private String rootDirectory;
|
||||
|
||||
/** The debug flags. */
|
||||
private String debugFlags;
|
||||
|
||||
/** The char set. */
|
||||
private String charSet;
|
||||
|
||||
/** The authenticator. */
|
||||
private FTPAuthenticator authenticator;
|
||||
|
||||
/**
|
||||
* Checks if is server enabled.
|
||||
*
|
||||
* @return true, if is server enabled
|
||||
*/
|
||||
public boolean getServerEnabled()
|
||||
{
|
||||
return serverEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the server enabled.
|
||||
*
|
||||
* @param serverEnabled
|
||||
* the new server enabled
|
||||
*/
|
||||
public void setServerEnabled(boolean serverEnabled)
|
||||
{
|
||||
this.serverEnabled = serverEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the bind to.
|
||||
*
|
||||
* @return the bind to
|
||||
*/
|
||||
public String getBindTo()
|
||||
{
|
||||
return bindTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the bind to.
|
||||
*
|
||||
* @param bindTo
|
||||
* the new bind to
|
||||
*/
|
||||
public void setBindTo(String bindTo)
|
||||
{
|
||||
this.bindTo = bindTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the port.
|
||||
*
|
||||
* @return the port
|
||||
*/
|
||||
public Integer getPort()
|
||||
{
|
||||
return port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the port.
|
||||
*
|
||||
* @param port
|
||||
* the new port
|
||||
*/
|
||||
public void setPort(Integer port)
|
||||
{
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is allow anonymous.
|
||||
*
|
||||
* @return true, if is allow anonymous
|
||||
*/
|
||||
public boolean getAllowAnonymous()
|
||||
{
|
||||
return allowAnonymous;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the allow anonymous.
|
||||
*
|
||||
* @param allowAnonymous
|
||||
* the new allow anonymous
|
||||
*/
|
||||
public void setAllowAnonymous(boolean allowAnonymous)
|
||||
{
|
||||
this.allowAnonymous = allowAnonymous;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the anonymous account.
|
||||
*
|
||||
* @return the anonymous account
|
||||
*/
|
||||
public String getAnonymousAccount()
|
||||
{
|
||||
return anonymousAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the anonymous account.
|
||||
*
|
||||
* @param anonymousAccount
|
||||
* the new anonymous account
|
||||
*/
|
||||
public void setAnonymousAccount(String anonymousAccount)
|
||||
{
|
||||
this.anonymousAccount = anonymousAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the root directory.
|
||||
*
|
||||
* @return the root directory
|
||||
*/
|
||||
public String getRootDirectory()
|
||||
{
|
||||
return rootDirectory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the root directory.
|
||||
*
|
||||
* @param rootDirectory
|
||||
* the new root directory
|
||||
*/
|
||||
public void setRootDirectory(String rootDirectory)
|
||||
{
|
||||
this.rootDirectory = rootDirectory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the debug flags.
|
||||
*
|
||||
* @return the debug flags
|
||||
*/
|
||||
public String getDebugFlags()
|
||||
{
|
||||
return debugFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the debug flags.
|
||||
*
|
||||
* @param debugFlags
|
||||
* the new debug flags
|
||||
*/
|
||||
public void setDebugFlags(String debugFlags)
|
||||
{
|
||||
this.debugFlags = debugFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the char set.
|
||||
*
|
||||
* @return the char set
|
||||
*/
|
||||
public String getCharSet()
|
||||
{
|
||||
return charSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the char set.
|
||||
*
|
||||
* @param charSet
|
||||
* the new char set
|
||||
*/
|
||||
public void setCharSet(String charSet)
|
||||
{
|
||||
this.charSet = charSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the authenticator.
|
||||
*
|
||||
* @return the authenticator
|
||||
*/
|
||||
public FTPAuthenticator getAuthenticator()
|
||||
{
|
||||
return authenticator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the authenticator.
|
||||
*
|
||||
* @param authenticator
|
||||
* the new authenticator
|
||||
*/
|
||||
public void setAuthenticator(FTPAuthenticator authenticator)
|
||||
{
|
||||
this.authenticator = authenticator;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user