*** This class provides Binary Compatibility only, not Source Compatibility ***
Class PlatformConnectionFactoryConfiguration
java.lang.Object
com.sas.services.connection.ConnectionFactoryConfiguration
com.sas.services.connection.platform.PlatformConnectionFactoryConfiguration
- All Implemented Interfaces:
Cloneable
@SASScope("ALL")
@BinaryCompatibilityOnly
public final class PlatformConnectionFactoryConfiguration
extends ConnectionFactoryConfiguration
A connection factory configuration that describes a server or a pool of
servers to connect to using meta data in the BIP Information Service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis string can be used as a key or attribute name in maps or map-like data structures such as aSessionContextInterfaceto store and retrieve the privileged user name.static final StringThe session context key that will be used increateWorkspaceServerFactoryConfiguration()to look up the pool administrator name in the session context. -
Constructor Summary
ConstructorsConstructorDescriptionPlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer) Construct a connection factory configuration using a logical server object from the information service.PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, UserContextInterface privilegedUserContext, UserServiceInterface userService, boolean monitorEnabled) Construct a connection factory configuration using a logical server object from the information service.PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, String privilegedUser) Construct a connection factory configuration using a logical server object from the information service.PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, String privilegedUser, UserServiceInterface userService) Construct a connection factory configuration using a logical server object from the information service.PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, String privilegedUser, UserServiceInterface userService, boolean monitorEnabled) Deprecated.use PlatformConnectionFactoryConfiguration(LogicalServerInterface,String,UserServiceInterface)PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID) Construct a connection factory configuration using a repository object and ID from the user service.PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID, String privilegedUser) Construct a connection factory configuration using a repository object and ID from the user service.PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID, String privilegedUser, UserServiceInterface userService) Construct a connection factory configuration using a repository object and ID from the user service.PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID, String privilegedUser, UserServiceInterface userService, boolean monitorEnabled) Deprecated.PlatformConnectionFactoryConfiguration(RepositoryInterface,String,String,UserServiceInterface) -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(Object that) protected Stringprotected RepositoryInterfaceprotected Stringprotected Stringprotected RepositoryInterfaceGet the logical server object.StringGet the name of the privileged user.Get the context for the privileged user.protected UserContextInterfaceGet the repository.StringGet the repository ID.protected RepositoryInterfaceGet the discovery service.inthashCode()booleanDeprecated.StringtoString()Methods inherited from class com.sas.services.connection.ConnectionFactoryConfiguration
getKernel, getKernel, getKernel, getKernelFromDelegate, getLogicalServerName, isNoRedirect, kernelDestroyedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
PRIVILEGED_USER_NAME_KEY
public static final String PRIVILEGED_USER_NAME_KEYThis string can be used as a key or attribute name in maps or map-like data structures such as aSessionContextInterfaceto store and retrieve the privileged user name. Note that the privileged user name must be ajava.lang.String. This attribute name is identical toPROPERTYNAME_POOL_ADMIN.- See Also:
-
PROPERTYNAME_POOL_ADMIN
public static final String PROPERTYNAME_POOL_ADMINThe session context key that will be used increateWorkspaceServerFactoryConfiguration()to look up the pool administrator name in the session context. The name of a pool administrator should generally be provided whenever the value forPROPERTYNAME_FACTORY_REQ_CLIENT_POOLINGorPROPERTYNAME_FACTORY_PREF_CLIENT_POOLINGorPROPERTYNAME_FACTORY_REQ_POOLINGisTRUE. The value is expected to be ajava.lang.String. This attribute name is identical toPRIVILEGED_USER_NAME_KEY.- See Also:
-
-
Constructor Details
-
PlatformConnectionFactoryConfiguration
Construct a connection factory configuration using a logical server object from the information service. The connection to the repository must have been made under the credentials of a user who is authorized to read all the elements of the logical server definition.- Parameters:
logicalServer- an encapsulation of information about a server or group of servers in a metadata repository
-
PlatformConnectionFactoryConfiguration
Construct a connection factory configuration using a repository object and ID from the user service. The connection to the repository must have been made under the credentials of a user who is authorized to read all the elements of the logical server definition.The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer.- Parameters:
repository- a metadata repository that containg information about a server or group of serversrepositoryID- a string that uniquely identifies the server or group of servers in the repository
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, String privilegedUser) Construct a connection factory configuration using a logical server object from the information service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. The user service must be deployed and registered with the default discovery service, and code in sas.svc.connection.platform.jar must have permission to read the privileged user's context information.- Parameters:
logicalServer- an encapsulation of information about a server or group of servers in a metadata repositoryprivilegedUser- the name or key that identifies in the user service the user context of a user who is authorized to read all elements of the logical server definition. The connection factory can only look up the user context in a local services deployment. If services are deployed remotely, use the contructor withUserContextInterface.
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID, String privilegedUser) Construct a connection factory configuration using a repository object and ID from the user service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. The user service must be deployed and registered with the default discovery service, and code in sas.svc.connection.platform.jar must have permission to read the privileged user's context information.The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer.- Parameters:
repository- a metadata repository that containg information about a server or group of serversrepositoryID- a string that uniquely identifies the server or group of servers in the repositoryprivilegedUser- the name or key that identifies in the user service the user context of a user who is authorized to read all elements of the logical server definition. The connection factory can only look up the user context in a local services deployment. If services are deployed remotely, use the contructor withUserContextInterface.
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, String privilegedUser, UserServiceInterface userService) Construct a connection factory configuration using a logical server object from the information service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. The user service must be deployed and registered with the default discovery service, and code in sas.svc.connection.platform.jar must have permission to read the privileged user's context information.- Parameters:
logicalServer- an encapsulation of information about a server or group of servers in a metadata repositoryprivilegedUser- the name or key that identifies in the user service the user context of a user who is authorized to read all elements of the logical server definition. The connection factory can only look up the user context in a local services deployment. If services are deployed remotely, use the contructor withUserContextInterface.userService- the user service which will be used to resolve the privileged user name
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID, String privilegedUser, UserServiceInterface userService) Construct a connection factory configuration using a repository object and ID from the user service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. The user service must be deployed and registered with the default discovery service, and code in sas.svc.connection.platform.jar must have permission to read the privileged user's context information.The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer.- Parameters:
repository- a metadata repository that containg information about a server or group of serversrepositoryID- a string that uniquely identifies the server or group of servers in the repositoryprivilegedUser- the name or key that identifies in the user service the user context of a user who is authorized to read all elements of the logical server definition. The connection factory can only look up the user context in a local services deployment. If services are deployed remotely, use the contructor withUserContextInterface.userService- the user service which will be used to resolve the privileged user name
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, String privilegedUser, UserServiceInterface userService, boolean monitorEnabled) Deprecated.use PlatformConnectionFactoryConfiguration(LogicalServerInterface,String,UserServiceInterface)Construct a connection factory configuration using a logical server object from the information service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. The user service must be deployed and registered with the default discovery service, and code in sas.svc.connection.platform.jar must have permission to read the privileged user's context information.- Parameters:
logicalServer- an encapsulation of information about a server or group of servers in a metadata repositoryprivilegedUser- the name or key that identifies in the user service the user context of a user who is authorized to read all elements of the logical server definition. The connection factory can only look up the user context in a local services deployment. If services are deployed remotely, use the contructor withUserContextInterface.userService- the user service which will be used to resolve the privileged user namemonitorEnabled- ignored
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(LogicalServerInterface logicalServer, UserContextInterface privilegedUserContext, UserServiceInterface userService, boolean monitorEnabled) Construct a connection factory configuration using a logical server object from the information service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. Object created with this contructor will be considered equal to objects constructed with the privileged user's name instead of the user context.- Parameters:
logicalServer- an encapsulation of information about a server or group of servers in a metadata repositoryprivilegedUserContext- the user context of a user who is authorized to read all elements of the logical server definitionuserService- the user service which will be used to resolve the privileged user namemonitorEnabled- ignored
-
PlatformConnectionFactoryConfiguration
public PlatformConnectionFactoryConfiguration(RepositoryInterface repository, String repositoryID, String privilegedUser, UserServiceInterface userService, boolean monitorEnabled) Deprecated.PlatformConnectionFactoryConfiguration(RepositoryInterface,String,String,UserServiceInterface)Construct a connection factory configuration using a repository object and ID from the user service. The elements of the logical server object will be examined under the permission set of a privileged user. See the "Metadata Repository Security Issues" section of the package description forcom.sas.services.connection.platformfor more information. The user service must be deployed and registered with the default discovery service, and code in sas.svc.connection.platform.jar must have permission to read the privileged user's context information.The repositoryID should end with a type suffix. For example:
A5EIKN3F.B9000002/LogicalServer.- Parameters:
repository- a metadata repository that containg information about a server or group of serversrepositoryID- a string that uniquely identifies the server or group of servers in the repositoryprivilegedUser- the name or key that identifies in the user service the user context of a user who is authorized to read all elements of the logical server definition. The connection factory can only look up the user context in a local services deployment. If services are deployed remotely, use the contructor withUserContextInterface.userService- the user service which will be used to resolve the privileged user namemonitorEnabled- ignored
-
-
Method Details
-
getLogicalServer
Get the logical server object.- Returns:
- the logica server object
-
getRepository
Get the repository.- Returns:
- the repository
-
getRepositoryID
public String getRepositoryID()Get the repository ID.- Returns:
- the repository ID
-
getPrivilegedUser
public String getPrivilegedUser()Get the name of the privileged user.- Returns:
- the name of the privileged user
-
getPrivilegedUserContext
Get the context for the privileged user.- Returns:
- the context for the privileged user
-
getUserService
Get the discovery service.- Returns:
- the discovery service
-
isMonitorEnabled
public boolean isMonitorEnabled()Deprecated.Always returns false.- Returns:
- false
-
equals
public boolean equals(Object that) - Overrides:
equalsin classConnectionFactoryConfiguration
-
hashCode
public int hashCode()- Overrides:
hashCodein classConnectionFactoryConfiguration
-
toString
public String toString()- Overrides:
toStringin classObject
-
getCanonRepos
-
getCanonReposID
protected String getCanonReposID() -
getCanonReposURL
protected String getCanonReposURL() -
getCanonPrivUser
protected String getCanonPrivUser() -
getPrivUser
protected UserContextInterface getPrivUser() throws ServiceException, RemoteException, ConnectionFactoryException- Throws:
ServiceExceptionRemoteExceptionConnectionFactoryException
-
getTargetRepos
-
getFoundationRepos
-