?? global.java
字號:
package com.neusoft.sso;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**************************************************
* NAME : SsoFilterUtil.java
* HISTORY
* 2007-08-15 shanc 創建文件
* 注意:這個類是個包訪問權限的類,使用Sso組件的程序員,不建議了解該類的具體結構
*************************************************/
class Global {
static final String SET_NAME = "ssouserset";
private static Map pro = null;
static void init(Map map){
if(pro != null){
return ;
}
//組織otherNames
Object[] keys = map.keySet().toArray();
List list = new ArrayList();
for(int i = 0;i<keys.length;i++){
String key = (String)keys[i];
if(key.startsWith("app")){
list.add(map.get(key));
}
}
String[] otherNames = new String[list.size()];
for(int i = 0;i<list.size();i++){
otherNames[i] = (String)list.get(i);
}
//組織pro
pro = new HashMap();
pro.put("paraname", map.get("paraname"));//paraname
pro.put("ssoflag", map.get("ssoflag"));//ssoflag
pro.put("othernames", otherNames);//app1.....
}
static String getParaName(){
return (String)pro.get("paraname");
}
static String[] getOthersNames(){
return (String[])pro.get("othernames");
}
static boolean getSSOFlag(){
Object flag = pro.get("ssoflag");
return "1".equals(flag);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -