adminbean.java
来自「Jive Forums 1.0 src」· Java 代码 · 共 47 行
JAVA
47 行
/**
* 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);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?