1 package org.opencrx.kernel.document1.cci; 14 15 public class ResourceIdentifierClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements ResourceIdentifierClass { 18 19 public ResourceIdentifierClassImpl( 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:document1:ResourceIdentifier"; 28 } 29 30 public ResourceIdentifier getResourceIdentifier( 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 ResourceIdentifier target = (ResourceIdentifier)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (ResourceIdentifier)((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 ResourceIdentifier createResourceIdentifier( 55 ) { 56 ResourceIdentifier target = (ResourceIdentifier)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public ResourceIdentifier createResourceIdentifier( 65 short accessLevelBrowse 66 , short accessLevelDelete 67 , short accessLevelUpdate 68 , String uri 69 ) { 70 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)createResourceIdentifier(); 71 _object.setAccessLevelBrowse(accessLevelBrowse); 72 _object.setAccessLevelDelete(accessLevelDelete); 73 _object.setAccessLevelUpdate(accessLevelUpdate); 74 _object.setUri(uri); 75 return _object; 76 } 77 78 public ResourceIdentifier extendAuditee( 82 org.opencrx.kernel.base.cci.Auditee _base 83 , short accessLevelBrowse 84 , short accessLevelDelete 85 , short accessLevelUpdate 86 , String uri 87 ) { 88 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 89 _object.setAccessLevelBrowse(accessLevelBrowse); 90 _object.setAccessLevelDelete(accessLevelDelete); 91 _object.setAccessLevelUpdate(accessLevelUpdate); 92 _object.setUri(uri); 93 return _object; 94 } 95 96 public ResourceIdentifier extendSecureObject( 100 org.opencrx.kernel.base.cci.SecureObject _base 101 , String uri 102 ) { 103 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 104 _object.setUri(uri); 105 return _object; 106 } 107 108 public ResourceIdentifier extendDocumentRevision( 112 org.opencrx.kernel.document1.cci.DocumentRevision _base 113 , String uri 114 ) { 115 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 116 _object.setUri(uri); 117 return _object; 118 } 119 120 public ResourceIdentifier extendBasicObject( 124 org.openmdx.base.cci.BasicObject _base 125 , short accessLevelBrowse 126 , short accessLevelDelete 127 , short accessLevelUpdate 128 , String uri 129 ) { 130 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 131 _object.setAccessLevelBrowse(accessLevelBrowse); 132 _object.setAccessLevelDelete(accessLevelDelete); 133 _object.setAccessLevelUpdate(accessLevelUpdate); 134 _object.setUri(uri); 135 return _object; 136 } 137 138 public ResourceIdentifier extendContextCapable( 142 org.openmdx.base.cci.ContextCapable _base 143 , short accessLevelBrowse 144 , short accessLevelDelete 145 , short accessLevelUpdate 146 , String uri 147 ) { 148 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 149 _object.setAccessLevelBrowse(accessLevelBrowse); 150 _object.setAccessLevelDelete(accessLevelDelete); 151 _object.setAccessLevelUpdate(accessLevelUpdate); 152 _object.setUri(uri); 153 return _object; 154 } 155 156 public ResourceIdentifier extendExtentCapable( 160 org.openmdx.base.cci.ExtentCapable _base 161 , short accessLevelBrowse 162 , short accessLevelDelete 163 , short accessLevelUpdate 164 , String uri 165 ) { 166 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 167 _object.setAccessLevelBrowse(accessLevelBrowse); 168 _object.setAccessLevelDelete(accessLevelDelete); 169 _object.setAccessLevelUpdate(accessLevelUpdate); 170 _object.setUri(uri); 171 return _object; 172 } 173 174 public ResourceIdentifier extendViewCapable( 178 org.openmdx.compatibility.view1.cci.ViewCapable _base 179 , short accessLevelBrowse 180 , short accessLevelDelete 181 , short accessLevelUpdate 182 , String uri 183 ) { 184 ResourceIdentifierImpl _object = (ResourceIdentifierImpl)getResourceIdentifier(_base); 185 _object.setAccessLevelBrowse(accessLevelBrowse); 186 _object.setAccessLevelDelete(accessLevelDelete); 187 _object.setAccessLevelUpdate(accessLevelUpdate); 188 _object.setUri(uri); 189 return _object; 190 } 191 192 } 196 | Popular Tags |