Interface IImportOperationFactory

    • Method Detail

      • createImportConfigurationOperation

        IImportOperation createImportConfigurationOperation​(String projectName,
                                                            Version version,
                                                            Path sourceFolder)
        Creates instance of IImportOperation that performs configuration import. To perform actual import, client need to execute provided import operation.

        Import operation will create new configuration project with the provided name and Version and then import configuration content from sourceFolder XML files.

        If project with the given name already exists in workspace, it will be deleted first.

        Parameters:
        projectName - the name of project to create and import to, cannot be null
        version - the version of 1C:Enterprise to create project with, cannot be null
        sourceFolder - the folder with configuration XML files to import, cannot be null
        Returns:
        an instance of import operation, never null
      • createImportExtensionOperation

        IImportOperation createImportExtensionOperation​(String projectName,
                                                        Version version,
                                                        Path sourceFolder,
                                                        org.eclipse.core.resources.IProject parentProject)
        Creates instance of IImportOperation that performs configuration extension import. To perform actual import, client need to execute provided import operation.

        Import operation will create new configuration extension project with the provided name and Version and then import configuration extension content from sourceFolder XML files.

        If project with the given name already exists in workspace, it will be deleted first.

        Parameters:
        projectName - the name of project to create and import to, cannot be null
        version - the version of 1C:Enterprise to create project with, cannot be null
        sourceFolder - the folder with configuration XML files to import, cannot be null
        parentProject - the parent project to create configuration extension project with or null to create independent configuration extension project
        Returns:
        an instance of import operation, never null
      • createImportExternalObjectOperation

        IImportOperation createImportExternalObjectOperation​(String projectName,
                                                             Version version,
                                                             Path sourceFile,
                                                             IConfigurationProject baseProject)
        Creates instance of IImportOperation that performs external objects import. To perform actual import, client need to execute provided import operation.

        If project with given name not exist then import operation will create new external objects project with the provided name and Version and then import external objects content from sourceFile XML files.

        Parameters:
        projectName - the name of project to create and import to, cannot be null
        version - the version of 1C:Enterprise to create project with, cannot be null
        sourceFile - the source path to root file, cannot be null
        baseProject - the parent project to create external objects project with or null to create independent external objects project
        Returns:
        an instance of import operation, never null
      • createImportObjectsOperation

        IImportOperation createImportObjectsOperation​(org.eclipse.core.resources.IProject project,
                                                      Path sourceFolder)
        Creates instance of IImportOperation that performs metadata objects import to existing project. To perform actual import, client need to execute provided import operation. It is client responsibility to provide correct project for the provided XML metadata objects.
        Parameters:
        project - the project to import objects to, cannot be null
        sourceFolder - the source folder with platfrom XML objects, cannot be null
        Returns:
        an instance of import operation, never null
      • createImportObjectsOperation

        IImportOperation createImportObjectsOperation​(org.eclipse.core.resources.IProject project,
                                                      Path sourceFolder,
                                                      Path destinationFolder)
        Creates instance of IImportOperation that performs metadata objects import to existing project. To perform actual import, client need to execute provided import operation. It is client responsibility to provide correct project for the provided XML metadata objects.
        Parameters:
        project - the project to import objects to, cannot be null
        sourceFolder - the source folder with platfrom XML objects, cannot be null
        destinationFolder - the folder to import objects to, cannot be null
        Returns:
        an instance of import operation, never null