updated core objects from latest schema (dbRef)
[vamsas.git] / src / org / vamsas / client / IClientFactory.java
1 /*
2  * Created on 13-Sep-2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */
7 package org.vamsas.client;
8
9 /**
10  * Defines methods for instantiating Vorba client application agents
11  * @author jimp
12  *
13  * (it's VORBA, not CORBA!)
14  */
15
16 public interface IClientFactory {
17
18      /**
19       * Create a new Vorba Session
20       * @param applicationHandle is the application's VAMSAS handle string
21       */
22         IClient getIClient(ClientHandle applicationHandle);
23         /**
24          * returns new Vorba for a given session.
25          * @param applicationHandle
26          * @param sessionUrn locates the session that the client should attach to
27          * @return
28          */
29        IClient getIClient(ClientHandle applicationHandle, String sessionUrn);
30        /**
31         * returns new vorba for a  given session acting as a particular identity
32         * @param applicationHandle
33         * @param userId
34         * @param sessionUrn
35         * @return
36         */
37        IClient getIClient(ClientHandle applicationHandle, UserHandle userId, String sessionUrn);
38        /**
39         * New session for application and specific user
40         * @param applicationHandle
41         * @param userId
42         * @return
43         */
44        IClient getIClient(ClientHandle applicationHandle, UserHandle userId);
45        
46
47 }