mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
89958: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 89872: Merged V4.1-BUG-FIX (4.1.10) to V4.2-BUG-FIX (4.2.4) 89708: MNT-12290: Merged PATCHES/V3.4.14 to V4.1-BUG-FIX 88898 : MNT-12291 : CLONE - disconnectClientSessions assumptions don't work on Terminal Servers Added a couple of new configuration values for the CIFS server. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94649 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
*/
|
||||
package org.alfresco.filesys.config;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.jlan.server.auth.ICifsAuthenticator;
|
||||
import org.alfresco.jlan.smb.server.VirtualCircuitList;
|
||||
@@ -97,6 +101,59 @@ public class CIFSConfigBean
|
||||
|
||||
private int m_maxVC = VirtualCircuitList.DefMaxCircuits;
|
||||
|
||||
/** The terminal server list address. */
|
||||
private List<String> terminalServerList;
|
||||
|
||||
/** The load balancer list address. */
|
||||
private List<String> loadBalancerList;
|
||||
|
||||
public CIFSConfigBean(String terminalServerList, String loadBalancerList)
|
||||
{
|
||||
this.terminalServerList = convertToIpAddressList(terminalServerList);
|
||||
this.loadBalancerList = convertToIpAddressList(loadBalancerList);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert string of addresses to the address list.
|
||||
*
|
||||
* @param addressist
|
||||
*/
|
||||
public List<String> convertToIpAddressList(String addressist)
|
||||
{
|
||||
List<String> listIpAddress = null;
|
||||
if (addressist != null && !addressist.isEmpty())
|
||||
{
|
||||
StringTokenizer tkn = new StringTokenizer(addressist, ", \t\n\r\f");
|
||||
listIpAddress = new ArrayList<String>(tkn.countTokens());
|
||||
while (tkn.hasMoreTokens())
|
||||
{
|
||||
String instance = tkn.nextToken();
|
||||
listIpAddress.add(instance);
|
||||
}
|
||||
}
|
||||
return listIpAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the terminal server list address.
|
||||
*
|
||||
* @return the terminal server list address
|
||||
*/
|
||||
public List<String> getTerminalServerList()
|
||||
{
|
||||
return this.terminalServerList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the load balancer list address.
|
||||
*
|
||||
* @return the load balancer list address
|
||||
*/
|
||||
public List<String> getLoadBalancerList()
|
||||
{
|
||||
return this.loadBalancerList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is server enabled.
|
||||
*
|
||||
|
Reference in New Issue
Block a user