Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Add remove Artifacts from Modules by using java and web services

 how can i remove and add artifacts to/from modules by using java code and webservice
i tried service OSLC but i could not
thank you 

0 votes



2 answers

Permanent link

Manar,


Following article should answer your question. As far as I remember OSLC API did not give You ability to add artifacts to the module

Add a new / existing Artifact to a Module

0 votes


Permanent link

 @ Bartosz Chrabski ,
i tried to make as explaind in this article but i get error 

404 Not Found
i wrote this request

Get https://serveradress:9443/rdm/resources/_wgodEapbEeqYvOpDVfr21Q/structure

</pre>
<pre style="background-color: rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-size: inherit; line-height: 1.42857; margin-bottom: 10px; margin-top: 0px; overflow-wrap: break-word; overflow: auto !important; padding: 9.5px; width: auto; word-break: break-all;">

DoorsRP-Request-Type: public 2.0

</pre>
<pre style="background-color: rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-size: inherit; line-height: 1.42857; margin-bottom: 10px; margin-top: 0px; overflow-wrap: break-word; overflow: auto !important; padding: 9.5px; width: auto; word-break: break-all;">

Accept: application/json

</pre>
<div style="background-color: rgb(255, 255, 254); color: rgb(0, 0, 0); font-size: 12px; line-height: 16px; white-space: pre;">
    <span style="background-color: rgb(255, 255, 255); color: rgb(80, 80, 80); font-family: OpenSans, Helvetica, Arial, sans-serif; white-space: pre-wrap;">  i had module as: </span>
</div>
<div style="background-color: rgb(255, 255, 254); color: rgb(0, 0, 0); font-size: 12px; line-height: 16px; white-space: pre;">
    <pre style="background-color: rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: rgb(51, 51, 51); font-size: inherit; line-height: 1.42857; margin-bottom: 10px; margin-top: 0px; overflow-wrap: break-word; overflow: auto !important; padding: 9.5px; width: auto; word-break: break-all;">

<rdf:Description rdf:about="https://serveradress:9443/rm/views?oslc.query=true&amp;projectURL=https%3A%2F%2Fvalm01dsy.dsone.3ds.com%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_N23cUKlhEeqYvOpDVfr21Q">
        <rdfs:member>
            <oslc_rm:RequirementCollection rdf:about="https://serveradress:9443/rm/resources/_wgodEapbEeqYvOpDVfr21Q">
                <dcterms:creator rdf:resource="https://serveradress:9443/jts/users/rnd_rm"/>
                <dcterms:description></dcterms:description>
                <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2020-06-09T14:16:06.257Z</dcterms:created>
                <f1:DefaultWorkflow rdf:resource="http://www.ibm.com/xmlns/rdm/workflow/DefaultWorkflow#com.ibm.rdm.workflow.common.new"/>
                <dcterms:contributor rdf:resource="https://serveradress:9443/jts/users/rnd_rm"/>
                <oslc:instanceShape rdf:resource="https://serveradress:9443/rm/types/_X0WHMaljEeqYvOpDVfr21Q"/>
                <dcterms:title>WTF6</dcterms:title>
                <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2020-06-12T16:48:28.109Z</dcterms:modified>
                <f2:accessControl rdf:resource="https://valm01dsy.dsone.3ds.com:9443/rm/accessControl/_N23cUKlhEeqYvOpDVfr21Q"/>
                <rmTypes:ArtifactFormat rdf:resource="https://serveradress9443/rm/types/_PwnzQalhEeqYvOpDVfr21Q#Module"/>
                <nav:parent rdf:resource="https://serveradress:9443/rm/folders/_PsJi8alhEeqYvOpDVfr21Q"/>
                <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">53089</dcterms:identifier>
            </oslc_rm:RequirementCollection>
        </rdfs:member>
</rdf:Description>

    </pre>
    <br>
</div>
<span style="background-color: rgb(255, 255, 255); color: rgb(80, 80, 80); font-family: OpenSans, Helvetica, Arial, sans-serif; font-size: 12px; white-space: pre-wrap;"> </span>

this rdf i got it by using oslc
so i supposed that the moduleURI is _wgodEapbEeqYvOpDVfr21Q this is the first time i saw rdm at web service adresse . for oslc i used rm not rdm thank you

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495
× 1,700
× 1,325
× 382
× 158
× 38

Question asked: Jun 13 '20, 3:56 a.m.

Question was seen: 1,809 times

Last updated: Jun 14 '20, 6:37 a.m.

Related questions
Confirmation Cancel Confirm