adminbean.java

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· Java 代码 · 共 41 行

JAVA
41
字号
package com.gs.db.util.admin;

import java.util.*;
import com.gs.db.*;
import com.gs.db.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 + -
显示快捷键?