Class ProjektImportUtil


  • @Deprecated
    public class ProjektImportUtil
    extends AProjektUtil
    Deprecated.
    In a future FORMCYCLE version old project exports (export version < 2.0.0) won't be importablable anymore. ProjectImporter should be used instead.
    • Method Detail

      • doImport

        public Projekt doImport​(IProjectTemplate template,
                                String currentUser,
                                Locale locale)
                         throws Exception
        Deprecated.
        Creates a new project from the given templates. Generates a unique alias.
        Parameters:
        template - Template for the new project.
        currentUser - Name of the current user. Used to log who created the project.
        locale - Current locale for localization.
        Returns:
        The newly created project.
        Throws:
        Exception - on errors during import
      • doImport

        public Projekt doImport​(Projekt newProjekt,
                                String curBenutzer,
                                InputStream is,
                                boolean disableAllActions,
                                Locale locale)
                         throws Exception
        Deprecated.
        Importiert ein Projekt
        Parameters:
        newProjekt - the template for new Projekt
        curBenutzer - the current Benutzer
        is - the InputStream to import from
        disableAllActions - flag if all actions of the importat project should be disabled
        locale - the locale to use for the import
        Returns:
        the imported project
        Throws:
        Exception - on errors during import