1 package org.opencrx.kernel.home1.cci; 14 15 public class AlertClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements AlertClass { 18 19 public AlertClassImpl( 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:home1:Alert"; 28 } 29 30 public Alert getAlert( 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 Alert target = (Alert)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (Alert)((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 Alert createAlert( 55 ) { 56 Alert target = (Alert)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public Alert createAlert( 65 short accessLevelBrowse 66 , short accessLevelDelete 67 , short accessLevelUpdate 68 , short alertState 69 , short importance 70 , String name 71 ) { 72 AlertImpl _object = (AlertImpl)createAlert(); 73 _object.setAccessLevelBrowse(accessLevelBrowse); 74 _object.setAccessLevelDelete(accessLevelDelete); 75 _object.setAccessLevelUpdate(accessLevelUpdate); 76 _object.setAlertState(alertState); 77 _object.setImportance(importance); 78 _object.setName(name); 79 return _object; 80 } 81 82 public Alert extendSecureObject( 86 org.opencrx.kernel.base.cci.SecureObject _base 87 , short alertState 88 , short importance 89 , String name 90 ) { 91 AlertImpl _object = (AlertImpl)getAlert(_base); 92 _object.setAlertState(alertState); 93 _object.setImportance(importance); 94 _object.setName(name); 95 return _object; 96 } 97 98 public Alert extendWorkflowTarget( 102 org.opencrx.kernel.base.cci.WorkflowTarget _base 103 , short accessLevelBrowse 104 , short accessLevelDelete 105 , short accessLevelUpdate 106 , short alertState 107 , short importance 108 , String name 109 ) { 110 AlertImpl _object = (AlertImpl)getAlert(_base); 111 _object.setAccessLevelBrowse(accessLevelBrowse); 112 _object.setAccessLevelDelete(accessLevelDelete); 113 _object.setAccessLevelUpdate(accessLevelUpdate); 114 _object.setAlertState(alertState); 115 _object.setImportance(importance); 116 _object.setName(name); 117 return _object; 118 } 119 120 public Alert extendBasicObject( 124 org.openmdx.base.cci.BasicObject _base 125 , short accessLevelBrowse 126 , short accessLevelDelete 127 , short accessLevelUpdate 128 , short alertState 129 , short importance 130 , String name 131 ) { 132 AlertImpl _object = (AlertImpl)getAlert(_base); 133 _object.setAccessLevelBrowse(accessLevelBrowse); 134 _object.setAccessLevelDelete(accessLevelDelete); 135 _object.setAccessLevelUpdate(accessLevelUpdate); 136 _object.setAlertState(alertState); 137 _object.setImportance(importance); 138 _object.setName(name); 139 return _object; 140 } 141 142 public Alert extendContextCapable( 146 org.openmdx.base.cci.ContextCapable _base 147 , short accessLevelBrowse 148 , short accessLevelDelete 149 , short accessLevelUpdate 150 , short alertState 151 , short importance 152 , String name 153 ) { 154 AlertImpl _object = (AlertImpl)getAlert(_base); 155 _object.setAccessLevelBrowse(accessLevelBrowse); 156 _object.setAccessLevelDelete(accessLevelDelete); 157 _object.setAccessLevelUpdate(accessLevelUpdate); 158 _object.setAlertState(alertState); 159 _object.setImportance(importance); 160 _object.setName(name); 161 return _object; 162 } 163 164 public Alert extendExtentCapable( 168 org.openmdx.base.cci.ExtentCapable _base 169 , short accessLevelBrowse 170 , short accessLevelDelete 171 , short accessLevelUpdate 172 , short alertState 173 , short importance 174 , String name 175 ) { 176 AlertImpl _object = (AlertImpl)getAlert(_base); 177 _object.setAccessLevelBrowse(accessLevelBrowse); 178 _object.setAccessLevelDelete(accessLevelDelete); 179 _object.setAccessLevelUpdate(accessLevelUpdate); 180 _object.setAlertState(alertState); 181 _object.setImportance(importance); 182 _object.setName(name); 183 return _object; 184 } 185 186 public Alert extendViewCapable( 190 org.openmdx.compatibility.view1.cci.ViewCapable _base 191 , short accessLevelBrowse 192 , short accessLevelDelete 193 , short accessLevelUpdate 194 , short alertState 195 , short importance 196 , String name 197 ) { 198 AlertImpl _object = (AlertImpl)getAlert(_base); 199 _object.setAccessLevelBrowse(accessLevelBrowse); 200 _object.setAccessLevelDelete(accessLevelDelete); 201 _object.setAccessLevelUpdate(accessLevelUpdate); 202 _object.setAlertState(alertState); 203 _object.setImportance(importance); 204 _object.setName(name); 205 return _object; 206 } 207 208 } 212 | Popular Tags |