1 package org.opencrx.kernel.activity1.cci; 14 15 public class ActivityWorkRecordClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements ActivityWorkRecordClass { 18 19 public ActivityWorkRecordClassImpl( 20 org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage 21 ) { 22 super(refPackage); 23 } 24 25 public String refMofId( 26 ) { 27 return "org:opencrx:kernel:activity1:ActivityWorkRecord"; 28 } 29 30 public ActivityWorkRecord getActivityWorkRecord( 31 Object object 32 ) { 33 try { 34 if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) { 35 java.util.List args = new java.util.ArrayList (); 36 args.add(object); 37 ActivityWorkRecord target = (ActivityWorkRecord)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (ActivityWorkRecord)((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 ActivityWorkRecord createActivityWorkRecord( 55 ) { 56 ActivityWorkRecord target = (ActivityWorkRecord)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public ActivityWorkRecord createActivityWorkRecord( 65 short billingCurrency 66 , short durationCalculationMode 67 , int durationHours 68 , int durationMinutes 69 , boolean isBillable 70 , String name 71 , short rateType 72 , short accessLevelBrowse 73 , short accessLevelDelete 74 , short accessLevelUpdate 75 ) { 76 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)createActivityWorkRecord(); 77 _object.setBillingCurrency(billingCurrency); 78 _object.setDurationCalculationMode(durationCalculationMode); 79 _object.setDurationHours(durationHours); 80 _object.setDurationMinutes(durationMinutes); 81 _object.setBillable(isBillable); 82 _object.setName(name); 83 _object.setRateType(rateType); 84 _object.setAccessLevelBrowse(accessLevelBrowse); 85 _object.setAccessLevelDelete(accessLevelDelete); 86 _object.setAccessLevelUpdate(accessLevelUpdate); 87 return _object; 88 } 89 90 public ActivityWorkRecord extendAbstractWorkRecord( 94 org.opencrx.kernel.activity1.cci.AbstractWorkRecord _base 95 , short accessLevelBrowse 96 , short accessLevelDelete 97 , short accessLevelUpdate 98 ) { 99 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 100 _object.setAccessLevelBrowse(accessLevelBrowse); 101 _object.setAccessLevelDelete(accessLevelDelete); 102 _object.setAccessLevelUpdate(accessLevelUpdate); 103 return _object; 104 } 105 106 public ActivityWorkRecord extendAssignable( 110 org.opencrx.kernel.base.cci.Assignable _base 111 , short billingCurrency 112 , short durationCalculationMode 113 , int durationHours 114 , int durationMinutes 115 , boolean isBillable 116 , String name 117 , short rateType 118 , short accessLevelBrowse 119 , short accessLevelDelete 120 , short accessLevelUpdate 121 ) { 122 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 123 _object.setBillingCurrency(billingCurrency); 124 _object.setDurationCalculationMode(durationCalculationMode); 125 _object.setDurationHours(durationHours); 126 _object.setDurationMinutes(durationMinutes); 127 _object.setBillable(isBillable); 128 _object.setName(name); 129 _object.setRateType(rateType); 130 _object.setAccessLevelBrowse(accessLevelBrowse); 131 _object.setAccessLevelDelete(accessLevelDelete); 132 _object.setAccessLevelUpdate(accessLevelUpdate); 133 return _object; 134 } 135 136 public ActivityWorkRecord extendSecureObject( 140 org.opencrx.kernel.base.cci.SecureObject _base 141 , short billingCurrency 142 , short durationCalculationMode 143 , int durationHours 144 , int durationMinutes 145 , boolean isBillable 146 , String name 147 , short rateType 148 ) { 149 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 150 _object.setBillingCurrency(billingCurrency); 151 _object.setDurationCalculationMode(durationCalculationMode); 152 _object.setDurationHours(durationHours); 153 _object.setDurationMinutes(durationMinutes); 154 _object.setBillable(isBillable); 155 _object.setName(name); 156 _object.setRateType(rateType); 157 return _object; 158 } 159 160 public ActivityWorkRecord extendBookingOrigin( 164 org.opencrx.kernel.depot1.cci.BookingOrigin _base 165 , short billingCurrency 166 , short durationCalculationMode 167 , int durationHours 168 , int durationMinutes 169 , boolean isBillable 170 , String name 171 , short rateType 172 , short accessLevelBrowse 173 , short accessLevelDelete 174 , short accessLevelUpdate 175 ) { 176 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 177 _object.setBillingCurrency(billingCurrency); 178 _object.setDurationCalculationMode(durationCalculationMode); 179 _object.setDurationHours(durationHours); 180 _object.setDurationMinutes(durationMinutes); 181 _object.setBillable(isBillable); 182 _object.setName(name); 183 _object.setRateType(rateType); 184 _object.setAccessLevelBrowse(accessLevelBrowse); 185 _object.setAccessLevelDelete(accessLevelDelete); 186 _object.setAccessLevelUpdate(accessLevelUpdate); 187 return _object; 188 } 189 190 public ActivityWorkRecord extendBasicObject( 194 org.openmdx.base.cci.BasicObject _base 195 , short billingCurrency 196 , short durationCalculationMode 197 , int durationHours 198 , int durationMinutes 199 , boolean isBillable 200 , String name 201 , short rateType 202 , short accessLevelBrowse 203 , short accessLevelDelete 204 , short accessLevelUpdate 205 ) { 206 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 207 _object.setBillingCurrency(billingCurrency); 208 _object.setDurationCalculationMode(durationCalculationMode); 209 _object.setDurationHours(durationHours); 210 _object.setDurationMinutes(durationMinutes); 211 _object.setBillable(isBillable); 212 _object.setName(name); 213 _object.setRateType(rateType); 214 _object.setAccessLevelBrowse(accessLevelBrowse); 215 _object.setAccessLevelDelete(accessLevelDelete); 216 _object.setAccessLevelUpdate(accessLevelUpdate); 217 return _object; 218 } 219 220 public ActivityWorkRecord extendContextCapable( 224 org.openmdx.base.cci.ContextCapable _base 225 , short billingCurrency 226 , short durationCalculationMode 227 , int durationHours 228 , int durationMinutes 229 , boolean isBillable 230 , String name 231 , short rateType 232 , short accessLevelBrowse 233 , short accessLevelDelete 234 , short accessLevelUpdate 235 ) { 236 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 237 _object.setBillingCurrency(billingCurrency); 238 _object.setDurationCalculationMode(durationCalculationMode); 239 _object.setDurationHours(durationHours); 240 _object.setDurationMinutes(durationMinutes); 241 _object.setBillable(isBillable); 242 _object.setName(name); 243 _object.setRateType(rateType); 244 _object.setAccessLevelBrowse(accessLevelBrowse); 245 _object.setAccessLevelDelete(accessLevelDelete); 246 _object.setAccessLevelUpdate(accessLevelUpdate); 247 return _object; 248 } 249 250 public ActivityWorkRecord extendExtentCapable( 254 org.openmdx.base.cci.ExtentCapable _base 255 , short billingCurrency 256 , short durationCalculationMode 257 , int durationHours 258 , int durationMinutes 259 , boolean isBillable 260 , String name 261 , short rateType 262 , short accessLevelBrowse 263 , short accessLevelDelete 264 , short accessLevelUpdate 265 ) { 266 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 267 _object.setBillingCurrency(billingCurrency); 268 _object.setDurationCalculationMode(durationCalculationMode); 269 _object.setDurationHours(durationHours); 270 _object.setDurationMinutes(durationMinutes); 271 _object.setBillable(isBillable); 272 _object.setName(name); 273 _object.setRateType(rateType); 274 _object.setAccessLevelBrowse(accessLevelBrowse); 275 _object.setAccessLevelDelete(accessLevelDelete); 276 _object.setAccessLevelUpdate(accessLevelUpdate); 277 return _object; 278 } 279 280 public ActivityWorkRecord extendViewCapable( 284 org.openmdx.compatibility.view1.cci.ViewCapable _base 285 , short billingCurrency 286 , short durationCalculationMode 287 , int durationHours 288 , int durationMinutes 289 , boolean isBillable 290 , String name 291 , short rateType 292 , short accessLevelBrowse 293 , short accessLevelDelete 294 , short accessLevelUpdate 295 ) { 296 ActivityWorkRecordImpl _object = (ActivityWorkRecordImpl)getActivityWorkRecord(_base); 297 _object.setBillingCurrency(billingCurrency); 298 _object.setDurationCalculationMode(durationCalculationMode); 299 _object.setDurationHours(durationHours); 300 _object.setDurationMinutes(durationMinutes); 301 _object.setBillable(isBillable); 302 _object.setName(name); 303 _object.setRateType(rateType); 304 _object.setAccessLevelBrowse(accessLevelBrowse); 305 _object.setAccessLevelDelete(accessLevelDelete); 306 _object.setAccessLevelUpdate(accessLevelUpdate); 307 return _object; 308 } 309 310 } 314 | Popular Tags |