Package com.jpoweredcart.common.system.file

Examples of com.jpoweredcart.common.system.file.DefaultFileService


  public FileService downloadFileService(){
    if(applicationContext.containsBean("custom_downloadFileService")){
      return (FileService)applicationContext.getBean("custom_downloadFileService");
    }
   
    DefaultFileService defaultFileService = new DefaultFileService();
   
    String dlDir = env.getProperty("download.dir");
    String dlBaseUrl = env.getProperty("download.baseUrl", "/files/downloads");
    defaultFileService.setBaseDir(getDefaultFilePath(dlDir, dlBaseUrl));
    defaultFileService.setBaseUrl(getWebPath(dlBaseUrl));
   
    return defaultFileService;
  }
View Full Code Here


   
    if(applicationContext.containsBean("custom_mediaFileService")){
      return (FileService)applicationContext.getBean("custom_mediaFileService");
    }
   
    DefaultFileService defaultFileService = new DefaultFileService();
   
    String imgDir = env.getProperty("media.imageDir");
    String imgBaseUrl = env.getProperty("media.imageBaseUrl", "/files/images");
   
    imgDir = getDefaultFilePath(imgDir, imgBaseUrl);
    imgDir = PathUtils.ensureEndingFileSeparator(imgDir)+"data";
    defaultFileService.setBaseDir(imgDir);
    defaultFileService.setBaseUrl(getWebPath(imgBaseUrl));
    return defaultFileService;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.system.file.DefaultFileService

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.