public class SoftDeleteObjectFragment extends com.sodius.mdw.internal.metamodel.doors.io.commands.SoftDeleteObjectFragmentImpl implements ShareModuleFragment
Once the fragment has been executed, the object is deleted and is no longer visible in the module. Using the DOORS client, the user still has the option to display deleted objects and to undelete them. Objects can be undeleted until they get explicitly purged in the DOORS client.
This fragment is intended to be combined into an EditModuleCommand
instance.
Below is a snippet illustrating how to use this fragment (see CommandRunner
for a full snippet):
ModuleRef module = ModuleRef.qualifiedName("/MyFolder/MyModule"); EditModuleCommand command = new EditModuleCommand(module, TerminationMode.SAVE_AND_CLOSE); ObjectRef object = ObjectRef.absoluteNumber(5); command.add(new SoftDeleteObjectFragment(object)); myCommandRunner.run(command);
CommandRunner
,
EditModuleCommand
Constructor and Description |
---|
SoftDeleteObjectFragment(ObjectRef object)
Instantiates a fragment to deleted an object.
|
public SoftDeleteObjectFragment(ObjectRef object)
object
- the object to be deleted.