mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
34321: Make CIFS virtual circuit per session limit configurable, return correct status code when virtual circuit limit is reached. Required by Terminal Server clients as they can use a single session for all connections. ALF-13156 34322: Services part of fix for ALF-13057 Nodes marked with rma:ghosted aspect (or other configurable aspects/types) should not be renditioned. 34323: Added configuration property for CIFS virtual circuits per session, required by Terminal Server clients. ALF-13156. 34332: Fix for ALF-8405 34336: Merged BRANCHES/V4.0 to BRANCHES/DEV/V4.0-BUG-FIX: 34335: Fixing a failing test as part of ALF-13057 34338: NodeDAO: re-parent "lost & found" orphan child nodes (see ALF-12358 & ALF-13066 / SYS-301) - test fix (follow-on to r34279) 34341: NodeDAO: re-parent "lost & found" orphan child nodes (see ALF-12358 & ALF-13066 / SYS-301) - ano test fix (once more with feeling) 34351: Merged V4.0 to V4.0-BUG-FIX 34335: (RECORD ONLY) Fixing a failing test as part of ALF-13057 34350: Merged V3.4 to V4.0 34327: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD Relates to ALF-10976 and ALF-10412 set of changes - TransformerOptions.sourceNodeRef now populated - Set average transformer time via global properties - TransformerDebug of active transformers added 34331: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD Relates to ALF-10976 and ALF-10412 set of changes - Fix test failures 34346: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD Relates to ALF-10976 and ALF-10412 set of changes - sourceNodeRef was not available to the first child transformer of a ComplexContentTransformer 34358: Merged V4.0 to V4.0-BUG-FIX (RECORD ONLY) 34324: Merged BRANCHES/DEV/V4.0-BUG-FIX to BRANCHES/V4.0: 34322: Services part of fix for ALF-13057 Nodes marked with rma:ghosted aspect (or other configurable aspects/types) should not be renditioned. 34360: Merged V3.4-BUG-FIX to V4.0-BUG-FIX (RECORD ONLY) 34349: Merged V3.4 to V3.4-BUG-FIX 34327: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD Relates to ALF-10976 and ALF-10412 set of changes - TransformerOptions.sourceNodeRef now populated - Set average transformer time via global properties - TransformerDebug of active transformers added 34331: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD Relates to ALF-10976 and ALF-10412 set of changes - Fix test failures 34346: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD Relates to ALF-10976 and ALF-10412 set of changes - sourceNodeRef was not available to the first child transformer of a ComplexContentTransformer 34348: Merged PATCHES/V3.4.7 to V3.4 34347: ALF-12949: Merged V4.0-BUG-FIX to PATCHES/V3.4.7 33959: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX 33950: Fix for ALF-12787: - Surf Memory usage optimizations and improvements to ModelObject and derived classes. - Reduced avg memory usage for a ModelObject in the Surf persister cache from 4.0K to 1.5K. - Related refactoring to support removal of in-memory XML DOM previously used to maintain ModelObject state. Now XML DOM only created as needed for set() operations and thrown away. - Improvements to Surf Persister cache strategy to support MRU style concurrent cache, now uses a LinkedConcurrentHashMap to provide a concurrent cache that also has a configurable maximum capacity - Added various improved spring config for persister caches and default sizes. Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX 33956: Latest SpringSurf libs: Fixed issue with overly aggressive caching of missing page View objects. 34108: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX 34107: Added missing jar lib to wcmquickstart and webeditor dependencies 34363: Merged V4.0 to V4.0-BUG-FIX 34362: Merged V3.4 to V4.0 (RECORD ONLY) 34282: ALF-13059: Windows 7 specific: It's impossible to add documents to DWS - Fix by Alex Malinovsky 34348: Merged PATCHES/V3.4.7 to V3.4 34347: ALF-12949: Merged V4.0-BUG-FIX to PATCHES/V3.4.7 33959: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX 33950: Fix for ALF-12787: - Surf Memory usage optimizations and improvements to ModelObject and derived classes. - Reduced avg memory usage for a ModelObject in the Surf persister cache from 4.0K to 1.5K. - Related refactoring to support removal of in-memory XML DOM previously used to maintain ModelObject state. Now XML DOM only created as needed for set() operations and thrown away. - Improvements to Surf Persister cache strategy to support MRU style concurrent cache, now uses a LinkedConcurrentHashMap to provide a concurrent cache that also has a configurable maximum capacity - Added various improved spring config for persister caches and default sizes. Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX 33956: Latest SpringSurf libs: Fixed issue with overly aggressive caching of missing page View objects. 34108: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX 34107: Added missing jar lib to wcmquickstart and webeditor dependencies git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
535 lines
12 KiB
Java
535 lines
12 KiB
Java
/*
|
|
* Copyright (C) 2005-2010 Alfresco Software Limited.
|
|
*
|
|
* This file is part of Alfresco
|
|
*
|
|
* Alfresco is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Alfresco 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 Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package org.alfresco.filesys.config;
|
|
|
|
import org.alfresco.jlan.server.auth.ICifsAuthenticator;
|
|
import org.alfresco.jlan.smb.server.VirtualCircuitList;
|
|
|
|
// TODO: Auto-generated Javadoc
|
|
/**
|
|
* The Class CIFSConfigBean.
|
|
*
|
|
* @author dward
|
|
*/
|
|
public class CIFSConfigBean
|
|
{
|
|
|
|
/** The server enabled. */
|
|
private boolean serverEnabled;
|
|
|
|
/** The disable native code. */
|
|
private boolean disableNativeCode;
|
|
|
|
/** The broadcast addess. */
|
|
private String broadcastAddress;
|
|
|
|
/** The server name. */
|
|
private String serverName;
|
|
|
|
/** The domain name. */
|
|
private String domainName;
|
|
|
|
/** The server comment. */
|
|
private String serverComment;
|
|
|
|
/** The bind to adapter. */
|
|
private String bindToAdapter;
|
|
|
|
/** The bind to address. */
|
|
private String bindToAddress;
|
|
|
|
/** The authenticator. */
|
|
private ICifsAuthenticator authenticator;
|
|
|
|
/** The host accouncer enabled. */
|
|
private boolean hostAccouncerEnabled;
|
|
|
|
/** The host accounce interval. */
|
|
private Integer hostAccounceInterval;
|
|
|
|
/** The net biossmb. */
|
|
private NetBIOSSMBConfigBean netBIOSSMB;
|
|
|
|
/** The tcpip smb. */
|
|
private TcpipSMBConfigBean tcpipSMB;
|
|
|
|
/** The win32 net bios. */
|
|
private Win32NetBIOSConfigBean win32NetBIOS;
|
|
|
|
/** The win32 host announcer enabled. */
|
|
private boolean win32HostAnnouncerEnabled;
|
|
|
|
/** The win32 host announce interval. */
|
|
private Integer win32HostAnnounceInterval;
|
|
|
|
/** The WINS config. */
|
|
private WINSConfigBean winsConfig;
|
|
|
|
/** The session debug flags. */
|
|
private String sessionDebugFlags;
|
|
|
|
/** The disable nio. */
|
|
private boolean disableNIO;
|
|
|
|
/** The session timeout. */
|
|
private Integer sessionTimeout;
|
|
|
|
// Maximum virtual circuits per session
|
|
|
|
private int m_maxVC = VirtualCircuitList.DefMaxCircuits;
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* Checks if is disable native code.
|
|
*
|
|
* @return true, if is disable native code
|
|
*/
|
|
public boolean getDisableNativeCode()
|
|
{
|
|
return disableNativeCode;
|
|
}
|
|
|
|
/**
|
|
* Sets the disable native code.
|
|
*
|
|
* @param disableNativeCode
|
|
* the new disable native code
|
|
*/
|
|
public void setDisableNativeCode(boolean disableNativeCode)
|
|
{
|
|
this.disableNativeCode = disableNativeCode;
|
|
}
|
|
|
|
/**
|
|
* Gets the broadcast address.
|
|
*
|
|
* @return the broadcast address
|
|
*/
|
|
public String getBroadcastAddress()
|
|
{
|
|
return broadcastAddress;
|
|
}
|
|
|
|
/**
|
|
* Sets the broadcast address.
|
|
*
|
|
* @param broadcastAddress
|
|
* the new broadcast address
|
|
*/
|
|
public void setBroadcastAddress(String broadcastAddress)
|
|
{
|
|
this.broadcastAddress = broadcastAddress;
|
|
}
|
|
|
|
/**
|
|
* Gets the server name.
|
|
*
|
|
* @return the server name
|
|
*/
|
|
public String getServerName()
|
|
{
|
|
return serverName;
|
|
}
|
|
|
|
/**
|
|
* Sets the server name.
|
|
*
|
|
* @param serverName
|
|
* the new server name
|
|
*/
|
|
public void setServerName(String serverName)
|
|
{
|
|
this.serverName = serverName;
|
|
}
|
|
|
|
/**
|
|
* Gets the domain name.
|
|
*
|
|
* @return the domain name
|
|
*/
|
|
public String getDomainName()
|
|
{
|
|
return domainName;
|
|
}
|
|
|
|
/**
|
|
* Sets the domain name.
|
|
*
|
|
* @param domainName
|
|
* the new domain name
|
|
*/
|
|
public void setDomainName(String domainName)
|
|
{
|
|
this.domainName = domainName;
|
|
}
|
|
|
|
/**
|
|
* Gets the server comment.
|
|
*
|
|
* @return the server comment
|
|
*/
|
|
public String getServerComment()
|
|
{
|
|
return serverComment;
|
|
}
|
|
|
|
/**
|
|
* Sets the server comment.
|
|
*
|
|
* @param serverComment
|
|
* the new server comment
|
|
*/
|
|
public void setServerComment(String serverComment)
|
|
{
|
|
this.serverComment = serverComment;
|
|
}
|
|
|
|
/**
|
|
* Gets the bind to adapter.
|
|
*
|
|
* @return the bind to adapter
|
|
*/
|
|
public String getBindToAdapter()
|
|
{
|
|
return bindToAdapter;
|
|
}
|
|
|
|
/**
|
|
* Sets the bind to adapter.
|
|
*
|
|
* @param bindToAdapter
|
|
* the new bind to adapter
|
|
*/
|
|
public void setBindToAdapter(String bindToAdapter)
|
|
{
|
|
this.bindToAdapter = bindToAdapter;
|
|
}
|
|
|
|
/**
|
|
* Gets the bind to address.
|
|
*
|
|
* @return the bind to address
|
|
*/
|
|
public String getBindToAddress()
|
|
{
|
|
return bindToAddress;
|
|
}
|
|
|
|
/**
|
|
* Sets the bind to address.
|
|
*
|
|
* @param bindToAddress
|
|
* the new bind to address
|
|
*/
|
|
public void setBindToAddress(String bindToAddress)
|
|
{
|
|
this.bindToAddress = bindToAddress;
|
|
}
|
|
|
|
/**
|
|
* Gets the authenticator.
|
|
*
|
|
* @return the authenticator
|
|
*/
|
|
public ICifsAuthenticator getAuthenticator()
|
|
{
|
|
return authenticator;
|
|
}
|
|
|
|
/**
|
|
* Sets the authenticator.
|
|
*
|
|
* @param authenticator
|
|
* the new authenticator
|
|
*/
|
|
public void setAuthenticator(ICifsAuthenticator authenticator)
|
|
{
|
|
this.authenticator = authenticator;
|
|
}
|
|
|
|
/**
|
|
* Checks if is host accouncer enabled.
|
|
*
|
|
* @return true, if is host accouncer enabled
|
|
*/
|
|
public boolean getHostAccouncerEnabled()
|
|
{
|
|
return hostAccouncerEnabled;
|
|
}
|
|
|
|
/**
|
|
* Sets the host accouncer enabled.
|
|
*
|
|
* @param hostAccouncerEnabled
|
|
* the new host accouncer enabled
|
|
*/
|
|
public void setHostAccouncerEnabled(boolean hostAccouncerEnabled)
|
|
{
|
|
this.hostAccouncerEnabled = hostAccouncerEnabled;
|
|
}
|
|
|
|
/**
|
|
* Gets the host accounce interval.
|
|
*
|
|
* @return the host accounce interval
|
|
*/
|
|
public Integer getHostAccounceInterval()
|
|
{
|
|
return hostAccounceInterval;
|
|
}
|
|
|
|
/**
|
|
* Sets the host accounce interval.
|
|
*
|
|
* @param hostAccounceInterval
|
|
* the new host accounce interval
|
|
*/
|
|
public void setHostAccounceInterval(Integer hostAccounceInterval)
|
|
{
|
|
this.hostAccounceInterval = hostAccounceInterval;
|
|
}
|
|
|
|
/**
|
|
* Gets the net biossmb.
|
|
*
|
|
* @return the net biossmb
|
|
*/
|
|
public NetBIOSSMBConfigBean getNetBIOSSMB()
|
|
{
|
|
return netBIOSSMB;
|
|
}
|
|
|
|
/**
|
|
* Sets the net biossmb.
|
|
*
|
|
* @param netBIOSSMB
|
|
* the new net biossmb
|
|
*/
|
|
public void setNetBIOSSMB(NetBIOSSMBConfigBean netBIOSSMB)
|
|
{
|
|
this.netBIOSSMB = netBIOSSMB;
|
|
}
|
|
|
|
/**
|
|
* Gets the tcpip smb.
|
|
*
|
|
* @return the tcpip smb
|
|
*/
|
|
public TcpipSMBConfigBean getTcpipSMB()
|
|
{
|
|
return tcpipSMB;
|
|
}
|
|
|
|
/**
|
|
* Return the maxmimum virtual circuits per session
|
|
*
|
|
* @return int
|
|
*/
|
|
public int getMaximumVirtualCircuits() {
|
|
return m_maxVC;
|
|
}
|
|
|
|
/**
|
|
* Sets the tcpip smb.
|
|
*
|
|
* @param tcpipSMB
|
|
* the new tcpip smb
|
|
*/
|
|
public void setTcpipSMB(TcpipSMBConfigBean tcpipSMB)
|
|
{
|
|
this.tcpipSMB = tcpipSMB;
|
|
}
|
|
|
|
/**
|
|
* Gets the win32 net bios.
|
|
*
|
|
* @return the win32 net bios
|
|
*/
|
|
public Win32NetBIOSConfigBean getWin32NetBIOS()
|
|
{
|
|
return win32NetBIOS;
|
|
}
|
|
|
|
/**
|
|
* Sets the win32 net bios.
|
|
*
|
|
* @param win32NetBIOS
|
|
* the new win32 net bios
|
|
*/
|
|
public void setWin32NetBIOS(Win32NetBIOSConfigBean win32NetBIOS)
|
|
{
|
|
this.win32NetBIOS = win32NetBIOS;
|
|
}
|
|
|
|
/**
|
|
* Checks if is win32 host announcer enabled.
|
|
*
|
|
* @return true, if is win32 host announcer enabled
|
|
*/
|
|
public boolean getWin32HostAnnouncerEnabled()
|
|
{
|
|
return win32HostAnnouncerEnabled;
|
|
}
|
|
|
|
/**
|
|
* Sets the win32 host announcer enabled.
|
|
*
|
|
* @param win32HostAnnouncerEnabled
|
|
* the new win32 host announcer enabled
|
|
*/
|
|
public void setWin32HostAnnouncerEnabled(boolean win32HostAnnouncerEnabled)
|
|
{
|
|
this.win32HostAnnouncerEnabled = win32HostAnnouncerEnabled;
|
|
}
|
|
|
|
/**
|
|
* Gets the win32 host announce interval.
|
|
*
|
|
* @return the win32 host announce interval
|
|
*/
|
|
public Integer getWin32HostAnnounceInterval()
|
|
{
|
|
return win32HostAnnounceInterval;
|
|
}
|
|
|
|
/**
|
|
* Sets the win32 host announce interval.
|
|
*
|
|
* @param win32HostAnnounceInterval
|
|
* the new win32 host announce interval
|
|
*/
|
|
public void setWin32HostAnnounceInterval(Integer win32HostAnnounceInterval)
|
|
{
|
|
this.win32HostAnnounceInterval = win32HostAnnounceInterval;
|
|
}
|
|
|
|
/**
|
|
* Gets the wINS config.
|
|
*
|
|
* @return the wINS config
|
|
*/
|
|
public WINSConfigBean getWINSConfig()
|
|
{
|
|
return winsConfig;
|
|
}
|
|
|
|
/**
|
|
* Sets the wINS config.
|
|
*
|
|
* @param config
|
|
* the new wINS config
|
|
*/
|
|
public void setWINSConfig(WINSConfigBean config)
|
|
{
|
|
winsConfig = config;
|
|
}
|
|
|
|
/**
|
|
* Gets the session debug flags.
|
|
*
|
|
* @return the session debug flags
|
|
*/
|
|
public String getSessionDebugFlags()
|
|
{
|
|
return sessionDebugFlags;
|
|
}
|
|
|
|
/**
|
|
* Sets the session debug flags.
|
|
*
|
|
* @param sessionDebugFlags
|
|
* the new session debug flags
|
|
*/
|
|
public void setSessionDebugFlags(String sessionDebugFlags)
|
|
{
|
|
this.sessionDebugFlags = sessionDebugFlags;
|
|
}
|
|
|
|
/**
|
|
* Checks if is disable nio.
|
|
*
|
|
* @return true, if is disable nio
|
|
*/
|
|
public boolean getDisableNIO()
|
|
{
|
|
return disableNIO;
|
|
}
|
|
|
|
/**
|
|
* Sets the disable nio.
|
|
*
|
|
* @param disableNIO
|
|
* the new disable nio
|
|
*/
|
|
public void setDisableNIO(boolean disableNIO)
|
|
{
|
|
this.disableNIO = disableNIO;
|
|
}
|
|
|
|
/**
|
|
* Gets the session timeout.
|
|
*
|
|
* @return the session timeout
|
|
*/
|
|
public Integer getSessionTimeout()
|
|
{
|
|
return sessionTimeout;
|
|
}
|
|
|
|
/**
|
|
* Sets the session timeout.
|
|
*
|
|
* @param sessionTimeout
|
|
* the new session timeout
|
|
*/
|
|
public void setSessionTimeout(Integer sessionTimeout)
|
|
{
|
|
this.sessionTimeout = sessionTimeout;
|
|
}
|
|
|
|
/**
|
|
* Set the maximum virtual circuits per session
|
|
*
|
|
* @param maxVC int
|
|
*/
|
|
public void setMaximumVirtualCircuits( int maxVC) {
|
|
m_maxVC = maxVC;
|
|
}
|
|
}
|