1 53 54 106 107 package com.Yasna.forum.util.admin; 108 109 import java.io.*; 110 import java.util.*; 111 import com.Yasna.forum.*; 112 import com.Yasna.forum.util.tree.*; 113 114 118 public class AdminBean implements Serializable { 119 120 private Authorization authToken; 121 private Hashtable trees; 122 123 public AdminBean() { 124 trees = new Hashtable(); 125 } 126 127 public Authorization getAuthToken() { 128 return this.authToken; 129 } 130 public void setAuthToken( Authorization authToken ) { 131 this.authToken = authToken; 132 } 133 public void resetAuthToken() { 134 this.authToken = null; 135 } 136 137 public Tree getTree( String name ) { 138 return (Tree)trees.get(name); 139 } 140 public void addTree( String name, Tree tree ) { 141 this.trees.put(name,tree); 142 } 143 public void removeTree( String name ) { 144 this.trees.remove(name); 145 } 146 147 } 148 | Popular Tags |