KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openmdx > security > realm1 > cci > PolicyImpl


1 // ----------------------------------------------------------------------------
2
// Instance/ImplBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:39:05 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.openmdx.security.realm1.cci;
14
15 public class PolicyImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements Policy {
18
19   public PolicyImpl(
20     org.openmdx.base.accessor.generic.cci.Object_1_0 object,
21     javax.jmi.reflect.RefClass refClass
22   ) {
23     super(object, refClass);
24   }
25
26 // ----------------------------------------------------------------------------
27
// Instance/ImplAttributeGet0_1
28
// ----------------------------------------------------------------------------
29
public String JavaDoc getDescription (
30   ) {
31     return (String JavaDoc)this.refGetValue("description", 0);
32   }
33 // ----------------------------------------------------------------------------
34
// Instance/ImplAttributeSet0_1
35
// ----------------------------------------------------------------------------
36
public void setDescription(
37     String JavaDoc newValue
38   ) {
39     refSetValue("org:openmdx:security:realm1:Policy:description", 0, newValue);
40   }
41
42 // ----------------------------------------------------------------------------
43
// Instance/ImplAttributeGet1_1
44
// ----------------------------------------------------------------------------
45
public String JavaDoc getName(
46   ) {
47     return getName(0);
48   }
49
50   protected String JavaDoc getName(
51     int index
52   ) {
53     return (String JavaDoc)this.refGetValue("org:openmdx:security:realm1:Policy:name", index);
54   }
55
56 // ----------------------------------------------------------------------------
57
// Instance/ImplAttributeSet1_1
58
// ----------------------------------------------------------------------------
59
protected void setName(
60     String JavaDoc newValue
61   ) {
62     setName(0, newValue);
63   }
64
65   protected void setName(
66     int index,
67     String JavaDoc newValue
68   ) {
69     refSetValue("org:openmdx:security:realm1:Policy:name", index, newValue);
70   }
71 // ----------------------------------------------------------------------------
72
// Instance/ImplReferenceSetWithQualifier
73
// ----------------------------------------------------------------------------
74
public void setPrivilege(
75     java.util.List JavaDoc newValue
76   ) {
77     refSetValue("org:openmdx:security:realm1:Policy:privilege", newValue);
78   }
79
80   public void setPrivilege(
81     org.openmdx.security.realm1.cci.Privilege[] newValue
82   ) {
83     refSetValue("org:openmdx:security:realm1:Policy:privilege", newValue);
84   }
85
86 // ----------------------------------------------------------------------------
87
// Instance/ImplReferenceGet0_1WithQualifier
88
// ----------------------------------------------------------------------------
89
public org.openmdx.security.realm1.cci.Privilege getPrivilege(
90     String JavaDoc id
91   ) {
92     return (org.openmdx.security.realm1.cci.Privilege)refGetValue(
93       "org:openmdx:security:realm1:Policy:privilege",
94       id
95     );
96   }
97
98 // ----------------------------------------------------------------------------
99
// Instance/ImplReferenceGet0_nWithFilter
100
// ----------------------------------------------------------------------------
101
public java.util.Collection JavaDoc getPrivilege(
102   ) {
103     return (java.util.Collection JavaDoc)refGetValue(
104       "org:openmdx:security:realm1:Policy:privilege"
105     );
106   }
107
108   public java.util.List JavaDoc getPrivilege(
109     org.openmdx.security.realm1.cci.PrivilegeFilter filter
110   ) {
111     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
112       "org:openmdx:security:realm1:Policy:privilege"
113     )).toList(filter);
114   }
115
116 // ----------------------------------------------------------------------------
117
// Instance/ImplReferenceAddWithQualifier
118
// ----------------------------------------------------------------------------
119
public void addPrivilege (
120     String JavaDoc id,
121     org.openmdx.security.realm1.cci.Privilege newValue
122   ) {
123     refAddValue(
124       "org:openmdx:security:realm1:Policy:privilege",
125       id,
126       newValue
127     );
128   }
129
130 // ----------------------------------------------------------------------------
131
// Instance/ImplReferenceAddWithoutQualifier
132
// ----------------------------------------------------------------------------
133
public void addPrivilege (
134     org.openmdx.security.realm1.cci.Privilege newValue
135   ) {
136     refAddValue(
137       "org:openmdx:security:realm1:Policy:privilege",
138       newValue
139     );
140   }
141
142 // ----------------------------------------------------------------------------
143
// Instance/ImplReferenceRemoveWithQualifier
144
// ----------------------------------------------------------------------------
145
public void removePrivilege (
146     String JavaDoc id
147   ) {
148     refRemoveValue(
149       "org:openmdx:security:realm1:Policy:privilege",
150       id
151     );
152   }
153
154 // ----------------------------------------------------------------------------
155
// Instance/ImplReferenceSetWithQualifier
156
// ----------------------------------------------------------------------------
157
public void setRole(
158     java.util.List JavaDoc newValue
159   ) {
160     refSetValue("org:openmdx:security:realm1:Policy:role", newValue);
161   }
162
163   public void setRole(
164     org.openmdx.security.realm1.cci.Role[] newValue
165   ) {
166     refSetValue("org:openmdx:security:realm1:Policy:role", newValue);
167   }
168
169 // ----------------------------------------------------------------------------
170
// Instance/ImplReferenceGet0_1WithQualifier
171
// ----------------------------------------------------------------------------
172
public org.openmdx.security.realm1.cci.Role getRole(
173     String JavaDoc name
174   ) {
175     return (org.openmdx.security.realm1.cci.Role)refGetValue(
176       "org:openmdx:security:realm1:Policy:role",
177       name
178     );
179   }
180
181 // ----------------------------------------------------------------------------
182
// Instance/ImplReferenceGet0_nWithFilter
183
// ----------------------------------------------------------------------------
184
public java.util.Collection JavaDoc getRole(
185   ) {
186     return (java.util.Collection JavaDoc)refGetValue(
187       "org:openmdx:security:realm1:Policy:role"
188     );
189   }
190
191   public java.util.List JavaDoc getRole(
192     org.openmdx.security.realm1.cci.RoleFilter filter
193   ) {
194     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
195       "org:openmdx:security:realm1:Policy:role"
196     )).toList(filter);
197   }
198
199 // ----------------------------------------------------------------------------
200
// Instance/ImplReferenceAddWithQualifier
201
// ----------------------------------------------------------------------------
202
public void addRole (
203     String JavaDoc name,
204     org.openmdx.security.realm1.cci.Role newValue
205   ) {
206     refAddValue(
207       "org:openmdx:security:realm1:Policy:role",
208       name,
209       newValue
210     );
211   }
212
213 // ----------------------------------------------------------------------------
214
// Instance/ImplReferenceAddWithoutQualifier
215
// ----------------------------------------------------------------------------
216
public void addRole (
217     org.openmdx.security.realm1.cci.Role newValue
218   ) {
219     refAddValue(
220       "org:openmdx:security:realm1:Policy:role",
221       newValue
222     );
223   }
224
225 // ----------------------------------------------------------------------------
226
// Instance/ImplReferenceRemoveWithQualifier
227
// ----------------------------------------------------------------------------
228
public void removeRole (
229     String JavaDoc name
230   ) {
231     refRemoveValue(
232       "org:openmdx:security:realm1:Policy:role",
233       name
234     );
235   }
236
237 // ----------------------------------------------------------------------------
238
// Instance/ImplEnd
239
// ----------------------------------------------------------------------------
240
}
241
Popular Tags