Roles.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.cloudcross.ssp.model;
  2. import java.util.HashSet;
  3. import java.util.Set;
  4. @SuppressWarnings("serial")
  5. public class Roles implements java.io.Serializable {
  6. private Integer id;
  7. private String enable;//是否禁用角色 1 表示禁用 2 表示不禁用
  8. private String name;
  9. private String roleKey;//唯一,新境时,需要判断
  10. private String description;
  11. private Set<Resources> resources = new HashSet<Resources>(0);
  12. public Roles() {
  13. }
  14. public Integer getId() {
  15. return this.id;
  16. }
  17. public void setId(Integer id) {
  18. this.id = id;
  19. }
  20. public String getEnable() {
  21. return this.enable;
  22. }
  23. public void setEnable(String enable) {
  24. this.enable = enable;
  25. }
  26. public String getName() {
  27. return this.name;
  28. }
  29. public void setName(String name) {
  30. this.name = name;
  31. }
  32. public Set<Resources> getResources() {
  33. return resources;
  34. }
  35. public void setResources(Set<Resources> resources) {
  36. this.resources = resources;
  37. }
  38. public String getDescription() {
  39. return description;
  40. }
  41. public void setDescription(String description) {
  42. this.description = description;
  43. }
  44. public String getRoleKey() {
  45. return roleKey;
  46. }
  47. public void setRoleKey(String roleKey) {
  48. this.roleKey = roleKey;
  49. }
  50. }