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

Delete Category in a Category Schema using RAM Java API

We have a need to delete categories in a category schema using the RAM Java API. Here's what we are doing...

RAMCategory categoryToDelete = (RAMCategory)catSchema.getCategory("Party");
categoryToDelete.delete();
session.put(catSchema, new NullProgressMonitor());

The java doc for the delete method says...
"Marks this category for deletion. The category won't be physically deleted from the repository until RAMSession.commitChanges(IProgressMonitor) or RAMSession.upload(IProgressMonitor) is called."
We are using RAM V7.5.0.2 Build: RAM7502-I20110308_1504 and the API doesn't have the commitChanges() or upload() methods available.

It looks like just calling the session.put(catSchema, new NullProgressMonitor()) method will not delete the category in RAM, how do we accomplish this? Thanks,

Sanjay Karnam

0 votes



3 answers

Permanent link
Sorry,

But it looks like it is broken. There is no code to actually delete a category within a schema.

Rich

0 votes


Permanent link
Ok, so do we have to open a PMR with IBM to get around this issue? Or would this code be available in the next releases of RAM?

0 votes


Permanent link
Yes, it is a bug.

In theory, the session.put(catSchema, new NullProgressMonitor()); should have removed the deleted category, but the the call to .delete() today does not remove the category from the schema immediately, as it should be.

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: Apr 24 '12, 1:24 p.m.

Question was seen: 7,668 times

Last updated: Apr 24 '12, 1:24 p.m.

Confirmation Cancel Confirm