1 package org.opencrx.kernel.activity1.cci; 14 15 public class WorkReportEntryClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements WorkReportEntryClass { 18 19 public WorkReportEntryClassImpl( 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:WorkReportEntry"; 28 } 29 30 public WorkReportEntry getWorkReportEntry( 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 WorkReportEntry target = (WorkReportEntry)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (WorkReportEntry)((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 WorkReportEntry createWorkReportEntry( 55 ) { 56 WorkReportEntry target = (WorkReportEntry)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public WorkReportEntry createWorkReportEntry( 65 String activityNumber 66 , short billingCurrency 67 , short durationHours 68 , short durationMinutes 69 , java.util.Date endedAt 70 , String name 71 , java.util.Date startedAt 72 , short accessLevelBrowse 73 , short accessLevelDelete 74 , short accessLevelUpdate 75 ) { 76 WorkReportEntryImpl _object = (WorkReportEntryImpl)createWorkReportEntry(); 77 _object.setActivityNumber(activityNumber); 78 _object.setBillingCurrency(billingCurrency); 79 _object.setDurationHours(durationHours); 80 _object.setDurationMinutes(durationMinutes); 81 _object.setEndedAt(endedAt); 82 _object.setName(name); 83 _object.setStartedAt(startedAt); 84 _object.setAccessLevelBrowse(accessLevelBrowse); 85 _object.setAccessLevelDelete(accessLevelDelete); 86 _object.setAccessLevelUpdate(accessLevelUpdate); 87 return _object; 88 } 89 90 public WorkReportEntry extendSecureObject( 94 org.opencrx.kernel.base.cci.SecureObject _base 95 , String activityNumber 96 , short billingCurrency 97 , short durationHours 98 , short durationMinutes 99 , java.util.Date endedAt 100 , String name 101 , java.util.Date startedAt 102 ) { 103 WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base); 104 _object.setActivityNumber(activityNumber); 105 _object.setBillingCurrency(billingCurrency); 106 _object.setDurationHours(durationHours); 107 _object.setDurationMinutes(durationMinutes); 108 _object.setEndedAt(endedAt); 109 _object.setName(name); 110 _object.setStartedAt(startedAt); 111 return _object; 112 } 113 114 public WorkReportEntry extendBasicObject( 118 org.openmdx.base.cci.BasicObject _base 119 , String activityNumber 120 , short billingCurrency 121 , short durationHours 122 , short durationMinutes 123 , java.util.Date endedAt 124 , String name 125 , java.util.Date startedAt 126 , short accessLevelBrowse 127 , short accessLevelDelete 128 , short accessLevelUpdate 129 ) { 130 WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base); 131 _object.setActivityNumber(activityNumber); 132 _object.setBillingCurrency(billingCurrency); 133 _object.setDurationHours(durationHours); 134 _object.setDurationMinutes(durationMinutes); 135 _object.setEndedAt(endedAt); 136 _object.setName(name); 137 _object.setStartedAt(startedAt); 138 _object.setAccessLevelBrowse(accessLevelBrowse); 139 _object.setAccessLevelDelete(accessLevelDelete); 140 _object.setAccessLevelUpdate(accessLevelUpdate); 141 return _object; 142 } 143 144 public WorkReportEntry extendContextCapable( 148 org.openmdx.base.cci.ContextCapable _base 149 , String activityNumber 150 , short billingCurrency 151 , short durationHours 152 , short durationMinutes 153 , java.util.Date endedAt 154 , String name 155 , java.util.Date startedAt 156 , short accessLevelBrowse 157 , short accessLevelDelete 158 , short accessLevelUpdate 159 ) { 160 WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base); 161 _object.setActivityNumber(activityNumber); 162 _object.setBillingCurrency(billingCurrency); 163 _object.setDurationHours(durationHours); 164 _object.setDurationMinutes(durationMinutes); 165 _object.setEndedAt(endedAt); 166 _object.setName(name); 167 _object.setStartedAt(startedAt); 168 _object.setAccessLevelBrowse(accessLevelBrowse); 169 _object.setAccessLevelDelete(accessLevelDelete); 170 _object.setAccessLevelUpdate(accessLevelUpdate); 171 return _object; 172 } 173 174 public WorkReportEntry extendExtentCapable( 178 org.openmdx.base.cci.ExtentCapable _base 179 , String activityNumber 180 , short billingCurrency 181 , short durationHours 182 , short durationMinutes 183 , java.util.Date endedAt 184 , String name 185 , java.util.Date startedAt 186 , short accessLevelBrowse 187 , short accessLevelDelete 188 , short accessLevelUpdate 189 ) { 190 WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base); 191 _object.setActivityNumber(activityNumber); 192 _object.setBillingCurrency(billingCurrency); 193 _object.setDurationHours(durationHours); 194 _object.setDurationMinutes(durationMinutes); 195 _object.setEndedAt(endedAt); 196 _object.setName(name); 197 _object.setStartedAt(startedAt); 198 _object.setAccessLevelBrowse(accessLevelBrowse); 199 _object.setAccessLevelDelete(accessLevelDelete); 200 _object.setAccessLevelUpdate(accessLevelUpdate); 201 return _object; 202 } 203 204 public WorkReportEntry extendViewCapable( 208 org.openmdx.compatibility.view1.cci.ViewCapable _base 209 , String activityNumber 210 , short billingCurrency 211 , short durationHours 212 , short durationMinutes 213 , java.util.Date endedAt 214 , String name 215 , java.util.Date startedAt 216 , short accessLevelBrowse 217 , short accessLevelDelete 218 , short accessLevelUpdate 219 ) { 220 WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base); 221 _object.setActivityNumber(activityNumber); 222 _object.setBillingCurrency(billingCurrency); 223 _object.setDurationHours(durationHours); 224 _object.setDurationMinutes(durationMinutes); 225 _object.setEndedAt(endedAt); 226 _object.setName(name); 227 _object.setStartedAt(startedAt); 228 _object.setAccessLevelBrowse(accessLevelBrowse); 229 _object.setAccessLevelDelete(accessLevelDelete); 230 _object.setAccessLevelUpdate(accessLevelUpdate); 231 return _object; 232 } 233 234 } 238 | Popular Tags |