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

RAM API to update category name

Has anyone used the RAM Java API to update category names? I am unable to get the setName method to work.

I have community admin access to the community in which the category schema I am updating is defined. I do not have repository admin access. I am able to add new categories and sub-categories to the schema I am using. I would like to be able to rename categories and sub-categories using the API.

Here is my code:

RAMCategorySchema testapiSchema = session.getCategorySchema("TestAPI");
RAMCategory level1Category1 = (RAMCategory)testapiSchema.getCategory("L1 Subcategory 1");
level1Category1.setName("L1 Category 1");
session.put(testapiSchema, new NullProgressMonitor());

I get the following exception:
com.ibm.ram.common.data.exception.RAMRuntimeException: Method is not executable by the client.
at com.ibm.ram.client.RAMCategory.setName(RAMCategory.java:441)
at com.ibm.assethub.test.HelloRAM.main(HelloRAM.java:49)

0 votes



One answer

Permanent link
Hari,

The API lets you create category schemas, but we have not implemented the ability to allow you to update schemas.

Has anyone used the RAM Java API to update category names? I am unable to get the setName method to work.

I have community admin access to the community in which the category schema I am updating is defined. I do not have repository admin access. I am able to add new categories and sub-categories to the schema I am using. I would like to be able to rename categories and sub-categories using the API.

Here is my code:

RAMCategorySchema testapiSchema = session.getCategorySchema("TestAPI");
RAMCategory level1Category1 = (RAMCategory)testapiSchema.getCategory("L1 Subcategory 1");
level1Category1.setName("L1 Category 1");
session.put(testapiSchema, new NullProgressMonitor());

I get the following exception:
com.ibm.ram.common.data.exception.RAMRuntimeException: Method is not executable by the client.
at com.ibm.ram.client.RAMCategory.setName(RAMCategory.java:441)
at com.ibm.assethub.test.HelloRAM.main(HelloRAM.java:49)

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

Question asked: Jul 15 '10, 12:03 a.m.

Question was seen: 5,257 times

Last updated: Jul 15 '10, 12:03 a.m.

Confirmation Cancel Confirm