1 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 refMofId( 26 ) { 27 return "org:opencrx:kernel:activity1:ResourceAssignment"; 28 } 29 30 public ResourceAssignment getResourceAssignment( 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 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 public ResourceAssignment createResourceAssignment( 65 String 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 public ResourceAssignment extendSecureObject( 84 org.opencrx.kernel.base.cci.SecureObject _base 85 , String 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 public ResourceAssignment extendBasicObject( 98 org.openmdx.base.cci.BasicObject _base 99 , String 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 public ResourceAssignment extendContextCapable( 118 org.openmdx.base.cci.ContextCapable _base 119 , String 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 public ResourceAssignment extendExtentCapable( 138 org.openmdx.base.cci.ExtentCapable _base 139 , String 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 public ResourceAssignment extendViewCapable( 158 org.openmdx.compatibility.view1.cci.ViewCapable _base 159 , String 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 } 178 | Popular Tags |