1f4f49be216bae0a650571592f7d8f620e00c735.svn-base 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. package org.jeecg.modules.system.model;
  2. import java.io.Serializable;
  3. import java.util.ArrayList;
  4. import java.util.Date;
  5. import java.util.List;
  6. import org.jeecg.modules.system.entity.SysPermission;
  7. public class SysPermissionTree implements Serializable {
  8. private static final long serialVersionUID = 1L;
  9. /**
  10. * id
  11. */
  12. private String id;
  13. private String key;
  14. private String title;
  15. /**
  16. * 父id
  17. */
  18. private String parentId;
  19. /**
  20. * 菜单名称
  21. */
  22. private String name;
  23. /**
  24. * 菜单权限编码
  25. */
  26. private String perms;
  27. /**
  28. * 权限策略1显示2禁用
  29. */
  30. private String permsType;
  31. /**
  32. * 菜单图标
  33. */
  34. private String icon;
  35. /**
  36. * 组件
  37. */
  38. private String component;
  39. /**
  40. * 跳转网页链接
  41. */
  42. private String url;
  43. /**
  44. * 一级菜单跳转地址
  45. */
  46. private String redirect;
  47. /**
  48. * 菜单排序
  49. */
  50. private Double sortNo;
  51. /**
  52. * 类型(0:一级菜单;1:子菜单 ;2:按钮权限)
  53. */
  54. private Integer menuType;
  55. /**
  56. * 是否叶子节点: 1:是 0:不是
  57. */
  58. private boolean isLeaf;
  59. /**
  60. * 是否路由菜单: 0:不是 1:是(默认值1)
  61. */
  62. private boolean route;
  63. /**
  64. * 是否路缓存页面: 0:不是 1:是(默认值1)
  65. */
  66. private boolean keepAlive;
  67. /**
  68. * 描述
  69. */
  70. private String description;
  71. /**
  72. * 删除状态 0正常 1已删除
  73. */
  74. private Integer delFlag;
  75. /**
  76. * 创建人
  77. */
  78. private String createBy;
  79. /**
  80. * 创建时间
  81. */
  82. private Date createTime;
  83. /**
  84. * 更新人
  85. */
  86. private String updateBy;
  87. /**
  88. * 更新时间
  89. */
  90. private Date updateTime;
  91. /**alwaysShow*/
  92. private boolean alwaysShow;
  93. /**是否隐藏路由菜单: 0否,1是(默认值0)*/
  94. private boolean hidden;
  95. /**按钮权限状态(0无效1有效)*/
  96. private java.lang.String status;
  97. /*update_begin author:wuxianquan date:20190908 for:model增加字段 */
  98. /** 外链菜单打开方式 0/内部打开 1/外部打开 */
  99. private boolean internalOrExternal;
  100. /*update_end author:wuxianquan date:20190908 for:model增加字段 */
  101. public SysPermissionTree() {
  102. }
  103. public SysPermissionTree(SysPermission permission) {
  104. this.key = permission.getId();
  105. this.id = permission.getId();
  106. this.perms = permission.getPerms();
  107. this.permsType = permission.getPermsType();
  108. this.component = permission.getComponent();
  109. this.createBy = permission.getCreateBy();
  110. this.createTime = permission.getCreateTime();
  111. this.delFlag = permission.getDelFlag();
  112. this.description = permission.getDescription();
  113. this.icon = permission.getIcon();
  114. this.isLeaf = permission.isLeaf();
  115. this.menuType = permission.getMenuType();
  116. this.name = permission.getName();
  117. this.parentId = permission.getParentId();
  118. this.sortNo = permission.getSortNo();
  119. this.updateBy = permission.getUpdateBy();
  120. this.updateTime = permission.getUpdateTime();
  121. this.redirect = permission.getRedirect();
  122. this.url = permission.getUrl();
  123. this.hidden = permission.isHidden();
  124. this.route = permission.isRoute();
  125. this.keepAlive = permission.isKeepAlive();
  126. this.alwaysShow= permission.isAlwaysShow();
  127. /*update_begin author:wuxianquan date:20190908 for:赋值 */
  128. this.internalOrExternal = permission.isInternalOrExternal();
  129. /*update_end author:wuxianquan date:20190908 for:赋值 */
  130. this.title=permission.getName();
  131. if (!permission.isLeaf()) {
  132. this.children = new ArrayList<SysPermissionTree>();
  133. }
  134. this.status = permission.getStatus();
  135. }
  136. public String getTitle() {
  137. return title;
  138. }
  139. public void setTitle(String title) {
  140. this.title = title;
  141. }
  142. private List<SysPermissionTree> children;
  143. public boolean isLeaf() {
  144. return isLeaf;
  145. }
  146. public void setLeaf(boolean leaf) {
  147. isLeaf = leaf;
  148. }
  149. public boolean isKeepAlive() {
  150. return keepAlive;
  151. }
  152. public void setKeepAlive(boolean keepAlive) {
  153. this.keepAlive = keepAlive;
  154. }
  155. public boolean isAlwaysShow() {
  156. return alwaysShow;
  157. }
  158. public void setAlwaysShow(boolean alwaysShow) {
  159. this.alwaysShow = alwaysShow;
  160. }
  161. public List<SysPermissionTree> getChildren() {
  162. return children;
  163. }
  164. public void setChildren(List<SysPermissionTree> children) {
  165. this.children = children;
  166. }
  167. public String getRedirect() {
  168. return redirect;
  169. }
  170. public void setRedirect(String redirect) {
  171. this.redirect = redirect;
  172. }
  173. public String getId() {
  174. return id;
  175. }
  176. public void setId(String id) {
  177. this.id = id;
  178. }
  179. public String getParentId() {
  180. return parentId;
  181. }
  182. public void setParentId(String parentId) {
  183. this.parentId = parentId;
  184. }
  185. public boolean isHidden() {
  186. return hidden;
  187. }
  188. public void setHidden(boolean hidden) {
  189. this.hidden = hidden;
  190. }
  191. public String getName() {
  192. return name;
  193. }
  194. public void setName(String name) {
  195. this.name = name;
  196. }
  197. public String getIcon() {
  198. return icon;
  199. }
  200. public void setIcon(String icon) {
  201. this.icon = icon;
  202. }
  203. public String getComponent() {
  204. return component;
  205. }
  206. public void setComponent(String component) {
  207. this.component = component;
  208. }
  209. public String getUrl() {
  210. return url;
  211. }
  212. public void setUrl(String url) {
  213. this.url = url;
  214. }
  215. public Double getSortNo() {
  216. return sortNo;
  217. }
  218. public void setSortNo(Double sortNo) {
  219. this.sortNo = sortNo;
  220. }
  221. public Integer getMenuType() {
  222. return menuType;
  223. }
  224. public void setMenuType(Integer menuType) {
  225. this.menuType = menuType;
  226. }
  227. public String getDescription() {
  228. return description;
  229. }
  230. public void setDescription(String description) {
  231. this.description = description;
  232. }
  233. public boolean isRoute() {
  234. return route;
  235. }
  236. public void setRoute(boolean route) {
  237. this.route = route;
  238. }
  239. public Integer getDelFlag() {
  240. return delFlag;
  241. }
  242. public void setDelFlag(Integer delFlag) {
  243. this.delFlag = delFlag;
  244. }
  245. public String getCreateBy() {
  246. return createBy;
  247. }
  248. public void setCreateBy(String createBy) {
  249. this.createBy = createBy;
  250. }
  251. public Date getCreateTime() {
  252. return createTime;
  253. }
  254. public void setCreateTime(Date createTime) {
  255. this.createTime = createTime;
  256. }
  257. public String getUpdateBy() {
  258. return updateBy;
  259. }
  260. public void setUpdateBy(String updateBy) {
  261. this.updateBy = updateBy;
  262. }
  263. public Date getUpdateTime() {
  264. return updateTime;
  265. }
  266. public void setUpdateTime(Date updateTime) {
  267. this.updateTime = updateTime;
  268. }
  269. public String getKey() {
  270. return key;
  271. }
  272. public void setKey(String key) {
  273. this.key = key;
  274. }
  275. public String getPerms() {
  276. return perms;
  277. }
  278. public void setPerms(String perms) {
  279. this.perms = perms;
  280. }
  281. public boolean getIsLeaf() {
  282. return isLeaf;
  283. }
  284. public void setIsLeaf(boolean isLeaf) {
  285. this.isLeaf = isLeaf;
  286. }
  287. public String getPermsType() {
  288. return permsType;
  289. }
  290. public void setPermsType(String permsType) {
  291. this.permsType = permsType;
  292. }
  293. public java.lang.String getStatus() {
  294. return status;
  295. }
  296. public void setStatus(java.lang.String status) {
  297. this.status = status;
  298. }
  299. /*update_begin author:wuxianquan date:20190908 for:get set方法 */
  300. public boolean isInternalOrExternal() {
  301. return internalOrExternal;
  302. }
  303. public void setInternalOrExternal(boolean internalOrExternal) {
  304. this.internalOrExternal = internalOrExternal;
  305. }
  306. /*update_end author:wuxianquan date:20190908 for:get set 方法 */
  307. }