1
2
3
4
5
6
7
8 package org.codehaus.plexus.security.authorization.rbac.jdo.v0_9_0;
9
10
11
12
13
14
15 public class JdoOperation
16 implements org.codehaus.plexus.security.rbac.Operation, java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26 private String name;
27
28
29
30
31 private String description;
32
33
34
35
36
37
38 private boolean permanent = false;
39
40
41
42
43
44
45
46 private boolean resourceRequired = false;
47
48
49
50
51
52
53
54
55
56
57
58
59 public boolean equals( Object other )
60 {
61 if ( this == other )
62 {
63 return true;
64 }
65
66 if ( !( other instanceof JdoOperation ) )
67 {
68 return false;
69 }
70
71 JdoOperation that = (JdoOperation) other;
72 boolean result = true;
73
74 result = result && ( getName() == null ? that.getName() == null : getName().equals( that.getName() ) );
75
76 return result;
77 }
78
79
80
81
82
83
84 public String getDescription()
85 {
86 return this.description;
87 }
88
89
90
91
92
93
94 public String getName()
95 {
96 return this.name;
97 }
98
99
100
101
102
103
104 public int hashCode()
105 {
106 int result = 17;
107
108 result = 37 * result + ( name != null ? name.hashCode() : 0 );
109
110 return result;
111 }
112
113
114
115
116
117
118 public boolean isPermanent()
119 {
120 return this.permanent;
121 }
122
123
124
125
126
127
128
129 public boolean isResourceRequired()
130 {
131 return this.resourceRequired;
132 }
133
134
135
136
137
138
139 public void setDescription( String description )
140 {
141 this.description = description;
142 }
143
144
145
146
147
148
149 public void setName( String name )
150 {
151 this.name = name;
152 }
153
154
155
156
157
158
159 public void setPermanent( boolean permanent )
160 {
161 this.permanent = permanent;
162 }
163
164
165
166
167
168
169
170 public void setResourceRequired( boolean resourceRequired )
171 {
172 this.resourceRequired = resourceRequired;
173 }
174
175
176
177
178
179
180 public java.lang.String toString()
181 {
182 StringBuffer buf = new StringBuffer( 128 );
183
184 buf.append( "name = '" );
185 buf.append( getName() );
186 buf.append( "'" );
187
188 return buf.toString();
189 }
190
191 }