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

📄 user.java

📁 一套完整的档案管理系统
💻 JAVA
字号:
package com.stsc.archive.manage;



public class User
{
	private String enterName = null; 
	private String userName = null;
	private String department = null;
	private int rowsPerPage = 0;
	private String[] popedoms = null;
	private int[] iPopedoms = null;

	//---------------------------------------------------------
	private String pass1 = null;
	private String pass2 = null;
	private String oldpass = null;
	
	public String getPass1()
	{
		return this.pass1;
	}
	public void setPass1(String pass1)
	{
		this.pass1 = (pass1==null)?"":pass1;
	}

	public String getPass2()
	{
		return this.pass2;
	}
	public void setPass2(String pass2)
	{
		this.pass2 = (pass2==null)?"":pass2;
	}

	public String getOldpass()
	{
		return this.oldpass;
	}
	public void setOldpass(String oldpass)
	{
		this.oldpass = (oldpass==null)?"":oldpass;
	}
	//=========================================================
	
	public String getEnterName()
	{
		return this.enterName;
	}
	public void setEnterName(String enterName)
	{
		this.enterName = (enterName==null)?"":enterName;
	}
	
	public String getUserName()
	{
		return this.userName;
	}
	public void setUserName(String userName)
	{
		this.userName = (userName==null)?"":userName;
	}
	
	public String getDepartment()
	{
		return this.department;
	}
	public void setDepartment(String department)
	{
		this.department = (department==null)?"":department;
	}

	public int getRowsPerPage()
	{
		return this.rowsPerPage;
	}
	public void setRowsPerPage(int rowsPerPage)
	{
		this.rowsPerPage = rowsPerPage;
	}
	
	public String[] getPopedoms()
	{
		return this.popedoms;
	}
	public void setPopedoms(String[] popedoms)
	{
		int iLen = popedoms.length;
		this.popedoms = new String[iLen];
		for(int i=0; i<iLen; i++)
		{
			this.popedoms[i] = popedoms[i];
		}
	}

	public int[] getIPopedoms()
	{
		return this.iPopedoms;
	}
	public void setIPopedoms(int[] iPopedoms)
	{
		int iLen = iPopedoms.length;
		this.iPopedoms = new int[iLen];
		for(int i=0; i<iLen; i++)
		{
			this.iPopedoms[i] = iPopedoms[i];
		}
	}
	
	//判断该用户是否拥有popedom权限
	public boolean hasPopedom(String popedom)
	{
		for(int i=0; i<popedoms.length; i++)
		{
			if(popedoms[i].equals(popedom))
			{
				return true;
			}
		}
		
		return false;
	}

	//判断该用户是否拥有popedom权限
	public boolean hasPopedom(int iPopedom)
	{
		for(int i=0; i<iPopedoms.length; i++)
		{
			if(iPopedoms[i] == iPopedom)
			{
				return true;
			}
		}
		
		return false;
	}
}

⌨️ 快捷键说明

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