1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.bo.group.dto;
17
18 import java.io.Serializable;
19
20 import javax.xml.bind.annotation.XmlAccessType;
21 import javax.xml.bind.annotation.XmlAccessorType;
22 import javax.xml.bind.annotation.XmlRootElement;
23 import javax.xml.bind.annotation.XmlType;
24 import javax.xml.bind.annotation.XmlElement;
25
26 import org.apache.commons.lang.builder.EqualsBuilder;
27 import org.apache.commons.lang.builder.HashCodeBuilder;
28 import org.kuali.rice.kim.bo.Group;
29 import org.kuali.rice.kim.bo.types.dto.AttributeSet;
30
31
32
33
34
35
36
37
38
39 @XmlRootElement(name = "group", namespace = "http://rice.kuali.org/xsd/kim/group")
40 @XmlAccessorType(XmlAccessType.FIELD)
41 @XmlType(name = "Group", namespace = "http://rice.kuali.org/xsd/kim/group", propOrder = {
42 "groupId", "groupName", "groupDescription", "active", "kimTypeId", "namespaceCode", "attributes"
43 })
44
45 public class GroupInfo implements Group, Serializable {
46
47 private static final long serialVersionUID = 1L;
48
49 @XmlElement(name = "groupId", namespace = "http://rice.kuali.org/xsd/kim/group")
50 protected String groupId;
51
52 @XmlElement(name = "groupName", namespace = "http://rice.kuali.org/xsd/kim/group")
53 protected String groupName;
54
55 @XmlElement(name = "groupDescription", namespace = "http://rice.kuali.org/xsd/kim/group")
56 protected String groupDescription;
57
58 @XmlElement(name = "active", namespace = "http://rice.kuali.org/xsd/kim/group")
59 protected boolean active;
60
61 @XmlElement(name = "kimTypeId", namespace = "http://rice.kuali.org/xsd/kim/group")
62 protected String kimTypeId;
63
64 @XmlElement(name = "namespaceCode", namespace = "http://rice.kuali.org/xsd/kim/group")
65 protected String namespaceCode;
66
67 @XmlElement(name = "attributes", namespace = "http://rice.kuali.org/xsd/kim/group")
68 protected AttributeSet attributes;
69
70
71 public String getGroupDescription() {
72 return this.groupDescription;
73 }
74
75 public String getGroupId() {
76 return this.groupId;
77 }
78
79 public String getGroupName() {
80 return this.groupName;
81 }
82
83 public String getKimTypeId() {
84 return this.kimTypeId;
85 }
86
87 public String getNamespaceCode() {
88 return this.namespaceCode;
89 }
90
91 public AttributeSet getAttributes() {
92 return this.attributes;
93 }
94
95 public void setGroupDescription(String groupDescription) {
96 this.groupDescription = groupDescription;
97 }
98
99 public void setGroupId(String groupId) {
100 this.groupId = groupId;
101 }
102
103 public void setGroupName(String groupName) {
104 this.groupName = groupName;
105 }
106
107 public void setKimTypeId(String kimTypeId) {
108 this.kimTypeId = kimTypeId;
109 }
110
111 public void setNamespaceCode(String namespaceCode) {
112 this.namespaceCode = namespaceCode;
113 }
114
115 public void setAttributes(AttributeSet attributes) {
116 this.attributes = attributes;
117 }
118
119 public boolean isActive() {
120 return this.active;
121 }
122
123 public void setActive(boolean active) {
124 this.active = active;
125 }
126
127 public void refresh(){
128
129 }
130
131 public void prepareForWorkflow(){
132
133 }
134
135 public boolean equals(Object object) {
136 if (object == null) { return false; }
137 if (object == this) { return true; }
138 if (object.getClass() != getClass()) {
139 return false;
140 }
141 GroupInfo rhs = (GroupInfo)object;
142 EqualsBuilder eb = new EqualsBuilder()
143 .append( this.groupId, rhs.getGroupId() );
144 return eb.isEquals();
145 }
146
147 public int hashCode() {
148 return new HashCodeBuilder( -462347871, 744315189 )
149 .append( this.groupId )
150 .toHashCode();
151 }
152
153 }