com.sas.edir
Class PortalPool

java.lang.Object
  |
  +--com.sas.edir.PortalPool

public class PortalPool
extends java.lang.Object

A portal pool encapsulates the data required to have the WorkspacePool return a workspace (except the logical name). In the portal workings, this data won't change from one invocation to another, and this makes it much easier for the portal to make this service available to the StoredProcessEngine.

Version:
1.0
Author:
SAS

Constructor Summary
PortalPool(java.lang.String context, java.util.Map credentials)
          Construct a Portal pool.
PortalPool(java.lang.String context, java.util.Map credentials, java.io.PrintWriter log)
          Construct a Portal pool.
 
Method Summary
 java.util.Map getCredentials()
          Get the credentials
 java.util.Hashtable getCredentialsAsHashtable()
          Get the credentials as a Hashtable
 java.io.PrintWriter getLog()
          Get the logging stream
 java.lang.String getSearchContext()
          Get the context
 void setCredentials(java.util.Map credentials)
          Set the credentials
 void setLog(java.io.PrintWriter log)
          Set the logging stream
 void setSearchContext(java.lang.String context)
          Set the context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalPool

public PortalPool(java.lang.String context,
                  java.util.Map credentials)
Construct a Portal pool.

Parameters:
context - The directory location to start searches
credentials - A hashtable containing the LDAP contact info

PortalPool

public PortalPool(java.lang.String context,
                  java.util.Map credentials,
                  java.io.PrintWriter log)
Construct a Portal pool.

Parameters:
context - The directory location to start searches
credentials - A hashtable containing the LDAP contact info
log - Non-null to enable logging.
Method Detail

getSearchContext

public java.lang.String getSearchContext()
Get the context

Returns:
The search context to look for pools

setSearchContext

public void setSearchContext(java.lang.String context)
Set the context

Parameters:
context - The location in the directory to base searches for pools

getCredentials

public java.util.Map getCredentials()
Get the credentials

Returns:
The LDAP access information

getCredentialsAsHashtable

public java.util.Hashtable getCredentialsAsHashtable()
Get the credentials as a Hashtable

Returns:
The LDAP access information

setCredentials

public void setCredentials(java.util.Map credentials)
Set the credentials

Parameters:
credentials - The LDAP access information

getLog

public java.io.PrintWriter getLog()
Get the logging stream

Returns:
The log Writer

setLog

public void setLog(java.io.PrintWriter log)
Set the logging stream
Parameters:
log - The new logging stream