KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > security > realm1 > cci > PrincipalImpl


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:38:56 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.security.realm1.cci;
14
15 public class PrincipalImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements Principal {
18
19   public PrincipalImpl(
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/ImplAttributeGet1_1
28
// ----------------------------------------------------------------------------
29
public java.util.Date JavaDoc getLastLoginAt(
30   ) {
31     return getLastLoginAt(0);
32   }
33
34   protected java.util.Date JavaDoc getLastLoginAt(
35     int index
36   ) {
37     return (java.util.Date JavaDoc)this.refGetValue("org:opencrx:security:realm1:Principal:lastLoginAt", index);
38   }
39
40 // ----------------------------------------------------------------------------
41
// Instance/ImplAttributeSet1_1
42
// ----------------------------------------------------------------------------
43
public void setLastLoginAt(
44     java.util.Date JavaDoc newValue
45   ) {
46     setLastLoginAt(0, newValue);
47   }
48
49   protected void setLastLoginAt(
50     int index,
51     java.util.Date JavaDoc newValue
52   ) {
53     refSetValue("org:opencrx:security:realm1:Principal:lastLoginAt", index, newValue);
54   }
55 // ----------------------------------------------------------------------------
56
// Instance/ImplAttributeGet1_1
57
// ----------------------------------------------------------------------------
58
public java.util.Date JavaDoc getCreatedAt(
59   ) {
60     return getCreatedAt(0);
61   }
62
63   protected java.util.Date JavaDoc getCreatedAt(
64     int index
65   ) {
66     return (java.util.Date JavaDoc)this.refGetValue("org:openmdx:base:BasicObject:createdAt", index);
67   }
68
69 // ----------------------------------------------------------------------------
70
// Instance/ImplAttributeSet1_1
71
// ----------------------------------------------------------------------------
72
protected void setCreatedAt(
73     java.util.Date JavaDoc newValue
74   ) {
75     setCreatedAt(0, newValue);
76   }
77
78   protected void setCreatedAt(
79     int index,
80     java.util.Date JavaDoc newValue
81   ) {
82     refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue);
83   }
84 // ----------------------------------------------------------------------------
85
// Instance/ImplAttributeGetSet
86
// ----------------------------------------------------------------------------
87
public java.util.Set JavaDoc getCreatedBy (
88   ) {
89     return (java.util.Set JavaDoc)this.refGetValue("createdBy");
90   }
91 // ----------------------------------------------------------------------------
92
// Instance/ImplAttributeSetSet
93
// ----------------------------------------------------------------------------
94
protected void setCreatedBy(
95     java.util.Set JavaDoc newValue
96   ) {
97     refSetValue("org:openmdx:base:BasicObject:createdBy", newValue);
98   }
99
100   protected void setCreatedBy(
101     String JavaDoc[] newValue
102   ) {
103     refSetValue("org:openmdx:base:BasicObject:createdBy", newValue);
104   }
105
106 // ----------------------------------------------------------------------------
107
// Instance/ImplAttributeGet1_1
108
// ----------------------------------------------------------------------------
109
public java.util.Date JavaDoc getModifiedAt(
110   ) {
111     return getModifiedAt(0);
112   }
113
114   protected java.util.Date JavaDoc getModifiedAt(
115     int index
116   ) {
117     return (java.util.Date JavaDoc)this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index);
118   }
119
120 // ----------------------------------------------------------------------------
121
// Instance/ImplAttributeSet1_1
122
// ----------------------------------------------------------------------------
123
protected void setModifiedAt(
124     java.util.Date JavaDoc newValue
125   ) {
126     setModifiedAt(0, newValue);
127   }
128
129   protected void setModifiedAt(
130     int index,
131     java.util.Date JavaDoc newValue
132   ) {
133     refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue);
134   }
135 // ----------------------------------------------------------------------------
136
// Instance/ImplAttributeGetSet
137
// ----------------------------------------------------------------------------
138
public java.util.Set JavaDoc getModifiedBy (
139   ) {
140     return (java.util.Set JavaDoc)this.refGetValue("modifiedBy");
141   }
142 // ----------------------------------------------------------------------------
143
// Instance/ImplAttributeSetSet
144
// ----------------------------------------------------------------------------
145
protected void setModifiedBy(
146     java.util.Set JavaDoc newValue
147   ) {
148     refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue);
149   }
150
151   protected void setModifiedBy(
152     String JavaDoc[] newValue
153   ) {
154     refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue);
155   }
156
157 // ----------------------------------------------------------------------------
158
// Instance/ImplReferenceSetWithQualifier
159
// ----------------------------------------------------------------------------
160
protected void setContext(
161     java.util.List JavaDoc newValue
162   ) {
163     refSetValue("org:openmdx:base:ContextCapable:context", newValue);
164   }
165
166   protected void setContext(
167     org.openmdx.base.cci.Context[] newValue
168   ) {
169     refSetValue("org:openmdx:base:ContextCapable:context", newValue);
170   }
171
172 // ----------------------------------------------------------------------------
173
// Instance/ImplReferenceGet0_1WithQualifier
174
// ----------------------------------------------------------------------------
175
public org.openmdx.base.cci.Context getContext(
176     String JavaDoc id
177   ) {
178     return (org.openmdx.base.cci.Context)refGetValue(
179       "org:openmdx:base:ContextCapable:context",
180       id
181     );
182   }
183
184 // ----------------------------------------------------------------------------
185
// Instance/ImplReferenceGet0_nNoFilter
186
// ----------------------------------------------------------------------------
187
public java.util.Collection JavaDoc getContext(
188   ) {
189     return (java.util.Collection JavaDoc)refGetValue(
190       "org:openmdx:base:ContextCapable:context"
191     );
192   }
193
194 // ----------------------------------------------------------------------------
195
// Instance/ImplReferenceAddWithQualifier
196
// ----------------------------------------------------------------------------
197
protected void addContext (
198     String JavaDoc id,
199     org.openmdx.base.cci.Context newValue
200   ) {
201     refAddValue(
202       "org:openmdx:base:ContextCapable:context",
203       id,
204       newValue
205     );
206   }
207
208 // ----------------------------------------------------------------------------
209
// Instance/ImplReferenceAddWithoutQualifier
210
// ----------------------------------------------------------------------------
211
protected void addContext (
212     org.openmdx.base.cci.Context newValue
213   ) {
214     refAddValue(
215       "org:openmdx:base:ContextCapable:context",
216       newValue
217     );
218   }
219
220 // ----------------------------------------------------------------------------
221
// Instance/ImplReferenceRemoveWithQualifier
222
// ----------------------------------------------------------------------------
223
protected void removeContext (
224     String JavaDoc id
225   ) {
226     refRemoveValue(
227       "org:openmdx:base:ContextCapable:context",
228       id
229     );
230   }
231
232 // ----------------------------------------------------------------------------
233
// Instance/ImplAttributeGet1_1
234
// ----------------------------------------------------------------------------
235
public String JavaDoc getIdentity(
236   ) {
237     return getIdentity(0);
238   }
239
240   protected String JavaDoc getIdentity(
241     int index
242   ) {
243     return (String JavaDoc)this.refGetValue("org:openmdx:base:ExtentCapable:identity", index);
244   }
245
246 // ----------------------------------------------------------------------------
247
// Instance/ImplAttributeSet1_1
248
// ----------------------------------------------------------------------------
249
protected void setIdentity(
250     String JavaDoc newValue
251   ) {
252     setIdentity(0, newValue);
253   }
254
255   protected void setIdentity(
256     int index,
257     String JavaDoc newValue
258   ) {
259     refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue);
260   }
261 // ----------------------------------------------------------------------------
262
// Instance/ImplReferenceSetWithQualifier
263
// ----------------------------------------------------------------------------
264
protected void setView(
265     java.util.List JavaDoc newValue
266   ) {
267     refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue);
268   }
269
270   protected void setView(
271     org.openmdx.compatibility.view1.cci.View[] newValue
272   ) {
273     refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue);
274   }
275
276 // ----------------------------------------------------------------------------
277
// Instance/ImplReferenceGet0_1WithQualifier
278
// ----------------------------------------------------------------------------
279
public org.openmdx.compatibility.view1.cci.View getView(
280     String JavaDoc namespace
281   ) {
282     return (org.openmdx.compatibility.view1.cci.View)refGetValue(
283       "org:openmdx:compatibility:view1:ViewCapable:view",
284       namespace
285     );
286   }
287
288 // ----------------------------------------------------------------------------
289
// Instance/ImplReferenceGet0_nWithFilter
290
// ----------------------------------------------------------------------------
291
public java.util.Collection JavaDoc getView(
292   ) {
293     return (java.util.Collection JavaDoc)refGetValue(
294       "org:openmdx:compatibility:view1:ViewCapable:view"
295     );
296   }
297
298   public java.util.List JavaDoc getView(
299     org.openmdx.compatibility.view1.cci.ViewFilter filter
300   ) {
301     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
302       "org:openmdx:compatibility:view1:ViewCapable:view"
303     )).toList(filter);
304   }
305
306 // ----------------------------------------------------------------------------
307
// Instance/ImplReferenceAddWithQualifier
308
// ----------------------------------------------------------------------------
309
protected void addView (
310     String JavaDoc namespace,
311     org.openmdx.compatibility.view1.cci.View newValue
312   ) {
313     refAddValue(
314       "org:openmdx:compatibility:view1:ViewCapable:view",
315       namespace,
316       newValue
317     );
318   }
319
320 // ----------------------------------------------------------------------------
321
// Instance/ImplReferenceAddWithoutQualifier
322
// ----------------------------------------------------------------------------
323
protected void addView (
324     org.openmdx.compatibility.view1.cci.View newValue
325   ) {
326     refAddValue(
327       "org:openmdx:compatibility:view1:ViewCapable:view",
328       newValue
329     );
330   }
331
332 // ----------------------------------------------------------------------------
333
// Instance/ImplReferenceRemoveWithQualifier
334
// ----------------------------------------------------------------------------
335
protected void removeView (
336     String JavaDoc namespace
337   ) {
338     refRemoveValue(
339       "org:openmdx:compatibility:view1:ViewCapable:view",
340       namespace
341     );
342   }
343
344 // ----------------------------------------------------------------------------
345
// Instance/ImplReferenceSetWithQualifier
346
// ----------------------------------------------------------------------------
347
public void setCredential(
348     java.util.List JavaDoc newValue
349   ) {
350     refSetValue("org:openmdx:security:realm1:Principal:credential", newValue);
351   }
352
353   public void setCredential(
354     org.openmdx.security.realm1.cci.Credential[] newValue
355   ) {
356     refSetValue("org:openmdx:security:realm1:Principal:credential", newValue);
357   }
358
359 // ----------------------------------------------------------------------------
360
// Instance/ImplReferenceGet0_1WithQualifier
361
// ----------------------------------------------------------------------------
362
public org.openmdx.security.realm1.cci.Credential getCredential(
363     int index
364   ) {
365     return (org.openmdx.security.realm1.cci.Credential)refGetValue(
366       "org:openmdx:security:realm1:Principal:credential",
367       new Integer JavaDoc(index)
368     );
369   }
370
371 // ----------------------------------------------------------------------------
372
// Instance/ImplReferenceGet0_nNoFilter
373
// ----------------------------------------------------------------------------
374
public java.util.Collection JavaDoc getCredential(
375   ) {
376     return (java.util.Collection JavaDoc)refGetValue(
377       "org:openmdx:security:realm1:Principal:credential"
378     );
379   }
380
381 // ----------------------------------------------------------------------------
382
// Instance/ImplReferenceAddWithQualifier
383
// ----------------------------------------------------------------------------
384
public void addCredential (
385     int index,
386     org.openmdx.security.realm1.cci.Credential newValue
387   ) {
388     refAddValue(
389       "org:openmdx:security:realm1:Principal:credential",
390       new Integer JavaDoc(index),
391       newValue
392     );
393   }
394
395 // ----------------------------------------------------------------------------
396
// Instance/ImplReferenceAddWithoutQualifier
397
// ----------------------------------------------------------------------------
398
public void addCredential (
399     org.openmdx.security.realm1.cci.Credential newValue
400   ) {
401     refAddValue(
402       "org:openmdx:security:realm1:Principal:credential",
403       newValue
404     );
405   }
406
407 // ----------------------------------------------------------------------------
408
// Instance/ImplReferenceRemoveWithQualifier
409
// ----------------------------------------------------------------------------
410
public void removeCredential (
411     int index
412   ) {
413     refRemoveValue(
414       "org:openmdx:security:realm1:Principal:credential",
415       new Integer JavaDoc(index)
416     );
417   }
418
419 // ----------------------------------------------------------------------------
420
// Instance/ImplAttributeGet0_1
421
// ----------------------------------------------------------------------------
422
public String JavaDoc getDescription (
423   ) {
424     return (String JavaDoc)this.refGetValue("description", 0);
425   }
426 // ----------------------------------------------------------------------------
427
// Instance/ImplAttributeSet0_1
428
// ----------------------------------------------------------------------------
429
public void setDescription(
430     String JavaDoc newValue
431   ) {
432     refSetValue("org:openmdx:security:realm1:Principal:description", 0, newValue);
433   }
434
435 // ----------------------------------------------------------------------------
436
// Instance/ImplAttributeGet1_1
437
// ----------------------------------------------------------------------------
438
public boolean isDisabled(
439   ) {
440     return isDisabled(0);
441   }
442
443   protected boolean isDisabled(
444     int index
445   ) {
446     return ((Boolean JavaDoc)this.refGetValue("org:openmdx:security:realm1:Principal:disabled", index)).booleanValue();
447   }
448
449 // ----------------------------------------------------------------------------
450
// Instance/ImplAttributeSet1_1
451
// ----------------------------------------------------------------------------
452
public void setDisabled(
453     boolean newValue
454   ) {
455     setDisabled(0, newValue);
456   }
457
458   protected void setDisabled(
459     int index,
460     boolean newValue
461   ) {
462     refSetValue("org:openmdx:security:realm1:Principal:disabled", index, new Boolean JavaDoc(newValue));
463   }
464 // ----------------------------------------------------------------------------
465
// Instance/ImplReferenceSetWithQualifier
466
// ----------------------------------------------------------------------------
467
public void setIsMemberOf(
468     java.util.List JavaDoc newValue
469   ) {
470     refSetValue("org:openmdx:security:realm1:Principal:isMemberOf", newValue);
471   }
472
473   public void setIsMemberOf(
474     org.openmdx.security.realm1.cci.Group[] newValue
475   ) {
476     refSetValue("org:openmdx:security:realm1:Principal:isMemberOf", newValue);
477   }
478
479 // ----------------------------------------------------------------------------
480
// Instance/ImplReferenceGet0_1WithQualifier
481
// ----------------------------------------------------------------------------
482
public org.openmdx.security.realm1.cci.Group getIsMemberOf(
483     int index
484   ) {
485     return (org.openmdx.security.realm1.cci.Group)refGetValue(
486       "org:openmdx:security:realm1:Principal:isMemberOf",
487       new Integer JavaDoc(index)
488     );
489   }
490
491 // ----------------------------------------------------------------------------
492
// Instance/ImplReferenceGet0_nNoFilter
493
// ----------------------------------------------------------------------------
494
public java.util.Collection JavaDoc getIsMemberOf(
495   ) {
496     return (java.util.Collection JavaDoc)refGetValue(
497       "org:openmdx:security:realm1:Principal:isMemberOf"
498     );
499   }
500
501 // ----------------------------------------------------------------------------
502
// Instance/ImplReferenceAddWithQualifier
503
// ----------------------------------------------------------------------------
504
public void addIsMemberOf (
505     int index,
506     org.openmdx.security.realm1.cci.Group newValue
507   ) {
508     refAddValue(
509       "org:openmdx:security:realm1:Principal:isMemberOf",
510       new Integer JavaDoc(index),
511       newValue
512     );
513   }
514
515 // ----------------------------------------------------------------------------
516
// Instance/ImplReferenceAddWithoutQualifier
517
// ----------------------------------------------------------------------------
518
public void addIsMemberOf (
519     org.openmdx.security.realm1.cci.Group newValue
520   ) {
521     refAddValue(
522       "org:openmdx:security:realm1:Principal:isMemberOf",
523       newValue
524     );
525   }
526
527 // ----------------------------------------------------------------------------
528
// Instance/ImplReferenceRemoveWithQualifier
529
// ----------------------------------------------------------------------------
530
public void removeIsMemberOf (
531     int index
532   ) {
533     refRemoveValue(
534       "org:openmdx:security:realm1:Principal:isMemberOf",
535       new Integer JavaDoc(index)
536     );
537   }
538
539 // ----------------------------------------------------------------------------
540
// Instance/ImplAttributeGet1_1
541
// ----------------------------------------------------------------------------
542
public String JavaDoc getName(
543   ) {
544     return getName(0);
545   }
546
547   protected String JavaDoc getName(
548     int index
549   ) {
550     return (String JavaDoc)this.refGetValue("org:openmdx:security:realm1:Principal:name", index);
551   }
552
553 // ----------------------------------------------------------------------------
554
// Instance/ImplAttributeSet1_1
555
// ----------------------------------------------------------------------------
556
protected void setName(
557     String JavaDoc newValue
558   ) {
559     setName(0, newValue);
560   }
561
562   protected void setName(
563     int index,
564     String JavaDoc newValue
565   ) {
566     refSetValue("org:openmdx:security:realm1:Principal:name", index, newValue);
567   }
568 // ----------------------------------------------------------------------------
569
// Instance/ImplReferenceGet1_1NoQualifier
570
// ----------------------------------------------------------------------------
571
public org.openmdx.security.realm1.cci.Realm getRealm(
572   ) {
573     return (org.openmdx.security.realm1.cci.Realm)refGetValue(
574       "org:openmdx:security:realm1:Principal:realm"
575     );
576   }
577
578 // ----------------------------------------------------------------------------
579
// Instance/ImplReferenceSetNoQualifier
580
// ----------------------------------------------------------------------------
581
protected void setRealm(
582     org.openmdx.security.realm1.cci.Realm newValue
583   ) {
584     refSetValue(
585       "org:openmdx:security:realm1:Principal:realm",
586       newValue
587     );
588   }
589
590 // ----------------------------------------------------------------------------
591
// Instance/ImplReferenceGet1_1NoQualifier
592
// ----------------------------------------------------------------------------
593
public org.openmdx.security.realm1.cci.Subject getSubject(
594   ) {
595     return (org.openmdx.security.realm1.cci.Subject)refGetValue(
596       "org:openmdx:security:realm1:Principal:subject"
597     );
598   }
599
600 // ----------------------------------------------------------------------------
601
// Instance/ImplReferenceSetNoQualifier
602
// ----------------------------------------------------------------------------
603
public void setSubject(
604     org.openmdx.security.realm1.cci.Subject newValue
605   ) {
606     refSetValue(
607       "org:openmdx:security:realm1:Principal:subject",
608       newValue
609     );
610   }
611
612 // ----------------------------------------------------------------------------
613
// Instance/ImplEnd
614
// ----------------------------------------------------------------------------
615
}
616
Popular Tags