123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- package org.jeecg.modules.system.model;
- import java.io.Serializable;
- import java.util.ArrayList;
- import java.util.Date;
- import java.util.List;
- import org.jeecg.modules.system.entity.SysPermission;
- public class SysPermissionTree implements Serializable {
- private static final long serialVersionUID = 1L;
- /**
- * id
- */
- private String id;
- private String key;
- private String title;
- /**
- * 父id
- */
- private String parentId;
- /**
- * 菜单名称
- */
- private String name;
- /**
- * 菜单权限编码
- */
- private String perms;
- /**
- * 权限策略1显示2禁用
- */
- private String permsType;
- /**
- * 菜单图标
- */
- private String icon;
- /**
- * 组件
- */
- private String component;
- /**
- * 跳转网页链接
- */
- private String url;
-
- /**
- * 一级菜单跳转地址
- */
- private String redirect;
- /**
- * 菜单排序
- */
- private Double sortNo;
- /**
- * 类型(0:一级菜单;1:子菜单 ;2:按钮权限)
- */
- private Integer menuType;
- /**
- * 是否叶子节点: 1:是 0:不是
- */
- private boolean isLeaf;
-
- /**
- * 是否路由菜单: 0:不是 1:是(默认值1)
- */
- private boolean route;
- /**
- * 是否路缓存页面: 0:不是 1:是(默认值1)
- */
- private boolean keepAlive;
- /**
- * 描述
- */
- private String description;
- /**
- * 删除状态 0正常 1已删除
- */
- private Integer delFlag;
- /**
- * 创建人
- */
- private String createBy;
- /**
- * 创建时间
- */
- private Date createTime;
- /**
- * 更新人
- */
- private String updateBy;
- /**
- * 更新时间
- */
- private Date updateTime;
- /**alwaysShow*/
- private boolean alwaysShow;
- /**是否隐藏路由菜单: 0否,1是(默认值0)*/
- private boolean hidden;
-
- /**按钮权限状态(0无效1有效)*/
- private java.lang.String status;
- /*update_begin author:wuxianquan date:20190908 for:model增加字段 */
- /** 外链菜单打开方式 0/内部打开 1/外部打开 */
- private boolean internalOrExternal;
- /*update_end author:wuxianquan date:20190908 for:model增加字段 */
- public SysPermissionTree() {
- }
- public SysPermissionTree(SysPermission permission) {
- this.key = permission.getId();
- this.id = permission.getId();
- this.perms = permission.getPerms();
- this.permsType = permission.getPermsType();
- this.component = permission.getComponent();
- this.createBy = permission.getCreateBy();
- this.createTime = permission.getCreateTime();
- this.delFlag = permission.getDelFlag();
- this.description = permission.getDescription();
- this.icon = permission.getIcon();
- this.isLeaf = permission.isLeaf();
- this.menuType = permission.getMenuType();
- this.name = permission.getName();
- this.parentId = permission.getParentId();
- this.sortNo = permission.getSortNo();
- this.updateBy = permission.getUpdateBy();
- this.updateTime = permission.getUpdateTime();
- this.redirect = permission.getRedirect();
- this.url = permission.getUrl();
- this.hidden = permission.isHidden();
- this.route = permission.isRoute();
- this.keepAlive = permission.isKeepAlive();
- this.alwaysShow= permission.isAlwaysShow();
- /*update_begin author:wuxianquan date:20190908 for:赋值 */
- this.internalOrExternal = permission.isInternalOrExternal();
- /*update_end author:wuxianquan date:20190908 for:赋值 */
- this.title=permission.getName();
- if (!permission.isLeaf()) {
- this.children = new ArrayList<SysPermissionTree>();
- }
- this.status = permission.getStatus();
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- private List<SysPermissionTree> children;
- public boolean isLeaf() {
- return isLeaf;
- }
- public void setLeaf(boolean leaf) {
- isLeaf = leaf;
- }
- public boolean isKeepAlive() {
- return keepAlive;
- }
- public void setKeepAlive(boolean keepAlive) {
- this.keepAlive = keepAlive;
- }
- public boolean isAlwaysShow() {
- return alwaysShow;
- }
- public void setAlwaysShow(boolean alwaysShow) {
- this.alwaysShow = alwaysShow;
- }
- public List<SysPermissionTree> getChildren() {
- return children;
- }
- public void setChildren(List<SysPermissionTree> children) {
- this.children = children;
- }
- public String getRedirect() {
- return redirect;
- }
- public void setRedirect(String redirect) {
- this.redirect = redirect;
- }
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public String getParentId() {
- return parentId;
- }
- public void setParentId(String parentId) {
- this.parentId = parentId;
- }
- public boolean isHidden() {
- return hidden;
- }
- public void setHidden(boolean hidden) {
- this.hidden = hidden;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getIcon() {
- return icon;
- }
- public void setIcon(String icon) {
- this.icon = icon;
- }
- public String getComponent() {
- return component;
- }
- public void setComponent(String component) {
- this.component = component;
- }
- public String getUrl() {
- return url;
- }
- public void setUrl(String url) {
- this.url = url;
- }
- public Double getSortNo() {
- return sortNo;
- }
- public void setSortNo(Double sortNo) {
- this.sortNo = sortNo;
- }
- public Integer getMenuType() {
- return menuType;
- }
- public void setMenuType(Integer menuType) {
- this.menuType = menuType;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public boolean isRoute() {
- return route;
- }
- public void setRoute(boolean route) {
- this.route = route;
- }
- public Integer getDelFlag() {
- return delFlag;
- }
- public void setDelFlag(Integer delFlag) {
- this.delFlag = delFlag;
- }
- public String getCreateBy() {
- return createBy;
- }
- public void setCreateBy(String createBy) {
- this.createBy = createBy;
- }
- public Date getCreateTime() {
- return createTime;
- }
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- public String getUpdateBy() {
- return updateBy;
- }
- public void setUpdateBy(String updateBy) {
- this.updateBy = updateBy;
- }
- public Date getUpdateTime() {
- return updateTime;
- }
- public void setUpdateTime(Date updateTime) {
- this.updateTime = updateTime;
- }
- public String getKey() {
- return key;
- }
- public void setKey(String key) {
- this.key = key;
- }
- public String getPerms() {
- return perms;
- }
- public void setPerms(String perms) {
- this.perms = perms;
- }
- public boolean getIsLeaf() {
- return isLeaf;
- }
- public void setIsLeaf(boolean isLeaf) {
- this.isLeaf = isLeaf;
- }
- public String getPermsType() {
- return permsType;
- }
- public void setPermsType(String permsType) {
- this.permsType = permsType;
- }
- public java.lang.String getStatus() {
- return status;
- }
- public void setStatus(java.lang.String status) {
- this.status = status;
- }
- /*update_begin author:wuxianquan date:20190908 for:get set方法 */
- public boolean isInternalOrExternal() {
- return internalOrExternal;
- }
- public void setInternalOrExternal(boolean internalOrExternal) {
- this.internalOrExternal = internalOrExternal;
- }
- /*update_end author:wuxianquan date:20190908 for:get set 方法 */
- }
|