typo fix.
[vamsas.git] / src / org / vamsas / client / VorbaIdFactory.java
1 /*
2  * Created on 12-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  * A VorbaIdFactory is constructed by an IClient instance.
11  * It guarantees that any new VorbaId objects are unique 
12  * within the VAMSAS session.
13  * 
14  * @author jimp
15  */
16 public abstract class VorbaIdFactory implements IVorbaIdFactory {
17   /**
18    * construct a new id appropriate for this client in the vamsas session.
19    * 
20    * @return valid VorbaId for session, or null if VorbaIdFactory not configured
21    *         correctly.
22    */
23   public abstract VorbaId makeVorbaId();
24   /**
25    * TODO: decide if these are needed.
26    * 
27    * @param sessionHandle
28    */
29   protected abstract void setSession(SessionHandle sessionhandle);
30
31   public abstract SessionHandle getSessionHandle();
32
33   protected abstract void setClient(ClientHandle appHandle);
34
35   public abstract ClientHandle getClientHandle();
36
37   protected abstract void setUser(UserHandle userHandle);
38
39   public abstract UserHandle getUserHandle();
40 }