comparison rep/Session.java @ 362:f0bd158dace6

*** empty log message ***
author kono
date Sun, 19 Oct 2008 23:05:59 +0900
parents 65c6d12a5835
children e16b6326fdac
comparison
equal deleted inserted replaced
361:65c6d12a5835 362:f0bd158dace6
39 } 39 }
40 } 40 }
41 41
42 public void addForwarder(Forwarder forwarder) { 42 public void addForwarder(Forwarder forwarder) {
43 // add a forwarder and connect this to the session 43 // add a forwarder and connect this to the session
44 forwarder.setSID(sessionID);
44 forwarder.setNext(last.getNextForwarder()); 45 forwarder.setNext(last.getNextForwarder());
45 last.setNext(forwarder); 46 last.setNext(forwarder);
46 last = forwarder; 47 last = forwarder;
47 put(forwarder.eid,forwarder); 48 put(forwarder.eid,forwarder);
48 isOwner = true; 49 isOwner = true;
50 } 51 }
51 52
52 public void addEditor(Editor editor) { 53 public void addEditor(Editor editor) {
53 // add a not-connected editor in a sassion 54 // add a not-connected editor in a sassion
54 // the editor is outside of this manager 55 // the editor is outside of this manager
56 editor.setSID(sessionID);
55 put(editor.eid,editor); 57 put(editor.eid,editor);
56 } 58 }
57 59
58 public Collection<EditorPlus> getEditorList() { 60 public Collection<EditorPlus> getEditorList() {
59 return values(); 61 return values();
173 sessionName = string; 175 sessionName = string;
174 } 176 }
175 177
176 178
177 public void setFirstForwarder(Forwarder f) { 179 public void setFirstForwarder(Forwarder f) {
180 f.setSID(sessionID);
178 put(f.eid,f); 181 put(f.eid,f);
179 firstForwarder = last = f; 182 firstForwarder = last = f;
180 } 183 }
181 184
182 185