public class ImportParameters extends Object implements Serializable
project imports
ProjectStorage.startImport(ImportParameters)
,
Serialized FormConstructor and Description |
---|
ImportParameters(ExportFile exportFile,
ProjectInfo projectInfo,
String projectName,
String projectDescription,
Map<String,String> layerMapping,
Map<Long,Long> scheduleTaskTemplateMapping)
Creates a new ImportParameters object.
|
ImportParameters(ExportFile exportFile,
ProjectInfo projectInfo,
String projectName,
String projectDescription,
Map<String,String> layerMapping,
Map<Long,Long> scheduleTaskTemplateMapping,
Map<Long,String> layerIDMapping)
Creates a new ImportParameters object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getActivateDeployments()
Indicates whether
schedule entries imported during the
project import will be activated (default) or not. |
boolean |
getActivateProject()
Indicates whether the imported project will be activated after the
project import (default) or not. |
boolean |
getBackupRestore()
Returns true if this import is a project backup restore.
|
boolean |
getCreateNewIds()
Indicates whether the
project import
will create new ids (true , default) or keeps the ids existing in the export file . |
ExportFile |
getExportFile()
Returns the belonging
export file . |
Map<Long,String> |
getLayerIDMapping()
Is used in addition to getLayerMapping().
|
Map<String,String> |
getLayerMapping()
Is used in addition to getLayerIDMapping().
|
String |
getProjectDescription()
Gets the description of the new project which will be created during the project import.
|
ProjectInfo |
getProjectInfo()
Returns the belonging project info.
|
String |
getProjectName()
Gets the name of the new project which will be created during the project import.
|
long |
getRestoreProjectId()
Restore project mode.
|
Map<Long,Long> |
getScheduleTaskTemplateMapping() |
void |
setActivateDeployments(boolean activateDeployments)
Define whether
schedule entries imported during the
project import should be activated (default) or not. |
void |
setActivateProject(boolean activateProject)
Define whether the imported project should be activated after
project import
or not. |
void |
setBackupRestore(boolean backupRestore)
Returns true if this import is a project backup restore.
|
void |
setCreateNewIds(boolean createNewIds)
Define whether the
project import
should create new ids (default) or keep the ids existing in the export file . |
void |
setRestoreProjectId(long restoreProjectId) |
String |
toString() |
public ImportParameters(ExportFile exportFile, ProjectInfo projectInfo, String projectName, String projectDescription, @NotNull Map<String,String> layerMapping, @NotNull Map<Long,Long> scheduleTaskTemplateMapping)
exportFile
- the ExportFile which has to be uploaded
to the FirstSpirit serverprojectInfo
- the project info belonging to the given export file. Use ProjectStorage.getProjectInfo(ExportFile)
to get the project infoprojectName
- the new name for the project which will be created during the project importprojectDescription
- the new description for the project which will be created during the project importlayerMapping
- the mapping of layers from source layer name in the export file to the target layer for the new projectProjectStorage.uploadExportFile(String, InputStream)
,
ProjectStorage.getProjectInfo(ExportFile)
public ImportParameters(ExportFile exportFile, ProjectInfo projectInfo, String projectName, String projectDescription, Map<String,String> layerMapping, @NotNull Map<Long,Long> scheduleTaskTemplateMapping, @NotNull Map<Long,String> layerIDMapping)
exportFile
- the ExportFile which has to be uploaded
to the FirstSpirit serverprojectInfo
- the project info belonging to the given export file. Use ProjectStorage.getProjectInfo(ExportFile)
to get the project infoprojectName
- the new name for the project which will be created during the project importprojectDescription
- the new description for the project which will be created during the project importlayerMapping
- the mapping of layers from source layer name in the export file to the target layer for the new projectProjectStorage.uploadExportFile(String, InputStream)
,
ProjectStorage.getProjectInfo(ExportFile)
public ExportFile getExportFile()
export file
.public ProjectInfo getProjectInfo()
public String getProjectName()
public String getProjectDescription()
public Map<String,String> getLayerMapping()
public Map<Long,String> getLayerIDMapping()
public boolean getCreateNewIds()
project import
will create new ids (true
, default) or keeps the ids existing in the export file
.setCreateNewIds(boolean)
public void setCreateNewIds(boolean createNewIds)
project import
should create new ids (default) or keep the ids existing in the export file
.getCreateNewIds()
public boolean getActivateDeployments()
schedule entries
imported during the
project import
will be activated (default) or not.true
(default) if schedule entries will be activated during project import, false
otherwisesetActivateDeployments(boolean)
public void setActivateDeployments(boolean activateDeployments)
schedule entries
imported during the
project import
should be activated (default) or not.activateDeployments
- true
to activate schedule entries
during importgetActivateDeployments()
public Map<Long,Long> getScheduleTaskTemplateMapping()
-1
.public boolean getActivateProject()
project import
(default) or not.true
(default) if the project will be activated after the import, false
otherwisesetActivateProject(boolean)
public void setActivateProject(boolean activateProject)
project import
or not.activateProject
- use true
if the new created/imported project should be active after import, false
otherwisegetActivateProject()
public long getRestoreProjectId()
public void setRestoreProjectId(long restoreProjectId)
public boolean getBackupRestore()
public void setBackupRestore(boolean backupRestore)
backupRestore
- set to true if this is a project backup restoreCopyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210