org.codelabor.system.file.web.spring.controller
Class FileController

java.lang.Object
  extended by org.codelabor.system.file.web.spring.controller.FileController

@Controller
@RequestMapping(value="/example/file/spring/mvc")
public class FileController
extends java.lang.Object

Author:
Shin Sang-jae

Field Summary
protected  FileManager fileManager
          파일 매니저
protected  org.anyframe.idgen.IdGenService mapIdGenService
          Map Id 제네레이션 서비스
protected  java.lang.String repositoryPath
          파일 저장 경로
protected  RepositoryType repositoryType
          파일 저장 방식
protected  org.anyframe.idgen.IdGenService uniqueFilenameGenerationService
          고유 파일명 제네레이션 서비스
 
Constructor Summary
FileController()
           
 
Method Summary
 java.lang.String delete(org.codelabor.system.dto.StringIdArrayDTO springIDArrayDTO)
           
 void download(java.lang.String userAgent, java.lang.String fileId, javax.servlet.http.HttpServletResponse response)
           
 java.lang.String list(java.lang.String mapId, java.lang.String repositoryType, org.springframework.ui.Model model)
           
 java.lang.String upload(FileList fileList)
           
 void view(java.lang.String fileId, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileManager

@Inject
@Named(value="fileManager")
protected FileManager fileManager
파일 매니저


mapIdGenService

@Inject
@Named(value="mapIdGenService")
protected org.anyframe.idgen.IdGenService mapIdGenService
Map Id 제네레이션 서비스


uniqueFilenameGenerationService

@Inject
@Named(value="uniqueFilenameGenerationService")
protected org.anyframe.idgen.IdGenService uniqueFilenameGenerationService
고유 파일명 제네레이션 서비스


repositoryPath

protected java.lang.String repositoryPath
파일 저장 경로


repositoryType

protected RepositoryType repositoryType
파일 저장 방식

Constructor Detail

FileController

public FileController()
Method Detail

upload

@RequestMapping(value="upload")
public java.lang.String upload(FileList fileList)
                        throws java.lang.Exception
Throws:
java.lang.Exception

download

@RequestMapping(value="/download")
public void download(@RequestHeader(value="User-Agent")
                                    java.lang.String userAgent,
                                    @RequestParam(value="fileId")
                                    java.lang.String fileId,
                                    javax.servlet.http.HttpServletResponse response)
              throws java.lang.Exception
Throws:
java.lang.Exception

view

@RequestMapping(value="/view")
public void view(@RequestParam(value="fileId")
                                java.lang.String fileId,
                                javax.servlet.http.HttpServletResponse response)
          throws java.lang.Exception
Throws:
java.lang.Exception

list

@RequestMapping(value="/list")
public java.lang.String list(@RequestParam(value="mapId",required=false)
                                            java.lang.String mapId,
                                            @RequestParam(value="repositoryType",required=false)
                                            java.lang.String repositoryType,
                                            org.springframework.ui.Model model)

delete

@RequestMapping(value="/delete")
public java.lang.String delete(org.codelabor.system.dto.StringIdArrayDTO springIDArrayDTO)
                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011 CODELABOR. All Rights Reserved.