public interface SecuritySession extends EJBObject {

     /**
      * Generic create method
      */
     public PrimaryKey createEntity(DataObject data)
          throws RemoteException;

     /**
      * Generic set method
      */
     public Boolean setEntity(DataObject data)
          throws RemoteException;

     /**
      * Generic delete method
      */
     public void deleteEntity(Long moduleID, PrimaryKey pKey)
          throws RemoteException;

     /**
      * Generic add link method
      */
     public void addEntityLink(DataObject data)
          throws RemoteException;

     /**
      * Generic delete link method
      */
     public void deleteEntityLink(DataObject data)
          throws RemoteException;

     /**
      * Generic get method
      */
     public Hashtable getEntity(PageDescriptor page)
          throws RemoteException;

     /**
      * Checks a client's logon information against the
      * valid users, and returns the client's security
      * information if they are validated.
      *
      * @param userID              The user identification number.
      * @param password       The users password.
      */
     public Object[] logon(String userID, String password, ClientDescriptor
client)
          throws RemoteException;

     /**
      * Refreshes all of the cached security details for this user.
      */
     public void refresh()
          throws RemoteException;

     /**
      * Returns the relevant module permissions for the specified user.
      *
      * @param userID              The user identification number.
      */
     public Hashtable getModulePermissions()
          throws RemoteException;


     /**
      * Returns the Negative Lookup permissions for
      * the specified user.
      */
     public Hashtable getNegativeLookupPermissions()
          throws RemoteException;

     /**
      * Returns the Read-Only Lookup permissions for
      * the specified user.
      */
     public Hashtable getReadOnlyLookupPermissions()
          throws RemoteException;

     /**
      * Returns the Viewable Lookup permissions for
      * the specified user.
      */
     public Hashtable getViewableLookupPermissions()
          throws RemoteException;

     /**
      * Returns the Full Access Lookup permissions for
      * the specified user.
      */
     public Hashtable getFullLookupPermissions()
          throws RemoteException;

     /**
      * Returns the BeanInfo for the entire application.
      */
     public Hashtable getBeanInfo()
          throws RemoteException;

     /**
      * Returns the ClientDescriptor for the current user
      */
    public ClientDescriptor getClientDescriptor()
          throws RemoteException;

     /**
      * Returns the permission for a specific module for
      * a user.
      *
      * @param userID         The user identification number.
      * @param moduleID  The module identification number.
      */
     public Hashtable getModulePermission(String userID, Long moduleID)
          throws RemoteException;


     /**
      * Returns the User object referring to the current User
      *
      */
     public User getCurrentUser()
         throws RemoteException;

     /**
      * Returns the screen group for the current user.
      *
      * @param userID         The user identification number.
      */
     public ScreenGroup getScreenGroup()
         throws RemoteException;

     public boolean promptForMail()
         throws RemoteException;

}


Here's the remote Interface for the Bean that seems to be causing the problem.
Most of the Return Types/parameters are other classes and I also believe that it
is possible to pass Hashtables as a parameter/return type. (info. from JavaSoft
site)


Hi there,


Thanks for the quick response.

Is it not possible to pass other Session Beans as parameters to a create method
of a Session?
For example, I want to pass a Security Session bean with security details to
another session (say Data Dictionary) to be created with certain security
restrictions on it.



Regards,

Lachlan




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to