KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > activity1 > cci > ResourceAssignmentClassImpl


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