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

Is it possible to change the hierarchy of categories in ibm rtc. ? Or atleast change the parent of the categories.?

i want to change the hierarchy of the existing categories in ibm rtc using java client api. Any help on this regard is much appreciated.
Thank you.

0 votes



2 answers

Permanent link
// connect to the category manager
 CategoriesManager catManager = CategoriesManager.createInstance(auditableClient, iprojectAreaHandle,
                        null);
// get the parent node
CategoryTreeNode parent =    catManager.getRoot();             
 // create a child
CategoryTreeNode childCat = parent.createChild("child_cat_name");

0 votes


Permanent link
 public static void MoveICategory(ITeamRepository teamRepository, IProjectArea projectArea, IAuditableClient auditableClient, ICategoryHandle newParentCategoryHandle, ICategoryHandle childCategoryHandle){
CategoriesManager catManager = null;
CategoryTreeNode newParent = null;
CategoryTreeNode childCategoryTreeNode = null;
try {
    catManager = CategoriesManager.createInstance(auditableClient, (IProjectAreaHandle) projectArea.getItemHandle(),  null); 
    newParent = catManager.findNode(newParentCategoryHandle);
    childCategoryTreeNode = catManager.findNode(childCategoryHandle);
    childCategoryTreeNode.moveTo(newParent);
    catManager.save(null);

} catch (TeamRepositoryException e) {
e.printStackTrace();
}
}

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
× 10,937

Question asked: May 19 '14, 8:34 a.m.

Question was seen: 5,704 times

Last updated: Jul 30 '15, 1:43 a.m.

Confirmation Cancel Confirm