Restore deleted forum content 

Use the ForumsTrashService commands to restore deleted forum content from the trash with immediate effect. You do not need to check the Forums configuration file out or restart the server when using these commands.


Before starting

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


About this task

If you change your mind about deleting content from the Forums application, you can restore forum content from the trash. After a forum or forum topic is deleted, the deleted content can be preserved if it is restored.


Procedure

To restore forum content that has been deleted...

  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. Do one of the following.

    • To get a list of the deleted forums currently in the trash, enter the following command:

        ForumsTrashService.fetchForumsTrash()

    • To get a list of the deleted forum topics currently in the trash, enter the following command:

        ForumsTrashService.fetchTopicsTrash()

  3. Identify the forums or forum topics that you want to restore from the returned list.

  4. To restore deleted content, use the following commands.

      ForumsTrashService.undeleteForumsTrash(vector <hashtable>)

        Restores a deleted forum or forums, where you specify the forum or forums that you want to restore using the <hashtable> parameter.

        For example:

        ForumsTrashService.undeleteForumsTrash(forumsTrash)

      ForumsTrashService.undeleteTopicTrash(vector <hashtable>)

        Restores a deleted forum topic or topics, where you specify the topic or topics that you want to restore using the <hashtable> parameter.

        For example:

        ForumsTrashService.undeleteTopicTrash(topictrash)


Parent topic

Manage forum trash


Related tasks


Moving forums to the trash
Delete topics from forums


   

 

});

+

Search Tips   |   Advanced Search