com.ibm.epic.ams.GSO
Class GSOBean

java.lang.Object
  |
  +--com.ibm.epic.ams.GSO.GSOBean

public class GSOBean
extends java.lang.Object
implements javax.ejb.SessionBean

This is a Session Bean Class


Field Summary
 boolean AMSDebug
           
static java.lang.String copyrightNotice
          Copyright statement
 com.ibm.epic.LogTrace.EpicLog exceptionLog
           
 java.lang.String[] gsoAttrs
           
 com.ibm.epic.trace.client.EpicTraceClient traceClient
           
 
Constructor Summary
GSOBean()
           
 
Method Summary
 void addGSOTarget(java.lang.String uid, java.lang.String target, java.lang.String targetUid, java.lang.String targetPwd)
          This method assigns a GSO resource to a user in PD.
 void deleteGSOTarget(java.lang.String uid, java.lang.String target)
          Deletes only the GSO resource credential information for the given user and target resource.
 void ejbActivate()
          ejbActivate method comment
 void ejbCreate()
          ejbCreate method comment
 void ejbPassivate()
          ejbPassivate method comment
 void ejbRemove()
          ejbRemove method comment
 java.lang.String[] getGSOCredentials(java.lang.String userID, java.lang.String target)
          Returns the a array containing the userID and Password for the specified target resource and user.
 javax.ejb.SessionContext getSessionContext()
          getSessionContext method comment
 void setSessionContext(javax.ejb.SessionContext ctx)
          setSessionContext method comment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AMSDebug

public boolean AMSDebug

gsoAttrs

public java.lang.String[] gsoAttrs

copyrightNotice

public static final java.lang.String copyrightNotice
Copyright statement

traceClient

public com.ibm.epic.trace.client.EpicTraceClient traceClient

exceptionLog

public com.ibm.epic.LogTrace.EpicLog exceptionLog
Constructor Detail

GSOBean

public GSOBean()
Method Detail

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
ejbActivate method comment
Specified by:
ejbActivate in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException - The exception description.

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
ejbCreate method comment
Throws:
javax.ejb.CreateException - The exception description.
java.rmi.RemoteException - The exception description.

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
ejbPassivate method comment
Specified by:
ejbPassivate in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException - The exception description.

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException
ejbRemove method comment
Specified by:
ejbRemove in interface javax.ejb.SessionBean
Throws:
java.rmi.RemoteException - The exception description.

getGSOCredentials

public java.lang.String[] getGSOCredentials(java.lang.String userID,
                                            java.lang.String target)
                                     throws java.rmi.RemoteException,
                                            javax.ejb.FinderException,
                                            com.ibm.epic.ams.EpicAMSException
Returns the a array containing the userID and Password for the specified target resource and user. Creation date: (1/27/01 10:38:37 AM)
Parameters:
userID - java.lang.String - User you want the GSO credentials for
target - java.lang.String - GSO Target Resource you want credentials for
Returns:
java.lang.String[] - UserID and password of target for specified user. array[1]=userID, array[2]=password
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
com.ibm.epic.ams.EpicAMSException - The exception description.

getSessionContext

public javax.ejb.SessionContext getSessionContext()
getSessionContext method comment
Returns:
javax.ejb.SessionContext

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws java.rmi.RemoteException
setSessionContext method comment
Specified by:
setSessionContext in interface javax.ejb.SessionBean
Parameters:
ctx - javax.ejb.SessionContext
Throws:
java.rmi.RemoteException - The exception description.

addGSOTarget

public void addGSOTarget(java.lang.String uid,
                         java.lang.String target,
                         java.lang.String targetUid,
                         java.lang.String targetPwd)
                  throws com.ibm.epic.ams.EpicAMSException
This method assigns a GSO resource to a user in PD. Both the user and the resource must already exist. Otherwise, an EpicAMSException is thrown. Creation date: (3/2/01 9:58:31 AM)
Parameters:
uid - String - UserID of user that will have the GSO resource target assigned
target - String - Name of GSO Resource target
targetUid - String - UserID that will be used to access the GSO Resource
targetPassword - String - Password that will be used to access the GSO Resource
Throws:
com.ibm.epic.ams.EpicAMSException - If any error occurs while adding the GSO Resource to the user

deleteGSOTarget

public void deleteGSOTarget(java.lang.String uid,
                            java.lang.String target)
                     throws com.ibm.epic.ams.EpicAMSException
Deletes only the GSO resource credential information for the given user and target resource. Creation date: (3/2/01 11:10:40 AM)
Parameters:
uid - java.lang.String - User ID of user from whom the GSO resource will be removed
target - java.lang.String - GSO resource being removed
Throws:
com.ibm.epic.ams.EpicAMSException - If removal of GSO Resource credential fails.