Get a list of forums 

Use administrative commands to retrieve lists of forums that you can subsequently manipulate programmatically.


Before you begin

To run administrative commands, use the wsadmin client. See Starting the wsadmin client for details.


Procedure

  1. From the dmgr host:

      cd $DMGR_PROFILE/bin
      ./wsadmin.sh -jython
      execfile("forumsAdmin.py")

      If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.

  2. Use the following commands to retrieve the forums in your organization:

      ForumsService.fetchForums()

        Retrieves a list of all the forums created by your users except those in the trash.

      ForumsService.fetchForumsByName(java.lang.String forumName)

        Retrieves the forum with the specified name.

        For example:

        ForumsService.fetchForumsByName("My Forum")


Parent topic

Administer Forums


   

 

});