1 package org.opencrx.kernel.activity1.cci; 14 15 public class ActivityVoteClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements ActivityVoteClass { 18 19 public ActivityVoteClassImpl( 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:ActivityVote"; 28 } 29 30 public ActivityVote getActivityVote( 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 ActivityVote target = (ActivityVote)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (ActivityVote)((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 ActivityVote createActivityVote( 55 ) { 56 ActivityVote target = (ActivityVote)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public ActivityVote createActivityVote( 65 String name 66 , short accessLevelBrowse 67 , short accessLevelDelete 68 , short accessLevelUpdate 69 ) { 70 ActivityVoteImpl _object = (ActivityVoteImpl)createActivityVote(); 71 _object.setName(name); 72 _object.setAccessLevelBrowse(accessLevelBrowse); 73 _object.setAccessLevelDelete(accessLevelDelete); 74 _object.setAccessLevelUpdate(accessLevelUpdate); 75 return _object; 76 } 77 78 public ActivityVote extendAbstractVote( 82 org.opencrx.kernel.activity1.cci.AbstractVote _base 83 , short accessLevelBrowse 84 , short accessLevelDelete 85 , short accessLevelUpdate 86 ) { 87 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 88 _object.setAccessLevelBrowse(accessLevelBrowse); 89 _object.setAccessLevelDelete(accessLevelDelete); 90 _object.setAccessLevelUpdate(accessLevelUpdate); 91 return _object; 92 } 93 94 public ActivityVote extendAssignable( 98 org.opencrx.kernel.base.cci.Assignable _base 99 , String name 100 , short accessLevelBrowse 101 , short accessLevelDelete 102 , short accessLevelUpdate 103 ) { 104 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 105 _object.setName(name); 106 _object.setAccessLevelBrowse(accessLevelBrowse); 107 _object.setAccessLevelDelete(accessLevelDelete); 108 _object.setAccessLevelUpdate(accessLevelUpdate); 109 return _object; 110 } 111 112 public ActivityVote extendSecureObject( 116 org.opencrx.kernel.base.cci.SecureObject _base 117 , String name 118 ) { 119 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 120 _object.setName(name); 121 return _object; 122 } 123 124 public ActivityVote extendBasicObject( 128 org.openmdx.base.cci.BasicObject _base 129 , String name 130 , short accessLevelBrowse 131 , short accessLevelDelete 132 , short accessLevelUpdate 133 ) { 134 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 135 _object.setName(name); 136 _object.setAccessLevelBrowse(accessLevelBrowse); 137 _object.setAccessLevelDelete(accessLevelDelete); 138 _object.setAccessLevelUpdate(accessLevelUpdate); 139 return _object; 140 } 141 142 public ActivityVote extendContextCapable( 146 org.openmdx.base.cci.ContextCapable _base 147 , String name 148 , short accessLevelBrowse 149 , short accessLevelDelete 150 , short accessLevelUpdate 151 ) { 152 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 153 _object.setName(name); 154 _object.setAccessLevelBrowse(accessLevelBrowse); 155 _object.setAccessLevelDelete(accessLevelDelete); 156 _object.setAccessLevelUpdate(accessLevelUpdate); 157 return _object; 158 } 159 160 public ActivityVote extendExtentCapable( 164 org.openmdx.base.cci.ExtentCapable _base 165 , String name 166 , short accessLevelBrowse 167 , short accessLevelDelete 168 , short accessLevelUpdate 169 ) { 170 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 171 _object.setName(name); 172 _object.setAccessLevelBrowse(accessLevelBrowse); 173 _object.setAccessLevelDelete(accessLevelDelete); 174 _object.setAccessLevelUpdate(accessLevelUpdate); 175 return _object; 176 } 177 178 public ActivityVote extendViewCapable( 182 org.openmdx.compatibility.view1.cci.ViewCapable _base 183 , String name 184 , short accessLevelBrowse 185 , short accessLevelDelete 186 , short accessLevelUpdate 187 ) { 188 ActivityVoteImpl _object = (ActivityVoteImpl)getActivityVote(_base); 189 _object.setName(name); 190 _object.setAccessLevelBrowse(accessLevelBrowse); 191 _object.setAccessLevelDelete(accessLevelDelete); 192 _object.setAccessLevelUpdate(accessLevelUpdate); 193 return _object; 194 } 195 196 } 200 | Popular Tags |