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 | 0 | 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 | 0 | return this.groupDescription; |
73 | |
} |
74 | |
|
75 | |
public String getGroupId() { |
76 | 0 | return this.groupId; |
77 | |
} |
78 | |
|
79 | |
public String getGroupName() { |
80 | 0 | return this.groupName; |
81 | |
} |
82 | |
|
83 | |
public String getKimTypeId() { |
84 | 0 | return this.kimTypeId; |
85 | |
} |
86 | |
|
87 | |
public String getNamespaceCode() { |
88 | 0 | return this.namespaceCode; |
89 | |
} |
90 | |
|
91 | |
public AttributeSet getAttributes() { |
92 | 0 | return this.attributes; |
93 | |
} |
94 | |
|
95 | |
public void setGroupDescription(String groupDescription) { |
96 | 0 | this.groupDescription = groupDescription; |
97 | 0 | } |
98 | |
|
99 | |
public void setGroupId(String groupId) { |
100 | 0 | this.groupId = groupId; |
101 | 0 | } |
102 | |
|
103 | |
public void setGroupName(String groupName) { |
104 | 0 | this.groupName = groupName; |
105 | 0 | } |
106 | |
|
107 | |
public void setKimTypeId(String kimTypeId) { |
108 | 0 | this.kimTypeId = kimTypeId; |
109 | 0 | } |
110 | |
|
111 | |
public void setNamespaceCode(String namespaceCode) { |
112 | 0 | this.namespaceCode = namespaceCode; |
113 | 0 | } |
114 | |
|
115 | |
public void setAttributes(AttributeSet attributes) { |
116 | 0 | this.attributes = attributes; |
117 | 0 | } |
118 | |
|
119 | |
public boolean isActive() { |
120 | 0 | return this.active; |
121 | |
} |
122 | |
|
123 | |
public void setActive(boolean active) { |
124 | 0 | this.active = active; |
125 | 0 | } |
126 | |
|
127 | |
public void refresh(){ |
128 | |
|
129 | 0 | } |
130 | |
|
131 | |
public void prepareForWorkflow(){ |
132 | |
|
133 | 0 | } |
134 | |
|
135 | |
public boolean equals(Object object) { |
136 | 0 | if (object == null) { return false; } |
137 | 0 | if (object == this) { return true; } |
138 | 0 | if (object.getClass() != getClass()) { |
139 | 0 | return false; |
140 | |
} |
141 | 0 | GroupInfo rhs = (GroupInfo)object; |
142 | 0 | EqualsBuilder eb = new EqualsBuilder() |
143 | |
.append( this.groupId, rhs.getGroupId() ); |
144 | 0 | return eb.isEquals(); |
145 | |
} |
146 | |
|
147 | |
public int hashCode() { |
148 | 0 | return new HashCodeBuilder( -462347871, 744315189 ) |
149 | |
.append( this.groupId ) |
150 | |
.toHashCode(); |
151 | |
} |
152 | |
|
153 | |
} |