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