cancel
Showing results for 
Search instead for 
Did you mean: 

How to set resurce type via Java API

0 Kudos

Hello @ll,

I try to set the ResourceType of a CM Resource via the Java API, e.g. when I create the resource or at a later point of time. But I didn't find a method like setResourceType(..) or something similar in the Java API. Does anybody know how to set the resource type ?

Regards,

Markus

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Markus,

I had the same problem. Resource type of the resource is property. Namespace of the property is http://sapportals.com/xmlns/cm and name is resourcetype.

So you can set resource type like other properties via

<resource>.setProperty

Regards,

Zdenek

Former Member
0 Kudos

What do you mean by "resource type"? The content type?

Julian

Former Member
0 Kudos

I wanted to do the same thing for files in a fsdb repository and I have been told by the OSS folks that setting the resource type is impossible and there is no API to do so and no plans to make this available. I could log it as a development request if I felt strongly about it, but of course I don't have the permissions to do that...