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