Linking OLSC resources within DNG
![]() I've stood up an OSLC Bugzilla server and successfully connected DNG to it as an Outbound Friend in both the server administration area and the project administration area. Now I cannot figure out what I need to do to create a link from the DNG artifact to the Bugzilla server.
|
5 answers
![]() Implementors of OSLC ServiceProviders may be able to satisfy DNG by claiming to @Produce( OslcMediaType.APPLICATION_RDF_XML) but then in the Response builder setting the entity type to MediaType.APPLICATION_XML.
This would allow them to support DNG's needs without having to alter the library version of AbstractOslcRdfXmlProvider.
Comments Could you pls explain how to alter the Response builder? Thanks If you are implementing your own Service controller and so can code the @Produces annotation on the REST method, you can also code the MediaType which the Response builder actually sends back. // TODO: See https://jazz.net/jazz03/web/projects/Requirements%20Management#action=com.ibm.team.workitem.viewWorkItem&id=115412 // Jazz DNG prior to 6.0.5 requests but cannot accept rdf+xml, can only process application/xml return Optional.ofNullable( acceptType ) .filter( at -> at.contains( "application/x-oslc-cm-service-description+xml" ) ) .map( at -> responseBuilder.type( MediaType.APPLICATION_XML ) ) .orElse( responseBuilder ) .build(); |
![]() With Jim and Gabriel's help in this thread I finally got it working. The part about adding the Bugzilla provider to a DNG "Projet Area" as a "Friend (Outbound)" I knew already.
o.e.l.o.p.j.AbstractOslcRdfXmlProviderand forcing it to return application/xml would allow DNG to find and use the Delegated Ui's. On line 147 I did this... getSerializationLanguage(MediaType.APPLICATION_XML_TYPE);Thanks for everyone's help! I hope this helps someone else. I guess the question is why doesn't DNG support the rdf+xml content-type? |
![]()
The OSLC Bugzilla application was written for Jazz 5.x. I will not be surprised that it doesn’t work for v 6.x as it has introduced configuration management concepts. There is additional configuration selection in the process. Anyway, at this step, follow the instructions Jim has described. You definitely need to associate your Bugzilla service provider to an existing project area in DNG. Provided that your Bugzilla adapter provides a delegated UI, you will be able to create a traceability link . I hope it helps. |
Comments
Figured it out. See my answer below.