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

📄 role.java

📁 Java开发的权限管理的例子
💻 JAVA
字号:
package org.artemis.right.model;

import java.util.ArrayList;
import java.util.List;

public class Role  implements java.io.Serializable {


    // Fields    

     private String id;
     private String name;
     private String roleType;
     private String enabled;
     private String note;
     private List users = new ArrayList();
     private List functions = new ArrayList();

    // Constructors


	/** default constructor */
    public Role() {
    }

	/** minimal constructor */
    public Role(String id) {
        this.id = id;
    }
    
    /** full constructor */
    public Role(String id, String name, String roleType, String enabled, String note) {
        this.id = id;
        this.name = name;
        this.roleType = roleType;
        this.enabled = enabled;
        this.note = note;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getRoleType() {
        return this.roleType;
    }
    
    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getEnabled() {
        return this.enabled;
    }
    
    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }

	public List getFunctions() {
		return functions;
	}

	public void setFunctions(List functions) {
		this.functions = functions;
	}

	public List getUsers() {
		return users;
	}

	public void setUsers(List users) {
		this.users = users;
	}
   








}

⌨️ 快捷键说明

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