Jive Forums 1.0 src

源代码在线查看: adminbean.java

软件大小: 972 K
上传用户: maige49
关键词: Forums Jive 1.0 src
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				/**
				 * AdminBean.java
				 * July, 2000
				 */
				
				package com.coolservlets.forum.util.admin;
				
				import java.util.*;
				import com.coolservlets.forum.*;
				import com.coolservlets.forum.util.tree.*;
				
				/**
				 * The AdminBean is designed to be used in the Jive admin tool as a way
				 * to keep state in various elements of the tool. 
				 */
				public class AdminBean {
				
				    private Authorization authToken;
				    private Hashtable trees;
				
				    public AdminBean() {
				        trees = new Hashtable();
				    }
				
				    public Authorization getAuthToken() {
				        return this.authToken;
				    }
				    public void setAuthToken( Authorization authToken ) {
				        this.authToken = authToken;
				    }
				    public void resetAuthToken() {
				        this.authToken = null;
				    }
				
				    public Tree getTree( String name ) {
				        return (Tree)trees.get(name);
				    }
				    public void addTree( String name, Tree tree ) {
				        this.trees.put(name,tree);
				    }
				    public void removeTree( String name ) {
				        this.trees.remove(name);
				    }
				
				}
							

相关资源