Package com.orchestranetworks.service
Class ArchiveImportSpec
- java.lang.Object
-
- com.orchestranetworks.service.ArchiveImportSpec
-
public class ArchiveImportSpec extends Object
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 Constructor Description ArchiveImportSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstance(AdaptationName aDataSet, boolean includeAllDescendants)Adds a dataset to import.ArchivegetArchive()Returns the archive to import.ArchiveImportSpecModegetMode()voidsetArchive(Archive archive)Specifies the archive to import.voidsetMode(ArchiveImportSpecMode mode)Specifies the import mode.
-
-
-
Method Detail
-
addInstance
public void addInstance(AdaptationName aDataSet, boolean includeAllDescendants)
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
public Archive getArchive()
Returns the archive to import.
-
setArchive
public void setArchive(Archive archive)
Specifies the archive to import.
-
setMode
public void setMode(ArchiveImportSpecMode mode)
Specifies the import mode. Default is set toArchiveImportSpecMode.DEFAULT.- Throws:
IllegalArgumentException- if mode isnull.
-
getMode
public ArchiveImportSpecMode getMode()
- See Also:
setMode(ArchiveImportSpecMode)
-
-