org.alfresco.filesys.auth
Class PassthruServerFactory

java.lang.Object
  extended by org.alfresco.filesys.auth.PassthruServerFactory
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class PassthruServerFactory
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

A Factory for PassthruServers objects, allowing setting of the server list via local server, individual servers or domain name.


Field Summary
static int DefaultSessionTmo
           
static int MaxCheckInterval
           
static int MaxSessionTmo
           
static int MinCheckInterval
           
static int MinSessionTmo
           
 
Constructor Summary
PassthruServerFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 boolean isSingleton()
           
 void setDomain(java.lang.String domain)
          Sets the domain to authenticate against
 void setLocalServer(boolean localServer)
          Indicates whether the local server should be used as the authentication server
 void setNullDomainUseAnyServer(boolean nullDomain)
          Set the null domain to use any available server option
 void setOfflineCheckInterval(java.lang.Integer offlineCheckInterval)
          Sets the offline server check interval in seconds
 void setProtocolOrder(java.lang.String protoOrder)
          Set the protocol order for passthru connections
 void setServer(java.lang.String server)
          Sets the server(s) to authenticate against.
 void setTimeout(int timeout)
          Sets the timeout for opening a session to an authentication server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultSessionTmo

public static final int DefaultSessionTmo
See Also:
Constant Field Values

MinSessionTmo

public static final int MinSessionTmo
See Also:
Constant Field Values

MaxSessionTmo

public static final int MaxSessionTmo
See Also:
Constant Field Values

MinCheckInterval

public static final int MinCheckInterval
See Also:
Constant Field Values

MaxCheckInterval

public static final int MaxCheckInterval
See Also:
Constant Field Values
Constructor Detail

PassthruServerFactory

public PassthruServerFactory()
Method Detail

setTimeout

public void setTimeout(int timeout)
Sets the timeout for opening a session to an authentication server

Parameters:
timeout - a time period in milliseconds

setLocalServer

public void setLocalServer(boolean localServer)
Indicates whether the local server should be used as the authentication server

Parameters:
localServer - true if the local server should be used as the authentication server

setServer

public void setServer(java.lang.String server)
Sets the server(s) to authenticate against.

Parameters:
server - comma-delimited list of server names

setDomain

public void setDomain(java.lang.String domain)
Sets the domain to authenticate against

Parameters:
domain - a domain name

setOfflineCheckInterval

public void setOfflineCheckInterval(java.lang.Integer offlineCheckInterval)
Sets the offline server check interval in seconds

Parameters:
offlineCheckInterval - a time interval in seconds

setNullDomainUseAnyServer

public final void setNullDomainUseAnyServer(boolean nullDomain)
Set the null domain to use any available server option

Parameters:
nullDomain - boolean

setProtocolOrder

public void setProtocolOrder(java.lang.String protoOrder)
Set the protocol order for passthru connections

Parameters:
protoOrder - a comma-delimited list containing one or more of "NetBIOS" and "TCPIP" in any order

afterPropertiesSet

public void afterPropertiesSet()
                        throws org.alfresco.jlan.server.config.InvalidConfigurationException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
org.alfresco.jlan.server.config.InvalidConfigurationException

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception


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