All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ars.module.people.model.Role Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package ars.module.people.model;

import java.util.Set;
import java.util.HashSet;

import ars.module.system.model.Menu;
import ars.database.model.AbstractModel;

/**
 * 角色数据模型
 * 
 * @author yongqiangwu
 * 
 */
public class Role extends AbstractModel {
	private static final long serialVersionUID = 1L;

	private String code; // 编号
	private String name; // 名称
	private Boolean innate = false; // 内置角色
	private String operable; // 操作权限
	private Set menus = new HashSet(0); // 菜单集合

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

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

	public Boolean getInnate() {
		return innate;
	}

	public void setInnate(Boolean innate) {
		this.innate = innate;
	}

	public String getOperable() {
		return operable;
	}

	public void setOperable(String operable) {
		this.operable = operable;
	}

	public Set getMenus() {
		return menus;
	}

	public void setMenus(Set menus) {
		this.menus = menus;
	}

	@Override
	public String toString() {
		return this.name == null ? super.toString() : this.name;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy