Examples of ImportDTO


Examples of org.dspace.app.webui.cris.dto.ImportDTO

  protected ModelAndView onSubmit(HttpServletRequest request,
      HttpServletResponse response, Object command, BindException errors)
      throws Exception {
    Context dspaceContext = UIUtil.obtainContext(request);

    ImportDTO object = (ImportDTO) command;
    MultipartFile fileDTO = object.getFile();

    // read folder from configuration and make dir
    String path = ConfigurationManager
        .getProperty(CrisConstants.CFG_MODULE,"researcherpage.file.import.path");
    File dir = new File(path);
    dir.mkdir();
    try {
      if (object.getModeXSD() != null) {
        response.setContentType("application/xml;charset=UTF-8");
        response.addHeader("Content-Disposition",
            "attachment; filename=rp.xsd");
        String nameXSD = "xsd-download-webuirequest.xsd";
        File filexsd = new File(dir, nameXSD);
View Full Code Here

Examples of org.dspace.app.webui.cris.dto.ImportDTO

  protected ModelAndView onSubmit(HttpServletRequest request,
      HttpServletResponse response, Object command, BindException errors)
      throws Exception {
    Context dspaceContext = UIUtil.obtainContext(request);

    ImportDTO object = (ImportDTO) command;
    MultipartFile fileDTO = object.getFile();

    // read folder from configuration and make dir
    String path = ConfigurationManager
        .getProperty(CrisConstants.CFG_MODULE,"researcherpage.file.import.path");
    File dir = new File(path);
    dir.mkdir();
    try {
      if (object.getModeXSD() != null) {
        response.setContentType("application/xml;charset=UTF-8");
        response.addHeader("Content-Disposition",
            "attachment; filename=rp.xsd");
        String nameXSD = "xsd-download-webuirequest.xsd";
        File filexsd = new File(dir, nameXSD);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.