Package com.dotmarketing.util

Examples of com.dotmarketing.util.ImportExportUtil


   */
  private void doUpload(HttpServletRequest request, HttpServletResponse response, UploadPortletRequest upr) throws IOException {
    Logger.info(this, "Uploading File");
    File importFile = upr.getFile("fileUpload");
    PrintWriter out = response.getWriter();
    ImportExportUtil ieu = new ImportExportUtil();
    if(ieu.validateZipFile(importFile)){
      request.getSession().invalidate();
      MaintenanceUtil.flushCache();
      ieu.doImport(out);
      SessionMessages.add(request, "message", "File-Upload-Done");
    }else{
      SessionMessages.add(request, "error""File-Upload-Failed");
    }

View Full Code Here


      String starterSitePath = "starter.zip";
      String zipPath = FileUtil.getRealPath(starterSitePath);
      starterZip = new File(zipPath);
     }
   
    ImportExportUtil ieu = new ImportExportUtil();
    if(ieu.validateZipFile(starterZip)){
      ieu.doImport(pw);
    }
  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.util.ImportExportUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.