role.java

来自「Java开发的权限管理的例子」· Java 代码 · 共 107 行

JAVA
107
字号
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 + =
减小字号Ctrl + -
显示快捷键?