1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.role.dto; |
17 | |
|
18 | |
import org.apache.commons.lang.StringUtils; |
19 | |
import org.apache.commons.lang.builder.ToStringBuilder; |
20 | |
import org.kuali.rice.core.util.AttributeSet; |
21 | |
import org.kuali.rice.kns.bo.Inactivateable; |
22 | |
|
23 | |
import java.io.Serializable; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public class KimResponsibilityInfo implements Serializable, Inactivateable { |
32 | |
|
33 | |
private static final long serialVersionUID = 7887896860986162310L; |
34 | |
protected String namespaceCode; |
35 | |
protected String name; |
36 | |
protected String description; |
37 | |
|
38 | |
protected boolean active; |
39 | |
|
40 | |
public String getName() { |
41 | 0 | return this.name; |
42 | |
} |
43 | |
public void setName(String name) { |
44 | 0 | this.name = name; |
45 | 0 | } |
46 | |
public String getDescription() { |
47 | 0 | return this.description; |
48 | |
} |
49 | |
public void setDescription(String description) { |
50 | 0 | this.description = description; |
51 | 0 | } |
52 | |
public boolean isActive() { |
53 | 0 | return this.active; |
54 | |
} |
55 | |
public void setActive(boolean active) { |
56 | 0 | this.active = active; |
57 | 0 | } |
58 | |
public String getNamespaceCode() { |
59 | 0 | return this.namespaceCode; |
60 | |
} |
61 | |
public void setNamespaceCode(String namespaceCode) { |
62 | 0 | this.namespaceCode = namespaceCode; |
63 | 0 | } |
64 | |
|
65 | |
|
66 | |
|
67 | |
public String toString() { |
68 | 0 | return new ToStringBuilder( this ) |
69 | |
.append( "responsibilityId", this.responsibilityId ) |
70 | |
.append( "namespaceCode", this.namespaceCode ) |
71 | |
.append( "details", this.details ) |
72 | |
.toString(); |
73 | |
} |
74 | |
|
75 | |
public boolean equals(Object object) { |
76 | 0 | if (!(object instanceof KimResponsibilityInfo)) { |
77 | 0 | return false; |
78 | |
} |
79 | 0 | return StringUtils.equals( responsibilityId, ((KimResponsibilityInfo)object).responsibilityId ); |
80 | |
} |
81 | |
|
82 | |
|
83 | |
protected String responsibilityId; |
84 | |
|
85 | |
protected AttributeSet details; |
86 | |
|
87 | |
public String getResponsibilityId() { |
88 | 0 | return this.responsibilityId; |
89 | |
} |
90 | |
|
91 | |
public void setResponsibilityId(String responsibilityId) { |
92 | 0 | this.responsibilityId = responsibilityId; |
93 | 0 | } |
94 | |
|
95 | |
public AttributeSet getDetails() { |
96 | 0 | return this.details; |
97 | |
} |
98 | |
|
99 | |
public void setDetails(AttributeSet responsibilityDetails) { |
100 | 0 | this.details = responsibilityDetails; |
101 | 0 | } |
102 | |
|
103 | |
public boolean hasDetails() { |
104 | 0 | return !details.isEmpty(); |
105 | |
} |
106 | |
} |