public class ReopenDiscussionFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.ReopenDiscussionFragmentImpl implements ShareModuleFragment, EditDiscussionFragment
DOORS compatibility: Discussions are available starting with DOORS 9.0.
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 command (see CommandRunner
for a full snippet):
DiscussionRef discussion = DiscussionRef.summary("My Summary"); String reopenText = "Some text saying why the discussion is now reopen"; ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); EditDiscussionCommand command = new EditDiscussionCommand(module); command.add(new ReopenDiscussionFragment(discussion, reopenText)); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
EditDiscussionCommand
Constructor and Description |
---|
ReopenDiscussionFragment(DiscussionRef discussion,
String text)
Instantiates a fragment to reopen a DOORS discussion.
|
public ReopenDiscussionFragment(DiscussionRef discussion, String text)
discussion
- the discussion to be reopen.text
- the text inserted a last comment of the discussion,
explaining why the discussion is now reopen.