KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > home1 > cci > SubscriptionClassImpl


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:58 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.home1.cci;
14
15 public class SubscriptionClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements SubscriptionClass {
18
19   public SubscriptionClassImpl(
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:home1:Subscription";
28   }
29
30   public Subscription getSubscription(
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         Subscription target = (Subscription)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Subscription)((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 Subscription createSubscription(
55   ) {
56     Subscription target = (Subscription)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Subscription createSubscription(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68     , boolean isActive
69     , String JavaDoc name
70   ) {
71     SubscriptionImpl _object = (SubscriptionImpl)createSubscription();
72     _object.setAccessLevelBrowse(accessLevelBrowse);
73     _object.setAccessLevelDelete(accessLevelDelete);
74     _object.setAccessLevelUpdate(accessLevelUpdate);
75     _object.setActive(isActive);
76     _object.setName(name);
77     return _object;
78   }
79
80 // ----------------------------------------------------------------------------
81
// ClassProxy/ImplInstanceExtenderRequiredAttributes
82
// ----------------------------------------------------------------------------
83
public Subscription extendSecureObject(
84       org.opencrx.kernel.base.cci.SecureObject _base
85     , boolean isActive
86     , String JavaDoc name
87   ) {
88     SubscriptionImpl _object = (SubscriptionImpl)getSubscription(_base);
89     _object.setActive(isActive);
90     _object.setName(name);
91     return _object;
92   }
93
94 // ----------------------------------------------------------------------------
95
// ClassProxy/ImplInstanceExtenderRequiredAttributes
96
// ----------------------------------------------------------------------------
97
public Subscription extendSubscription(
98       org.opencrx.kernel.base.cci.Subscription _base
99     , short accessLevelBrowse
100     , short accessLevelDelete
101     , short accessLevelUpdate
102     , boolean isActive
103     , String JavaDoc name
104   ) {
105     SubscriptionImpl _object = (SubscriptionImpl)getSubscription(_base);
106     _object.setAccessLevelBrowse(accessLevelBrowse);
107     _object.setAccessLevelDelete(accessLevelDelete);
108     _object.setAccessLevelUpdate(accessLevelUpdate);
109     _object.setActive(isActive);
110     _object.setName(name);
111     return _object;
112   }
113
114 // ----------------------------------------------------------------------------
115
// ClassProxy/ImplInstanceExtenderRequiredAttributes
116
// ----------------------------------------------------------------------------
117
public Subscription extendBasicObject(
118       org.openmdx.base.cci.BasicObject _base
119     , short accessLevelBrowse
120     , short accessLevelDelete
121     , short accessLevelUpdate
122     , boolean isActive
123     , String JavaDoc name
124   ) {
125     SubscriptionImpl _object = (SubscriptionImpl)getSubscription(_base);
126     _object.setAccessLevelBrowse(accessLevelBrowse);
127     _object.setAccessLevelDelete(accessLevelDelete);
128     _object.setAccessLevelUpdate(accessLevelUpdate);
129     _object.setActive(isActive);
130     _object.setName(name);
131     return _object;
132   }
133
134 // ----------------------------------------------------------------------------
135
// ClassProxy/ImplInstanceExtenderRequiredAttributes
136
// ----------------------------------------------------------------------------
137
public Subscription extendContextCapable(
138       org.openmdx.base.cci.ContextCapable _base
139     , short accessLevelBrowse
140     , short accessLevelDelete
141     , short accessLevelUpdate
142     , boolean isActive
143     , String JavaDoc name
144   ) {
145     SubscriptionImpl _object = (SubscriptionImpl)getSubscription(_base);
146     _object.setAccessLevelBrowse(accessLevelBrowse);
147     _object.setAccessLevelDelete(accessLevelDelete);
148     _object.setAccessLevelUpdate(accessLevelUpdate);
149     _object.setActive(isActive);
150     _object.setName(name);
151     return _object;
152   }
153
154 // ----------------------------------------------------------------------------
155
// ClassProxy/ImplInstanceExtenderRequiredAttributes
156
// ----------------------------------------------------------------------------
157
public Subscription extendExtentCapable(
158       org.openmdx.base.cci.ExtentCapable _base
159     , short accessLevelBrowse
160     , short accessLevelDelete
161     , short accessLevelUpdate
162     , boolean isActive
163     , String JavaDoc name
164   ) {
165     SubscriptionImpl _object = (SubscriptionImpl)getSubscription(_base);
166     _object.setAccessLevelBrowse(accessLevelBrowse);
167     _object.setAccessLevelDelete(accessLevelDelete);
168     _object.setAccessLevelUpdate(accessLevelUpdate);
169     _object.setActive(isActive);
170     _object.setName(name);
171     return _object;
172   }
173
174 // ----------------------------------------------------------------------------
175
// ClassProxy/ImplInstanceExtenderRequiredAttributes
176
// ----------------------------------------------------------------------------
177
public Subscription extendViewCapable(
178       org.openmdx.compatibility.view1.cci.ViewCapable _base
179     , short accessLevelBrowse
180     , short accessLevelDelete
181     , short accessLevelUpdate
182     , boolean isActive
183     , String JavaDoc name
184   ) {
185     SubscriptionImpl _object = (SubscriptionImpl)getSubscription(_base);
186     _object.setAccessLevelBrowse(accessLevelBrowse);
187     _object.setAccessLevelDelete(accessLevelDelete);
188     _object.setAccessLevelUpdate(accessLevelUpdate);
189     _object.setActive(isActive);
190     _object.setName(name);
191     return _object;
192   }
193
194 // ----------------------------------------------------------------------------
195
// ClassProxy/ImplEnd.vm
196
// ----------------------------------------------------------------------------
197
}
198
Popular Tags