KickJava   Java API By Example, From Geeks To Geeks.

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


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 CredentialImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements Credential {
18
19   public CredentialImpl(
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 boolean isLocked(
30   ) {
31     return isLocked(0);
32   }
33
34   protected boolean isLocked(
35     int index
36   ) {
37     return ((Boolean JavaDoc)this.refGetValue("org:openmdx:security:realm1:Credential:locked", index)).booleanValue();
38   }
39
40 // ----------------------------------------------------------------------------
41
// Instance/ImplAttributeSet1_1
42
// ----------------------------------------------------------------------------
43
public void setLocked(
44     boolean newValue
45   ) {
46     setLocked(0, newValue);
47   }
48
49   protected void setLocked(
50     int index,
51     boolean newValue
52   ) {
53     refSetValue("org:openmdx:security:realm1:Credential:locked", index, new Boolean JavaDoc(newValue));
54   }
55 // ----------------------------------------------------------------------------
56
// Instance/ImplOperation
57
// ----------------------------------------------------------------------------
58
public org.openmdx.security.realm1.cci.ValidationResult request(
59       org.openmdx.base.cci.Void params
60   ) throws javax.jmi.reflect.RefException {
61     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
62     args.add(params);
63     return (org.openmdx.security.realm1.cci.ValidationResult)refInvokeOperation(
64       "org:openmdx:security:realm1:Credential:request",
65       args
66     );
67   }
68
69   public org.openmdx.security.realm1.cci.ValidationResult request(
70   ) throws javax.jmi.reflect.RefException {
71     return request(
72       ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid(
73               )
74     );
75   }
76
77 // ----------------------------------------------------------------------------
78
// Instance/ImplReferenceGet1_1NoQualifier
79
// ----------------------------------------------------------------------------
80
public org.openmdx.security.realm1.cci.Subject getSubject(
81   ) {
82     return (org.openmdx.security.realm1.cci.Subject)refGetValue(
83       "org:openmdx:security:realm1:Credential:subject"
84     );
85   }
86
87 // ----------------------------------------------------------------------------
88
// Instance/ImplReferenceSetNoQualifier
89
// ----------------------------------------------------------------------------
90
public void setSubject(
91     org.openmdx.security.realm1.cci.Subject newValue
92   ) {
93     refSetValue(
94       "org:openmdx:security:realm1:Credential:subject",
95       newValue
96     );
97   }
98
99 // ----------------------------------------------------------------------------
100
// Instance/ImplOperation
101
// ----------------------------------------------------------------------------
102
public org.openmdx.security.realm1.cci.ValidationResult validate(
103       org.openmdx.security.realm1.cci.CredentialValidateParams params
104   ) throws javax.jmi.reflect.RefException {
105     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
106     args.add(params);
107     return (org.openmdx.security.realm1.cci.ValidationResult)refInvokeOperation(
108       "org:openmdx:security:realm1:Credential:validate",
109       args
110     );
111   }
112
113   public org.openmdx.security.realm1.cci.ValidationResult validate(
114       byte[] state
115     , byte[] value
116   ) throws javax.jmi.reflect.RefException {
117     return validate(
118       ((org.openmdx.security.realm1.cci.realm1Package)refOutermostPackage().refPackage("org:openmdx:security:realm1")).createCredentialValidateParams(
119         state
120     , value
121       )
122     );
123   }
124
125 // ----------------------------------------------------------------------------
126
// Instance/ImplEnd
127
// ----------------------------------------------------------------------------
128
}
129
Popular Tags