Hi Experts,
I am doing a POC, in which I am listing all the available forums in the portal using the sap portal forum API's.
I am using the link "Generated Documentation (Untitled)" for API reference .
Her i am using the following pice of code to list all the forums in the portal.
But i am ending up with class cast exception. My pice of code is
Long rootCategoryID = new Long("1"); |
ForumContext forumContext = new ForumContext(rootCategoryID);
ForumFactory forumFactory = new ForumFactory(forumContext); |
IForumCategory forumCategory = forumFactory.getForumCategoryManager().getRootForumCategory(); /// i am getting class cast exception in this line
IForum[] forum = forumCategory.getForums();
I am expecting the help, like whether I am following the correct approach or not. If not what will be the correct approach to ist the foum and care ant forum thread by using the API.
Please help me.
Thanks & Regards
Rabin D