public class DeleteDiscussionFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.DeleteDiscussionFragmentImpl implements ShareModuleFragment, EditDiscussionFragment
DOORS compatibility: Discussions are available starting with DOORS 9.0.
Beware that the DOORS administrator must explicitly allow the deletion of discussion in the DOORS database for this command to succeed:
http://www-01.ibm.com/support/docview.wss?uid=swg21441091
This fragment is intended to be combined into an EditDiscussionCommand
instance. Modifications made within this fragment are instantly
saved into DOORS client and cannot be reverted by aborting the command. The module must not have any unsaved changes in the DOORS client for this
fragment to succeed.
Below is a snippet illustrating how to use this fragment (see CommandRunner
for a full snippet):
DiscussionRef discussion = DiscussionRef.summary("My Discussion"); ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); EditDiscussionCommand command = new EditDiscussionCommand(module); command.add(new DeleteDiscussionFragment(discussion)); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditDiscussionCommand
,
CreateDiscussionFragment
Constructor and Description |
---|
DeleteDiscussionFragment(DiscussionRef discussion)
Instantiates a fragment to delete a DOORS discussion.
|
public DeleteDiscussionFragment(DiscussionRef discussion)
discussion
- the discussion to be deleted.