Package com.orchestranetworks.service
Class ArchiveImportSpec
java.lang.Object
com.orchestranetworks.service.ArchiveImportSpec
Defines the settings of an archive import.
To be valid, an instance of this class must at least define an archive source. If no datasets are specified, then the whole archive content will be imported.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInstance
(AdaptationName aDataSet, boolean includeAllDescendants) Adds a dataset to import.Returns the archive to import.getMode()
void
setArchive
(Archive archive) Specifies the archive to import.void
setMode
(ArchiveImportSpecMode mode) Specifies the import mode.
-
Constructor Details
-
ArchiveImportSpec
public ArchiveImportSpec()
-
-
Method Details
-
addInstance
Adds a dataset to import.- Parameters:
aDataSet
- the dataset to be importedincludeAllDescendants
- indicates if the children will be imported if they are not specified
-
getArchive
Returns the archive to import. -
setArchive
Specifies the archive to import. -
setMode
Specifies the import mode. Default is set toArchiveImportSpecMode.DEFAULT
.- Throws:
IllegalArgumentException
- if mode isnull
.
-
getMode
- See Also:
-