Group.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package hello.accounts.entity;
  2. import hello.*;
  3. import com.techempower.gemini.pyxis.*;
  4. /**
  5. * Represents a user group for the GeminiHello application.
  6. *
  7. * @author mhixson
  8. *
  9. * Development history:
  10. * 2012-04-19 - mh - Created
  11. */
  12. public class Group
  13. extends GhDataEntity
  14. implements PyxisUserGroup
  15. {
  16. //
  17. // Member variables.
  18. //
  19. private String name; // 50 chars
  20. private String description; // 100 chars
  21. private int type;
  22. //
  23. // Member methods.
  24. //
  25. /**
  26. * Alias for getId(), required by PyxisUserGroup.
  27. */
  28. @Override
  29. public int getGroupID()
  30. {
  31. return getId();
  32. }
  33. /**
  34. * Alias for setId(int), required by PyxisUserGroup.
  35. */
  36. @Override
  37. public void setGroupID(int groupID)
  38. {
  39. setId(groupID);
  40. }
  41. /**
  42. * @see com.techempower.gemini.pyxisPyxisUserGroup#getDescription()
  43. */
  44. @Override
  45. public String getDescription()
  46. {
  47. return this.description;
  48. }
  49. /**
  50. * @see com.techempower.gemini.pyxisPyxisUserGroup#setDescription(String)
  51. */
  52. @Override
  53. public void setDescription(String description)
  54. {
  55. this.description = description;
  56. }
  57. /**
  58. * @see com.techempower.gemini.pyxisPyxisUserGroup#getName()
  59. */
  60. @Override
  61. public String getName()
  62. {
  63. return this.name;
  64. }
  65. /**
  66. * @see com.techempower.gemini.pyxisPyxisUserGroup#setName(String)
  67. */
  68. @Override
  69. public void setName(String name)
  70. {
  71. this.name = name;
  72. }
  73. /**
  74. * @see com.techempower.gemini.pyxisPyxisUserGroup#getType()
  75. */
  76. @Override
  77. public int getType()
  78. {
  79. return this.type;
  80. }
  81. /**
  82. * @see com.techempower.gemini.pyxisPyxisUserGroup#setType(int)
  83. */
  84. @Override
  85. public void setType(int type)
  86. {
  87. this.type = type;
  88. }
  89. } // End Group.