⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usersessionutil.java

📁 java实现的可配置的工作流引擎,采用jsp+javabean实现
💻 JAVA
字号:
package com.hongsoft.res.util;

import java.util.Iterator;
import java.util.Set;

import com.hongsoft.res.formbean.UserSessionBean;

public class UserSessionUtil {
  /**
   * 判断userSessionBean中的权限中有无privType类型的权限
   * @param userSessionBean
   * @param privType
   * @return
   */
  public static boolean thereIsPriv(UserSessionBean userSessionBean,int privTypeID)
  {
    boolean thereIs=false;
    Set privSet=userSessionBean.getPrivileges();
    Iterator ite=privSet.iterator();
    while(ite.hasNext())
    {
      Object o = ite.next();
      String privilege=(String)o;
      if(Integer.parseInt(privilege)==privTypeID)
      {
        thereIs = true;
        break;
      }
    }
    return thereIs;
  }  
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -