Rational DOORS Web Access Custom Type Read Only
![]()
I have been successful in accessing my modules using the querybase link. But I can not access my custom types, they are all readonly=false.
I can see in Rational Doors Client, that they can all be read in the access rights.
|
2 answers
![]()
If you are looking at accessing value of a custom attribute, then it is accessible.
If you do a GET on any object URI directly (with Accept and OSLC-Core-Version headers), you'll find the complete representation of the object including custom types - provided you have access to it in GUI. If you want to access the custom attribute values using queryBase and oslc.select, then you'll likely need to use rm_property:attrDef-xxxx. You can find what the name is (attrDef-xxxx) by looking up the resourceShape. For example, try something like this: https://<server>:<port>/dwa/rm/oslc/query/urn:rational::1-55718b4938b21a1e-M-00000020?oslc.where=dcterms:creator="User 1"&oslc.select=dcterms:title,rm_property:attrDef-1002 Hope that helps. Comments Thanks for the answer, but it still does not work.
I have this oslc:property:
<oslc:property><oslc:Property><oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">attrDef-1020</oslc:name><oslc:allowedValue rdf:resource="https://<server>:<port>/dwa/rm/urn:rational:bd296f88-9851-11e1-a2e8-81ba7d9bf10c:1-4fa78175254e4271-M-00006e63/types/attrDef-1020#6"/><oslc:readOnly rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:readOnly>
.........
The attrDef is attrDef-1020 and I tried to make a query like the one you said:
But I do not get the information at all. All i get is the title.
In DOORS I have full access rights.
In addition, I have access to these values in DOORS Web Access. Is that an enumerated attribute? If that's the case, you'll probably find the values in terms of links appended with #1, #2 and so on representing different values.. For example, one of the rdfs:member is as below:
Thanks a lot, that worked. I can now see the values of my custom types that are enumerations.
I find it kinda weird that they do not appear when I do an oslc.select=*. I just get this:
<rm_property:attrDef-1005 rdf:parseType="Literal"/>
<rm_property:attrDef-1001 rdf:parseType="Literal"/>
Is this expected behavior?
Also... what is the reasoning behind having the "readonly"=false for the enumerations, if I can actually read them by using "useEnumLabel=true"?
Not sure what's going wrong with your query.. I'm able to get all properties using oslc.select=*
|
![]()
So I do not know if it is the best desiction but you can extract the resource shape for the formal module. For example
I have requirement with enum attribute
<rm_property:attrDef-1004 rdf:parseType="Literal">HEADING</rm_property:attrDef-1004>
So what is the real name. I request the resourceShape for the module
<oslc:property>
<oslc:Property>
<dcterms:title rdf:parseType="Literal">_TextType</dcterms:title>
<oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>attrDef-1004</oslc:name>
<oslc:allowedValue>
<rdf:Description rdf:about="http://localhost:8080/dwa/rm/urn:rational::1-55422447386d3378-M-00000200/types/attrDef-1004#4">
<dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>4</dcterms:identifier>
<oslc:label rdf:parseType="Literal">RECOMMENDATION</oslc:label>
</rdf:Description>
</oslc:allowedValue>
<oslc:readOnly rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean"
>false</oslc:readOnly>
<oslc:allowedValue>
<rdf:Description rdf:about="http://localhost:8080/dwa/rm/urn:rational::1-55422447386d3378-M-00000200/types/attrDef-1004#1">
<dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>1</dcterms:identifier>
<oslc:label rdf:parseType="Literal">HEADING</oslc:label>
</rdf:Description>
</oslc:allowedValue>
<oslc:propertyDefinition rdf:resource="http://localhost:8080/dwa/rm/urn:rational::1-55422447386d3378-M-00000200/types/attrDef-1004"/>
<oslc:valueType rdf:resource="http://open-services.net/ns/core#Resource"/>
<oslc:allowedValue>
<rdf:Description rdf:about="http://localhost:8080/dwa/rm/urn:rational::1-55422447386d3378-M-00000200/types/attrDef-1004#2">
<dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>2</dcterms:identifier>
<oslc:label rdf:parseType="Literal">DEFINITION</oslc:label>
</rdf:Description>
</oslc:allowedValue>
<oslc:allowedValue>
<rdf:Description rdf:about="http://localhost:8080/dwa/rm/urn:rational::1-55422447386d3378-M-00000200/types/attrDef-1004#3">
<dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>3</dcterms:identifier>
<oslc:label rdf:parseType="Literal">INFORMATION</oslc:label>
</rdf:Description>
</oslc:allowedValue>
<oslc:occurs rdf:resource="http://open-services.net/ns/core#Zero-or-one"/>
</oslc:Property>
</oslc:property>
So here you can see the allowed values as well as the real name of the attribute _TextType.
|