KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > account1 > cci > OrganizationalUnitClassImpl


1 // ----------------------------------------------------------------------------
2
// ClassProxy/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:55 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.account1.cci;
14
15 public class OrganizationalUnitClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements OrganizationalUnitClass {
18
19   public OrganizationalUnitClassImpl(
20     org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage
21   ) {
22     super(refPackage);
23   }
24
25   public String JavaDoc refMofId(
26   ) {
27     return "org:opencrx:kernel:account1:OrganizationalUnit";
28   }
29
30   public OrganizationalUnit getOrganizationalUnit(
31     Object JavaDoc object
32   ) {
33     try {
34       if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) {
35         java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
36         args.add(object);
37         OrganizationalUnit target = (OrganizationalUnit)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (OrganizationalUnit)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject(
43           object instanceof org.openmdx.compatibility.base.naming.Path
44             ? ((org.openmdx.compatibility.base.naming.Path)object).toXri()
45             : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri()
46         );
47       }
48     }
49     catch(org.openmdx.base.exception.ServiceException e) {
50         throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e);
51     }
52   }
53
54   public OrganizationalUnit createOrganizationalUnit(
55   ) {
56     OrganizationalUnit target = (OrganizationalUnit)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public OrganizationalUnit createOrganizationalUnit(
65       String JavaDoc name
66     , short organizationalUnitState
67     , short accessLevelBrowse
68     , short accessLevelDelete
69     , short accessLevelUpdate
70     , boolean disabled
71   ) {
72     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)createOrganizationalUnit();
73     _object.setName(name);
74     _object.setOrganizationalUnitState(organizationalUnitState);
75     _object.setAccessLevelBrowse(accessLevelBrowse);
76     _object.setAccessLevelDelete(accessLevelDelete);
77     _object.setAccessLevelUpdate(accessLevelUpdate);
78     _object.setDisabled(disabled);
79     return _object;
80   }
81
82 // ----------------------------------------------------------------------------
83
// ClassProxy/ImplInstanceExtenderRequiredAttributes
84
// ----------------------------------------------------------------------------
85
public OrganizationalUnit extendAbstractOrganizationalUnit(
86       org.opencrx.kernel.account1.cci.AbstractOrganizationalUnit _base
87     , short organizationalUnitState
88     , short accessLevelBrowse
89     , short accessLevelDelete
90     , short accessLevelUpdate
91     , boolean disabled
92   ) {
93     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
94     _object.setOrganizationalUnitState(organizationalUnitState);
95     _object.setAccessLevelBrowse(accessLevelBrowse);
96     _object.setAccessLevelDelete(accessLevelDelete);
97     _object.setAccessLevelUpdate(accessLevelUpdate);
98     _object.setDisabled(disabled);
99     return _object;
100   }
101
102 // ----------------------------------------------------------------------------
103
// ClassProxy/ImplInstanceExtenderRequiredAttributes
104
// ----------------------------------------------------------------------------
105
public OrganizationalUnit extendAuditee(
106       org.opencrx.kernel.base.cci.Auditee _base
107     , String JavaDoc name
108     , short organizationalUnitState
109     , short accessLevelBrowse
110     , short accessLevelDelete
111     , short accessLevelUpdate
112     , boolean disabled
113   ) {
114     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
115     _object.setName(name);
116     _object.setOrganizationalUnitState(organizationalUnitState);
117     _object.setAccessLevelBrowse(accessLevelBrowse);
118     _object.setAccessLevelDelete(accessLevelDelete);
119     _object.setAccessLevelUpdate(accessLevelUpdate);
120     _object.setDisabled(disabled);
121     return _object;
122   }
123
124 // ----------------------------------------------------------------------------
125
// ClassProxy/ImplInstanceExtenderRequiredAttributes
126
// ----------------------------------------------------------------------------
127
public OrganizationalUnit extendBookmarkable(
128       org.opencrx.kernel.base.cci.Bookmarkable _base
129     , String JavaDoc name
130     , short organizationalUnitState
131     , short accessLevelBrowse
132     , short accessLevelDelete
133     , short accessLevelUpdate
134     , boolean disabled
135   ) {
136     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
137     _object.setName(name);
138     _object.setOrganizationalUnitState(organizationalUnitState);
139     _object.setAccessLevelBrowse(accessLevelBrowse);
140     _object.setAccessLevelDelete(accessLevelDelete);
141     _object.setAccessLevelUpdate(accessLevelUpdate);
142     _object.setDisabled(disabled);
143     return _object;
144   }
145
146 // ----------------------------------------------------------------------------
147
// ClassProxy/ImplInstanceExtenderRequiredAttributes
148
// ----------------------------------------------------------------------------
149
public OrganizationalUnit extendCloneable(
150       org.opencrx.kernel.base.cci.Cloneable _base
151     , String JavaDoc name
152     , short organizationalUnitState
153     , short accessLevelBrowse
154     , short accessLevelDelete
155     , short accessLevelUpdate
156     , boolean disabled
157   ) {
158     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
159     _object.setName(name);
160     _object.setOrganizationalUnitState(organizationalUnitState);
161     _object.setAccessLevelBrowse(accessLevelBrowse);
162     _object.setAccessLevelDelete(accessLevelDelete);
163     _object.setAccessLevelUpdate(accessLevelUpdate);
164     _object.setDisabled(disabled);
165     return _object;
166   }
167
168 // ----------------------------------------------------------------------------
169
// ClassProxy/ImplInstanceExtenderRequiredAttributes
170
// ----------------------------------------------------------------------------
171
public OrganizationalUnit extendImporter(
172       org.opencrx.kernel.base.cci.Importer _base
173     , String JavaDoc name
174     , short organizationalUnitState
175     , short accessLevelBrowse
176     , short accessLevelDelete
177     , short accessLevelUpdate
178     , boolean disabled
179   ) {
180     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
181     _object.setName(name);
182     _object.setOrganizationalUnitState(organizationalUnitState);
183     _object.setAccessLevelBrowse(accessLevelBrowse);
184     _object.setAccessLevelDelete(accessLevelDelete);
185     _object.setAccessLevelUpdate(accessLevelUpdate);
186     _object.setDisabled(disabled);
187     return _object;
188   }
189
190 // ----------------------------------------------------------------------------
191
// ClassProxy/ImplInstanceExtenderRequiredAttributes
192
// ----------------------------------------------------------------------------
193
public OrganizationalUnit extendSecureObject(
194       org.opencrx.kernel.base.cci.SecureObject _base
195     , String JavaDoc name
196     , short organizationalUnitState
197     , boolean disabled
198   ) {
199     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
200     _object.setName(name);
201     _object.setOrganizationalUnitState(organizationalUnitState);
202     _object.setDisabled(disabled);
203     return _object;
204   }
205
206 // ----------------------------------------------------------------------------
207
// ClassProxy/ImplInstanceExtenderRequiredAttributes
208
// ----------------------------------------------------------------------------
209
public OrganizationalUnit extendSubscriptionTarget(
210       org.opencrx.kernel.base.cci.SubscriptionTarget _base
211     , String JavaDoc name
212     , short organizationalUnitState
213     , short accessLevelBrowse
214     , short accessLevelDelete
215     , short accessLevelUpdate
216     , boolean disabled
217   ) {
218     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
219     _object.setName(name);
220     _object.setOrganizationalUnitState(organizationalUnitState);
221     _object.setAccessLevelBrowse(accessLevelBrowse);
222     _object.setAccessLevelDelete(accessLevelDelete);
223     _object.setAccessLevelUpdate(accessLevelUpdate);
224     _object.setDisabled(disabled);
225     return _object;
226   }
227
228 // ----------------------------------------------------------------------------
229
// ClassProxy/ImplInstanceExtenderRequiredAttributes
230
// ----------------------------------------------------------------------------
231
public OrganizationalUnit extendXmlExporter(
232       org.opencrx.kernel.base.cci.XmlExporter _base
233     , String JavaDoc name
234     , short organizationalUnitState
235     , short accessLevelBrowse
236     , short accessLevelDelete
237     , short accessLevelUpdate
238     , boolean disabled
239   ) {
240     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
241     _object.setName(name);
242     _object.setOrganizationalUnitState(organizationalUnitState);
243     _object.setAccessLevelBrowse(accessLevelBrowse);
244     _object.setAccessLevelDelete(accessLevelDelete);
245     _object.setAccessLevelUpdate(accessLevelUpdate);
246     _object.setDisabled(disabled);
247     return _object;
248   }
249
250 // ----------------------------------------------------------------------------
251
// ClassProxy/ImplInstanceExtenderRequiredAttributes
252
// ----------------------------------------------------------------------------
253
public OrganizationalUnit extendCrxObject(
254       org.opencrx.kernel.generic.cci.CrxObject _base
255     , String JavaDoc name
256     , short organizationalUnitState
257   ) {
258     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
259     _object.setName(name);
260     _object.setOrganizationalUnitState(organizationalUnitState);
261     return _object;
262   }
263
264 // ----------------------------------------------------------------------------
265
// ClassProxy/ImplInstanceExtenderRequiredAttributes
266
// ----------------------------------------------------------------------------
267
public OrganizationalUnit extendBasicObject(
268       org.openmdx.base.cci.BasicObject _base
269     , String JavaDoc name
270     , short organizationalUnitState
271     , short accessLevelBrowse
272     , short accessLevelDelete
273     , short accessLevelUpdate
274     , boolean disabled
275   ) {
276     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
277     _object.setName(name);
278     _object.setOrganizationalUnitState(organizationalUnitState);
279     _object.setAccessLevelBrowse(accessLevelBrowse);
280     _object.setAccessLevelDelete(accessLevelDelete);
281     _object.setAccessLevelUpdate(accessLevelUpdate);
282     _object.setDisabled(disabled);
283     return _object;
284   }
285
286 // ----------------------------------------------------------------------------
287
// ClassProxy/ImplInstanceExtenderRequiredAttributes
288
// ----------------------------------------------------------------------------
289
public OrganizationalUnit extendContextCapable(
290       org.openmdx.base.cci.ContextCapable _base
291     , String JavaDoc name
292     , short organizationalUnitState
293     , short accessLevelBrowse
294     , short accessLevelDelete
295     , short accessLevelUpdate
296     , boolean disabled
297   ) {
298     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
299     _object.setName(name);
300     _object.setOrganizationalUnitState(organizationalUnitState);
301     _object.setAccessLevelBrowse(accessLevelBrowse);
302     _object.setAccessLevelDelete(accessLevelDelete);
303     _object.setAccessLevelUpdate(accessLevelUpdate);
304     _object.setDisabled(disabled);
305     return _object;
306   }
307
308 // ----------------------------------------------------------------------------
309
// ClassProxy/ImplInstanceExtenderRequiredAttributes
310
// ----------------------------------------------------------------------------
311
public OrganizationalUnit extendExtentCapable(
312       org.openmdx.base.cci.ExtentCapable _base
313     , String JavaDoc name
314     , short organizationalUnitState
315     , short accessLevelBrowse
316     , short accessLevelDelete
317     , short accessLevelUpdate
318     , boolean disabled
319   ) {
320     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
321     _object.setName(name);
322     _object.setOrganizationalUnitState(organizationalUnitState);
323     _object.setAccessLevelBrowse(accessLevelBrowse);
324     _object.setAccessLevelDelete(accessLevelDelete);
325     _object.setAccessLevelUpdate(accessLevelUpdate);
326     _object.setDisabled(disabled);
327     return _object;
328   }
329
330 // ----------------------------------------------------------------------------
331
// ClassProxy/ImplInstanceExtenderRequiredAttributes
332
// ----------------------------------------------------------------------------
333
public OrganizationalUnit extendViewCapable(
334       org.openmdx.compatibility.view1.cci.ViewCapable _base
335     , String JavaDoc name
336     , short organizationalUnitState
337     , short accessLevelBrowse
338     , short accessLevelDelete
339     , short accessLevelUpdate
340     , boolean disabled
341   ) {
342     OrganizationalUnitImpl _object = (OrganizationalUnitImpl)getOrganizationalUnit(_base);
343     _object.setName(name);
344     _object.setOrganizationalUnitState(organizationalUnitState);
345     _object.setAccessLevelBrowse(accessLevelBrowse);
346     _object.setAccessLevelDelete(accessLevelDelete);
347     _object.setAccessLevelUpdate(accessLevelUpdate);
348     _object.setDisabled(disabled);
349     return _object;
350   }
351
352 // ----------------------------------------------------------------------------
353
// ClassProxy/ImplEnd.vm
354
// ----------------------------------------------------------------------------
355
}
356
Popular Tags