public class RestoreProjectCommand extends CommandWrapper
Below is a snippet illustrating how to use this command (see CommandRunner
for a full snippet):
FolderRef folder = FolderRef.qualifiedName("/MyFolder"); File archiveLocation = new File("c:\\archives\\MyProject.dpa"); RestoreProjectCommand command = new RestoreProjectCommand(archiveLocation, folder); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
ArchiveProjectCommand
Constructor and Description |
---|
RestoreProjectCommand(File archiveLocation,
FolderRef folder)
Instantiates a fragment to restore a DOORS project archive into the specified folder.
|
RestoreProjectCommand(File archiveLocation,
FolderRef folder,
String projectName,
String projectDescription)
Instantiates a fragment to restore a DOORS project archive into the specified folder
and using the specified project name.
|
RestoreProjectCommand(URL archiveLocation,
FolderRef folder)
Instantiates a fragment to restore a DOORS project archive into the specified folder.
|
RestoreProjectCommand(URL archiveLocation,
FolderRef folder,
String projectName,
String projectDescription)
Instantiates a fragment to restore a DOORS project archive into the specified folder
and using the specified project name.
|
public RestoreProjectCommand(URL archiveLocation, FolderRef folder)
archiveLocation
- a URL which resolves to a DOORS project archive.folder
- the folder in which the project must be restored.public RestoreProjectCommand(URL archiveLocation, FolderRef folder, String projectName, String projectDescription)
archiveLocation
- a URL which resolves to a DOORS project archive.folder
- the folder in which the project must be restored.projectName
- the name to assign to the restored project.
The original name of the project, by the time the project was archived, is ignored.projectDescription
- the description to assign to the restored project.public RestoreProjectCommand(File archiveLocation, FolderRef folder)
archiveLocation
- the file path of a DOORS project archive.folder
- the folder in which the project must be restored.public RestoreProjectCommand(File archiveLocation, FolderRef folder, String projectName, String projectDescription)
archiveLocation
- the file path of a DOORS project archive.folder
- the folder in which the project must be restored.projectName
- the name to assign to the restored project.
The original name of the project, by the time the project was archived, is ignored.projectDescription
- the description to assign to the restored project.