|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileRepository
파일 저장/조회/삭제 기능을 제공하는 추상화된 레파지토리 인터페이스이다. 실제적인 구현은 FTP 서버나 로컬파일시스템 또는 DB 등을 사용하여 구현될 수 있다.
| Method Summary | |
|---|---|
boolean[] |
deleteFile(String[] filePath)
레파지토리에서 파일을 삭제한다. |
boolean[] |
deleteFile(ValueObject fileVO,
String pathKey)
레파지토리에서 파일을 삭제한다. |
void |
getFile(ValueObject fileVO,
String fileDataKey,
String getPathKey)
레파지토리에서 파일을 가져온다. |
void |
storeFile(String localPath,
String remotePath)
저장할 로컬 파일을 경로를 지정하여 해당 파일을 레파지토리에 저장한다. |
void |
storeFile(ValueObject fileVO,
String fileDataKey,
String rootPath,
String getPathKey,
String pathSuffix)
파일데이터가 byte[] 담겨있는 VO를 받아서 레파지토리에 저장한다. |
| Method Detail |
|---|
void storeFile(ValueObject fileVO,
String fileDataKey,
String rootPath,
String getPathKey,
String pathSuffix)
throws LiveException
fileVO - 파일데이터가 byte[]로 담겨있는 VOfileDataKey - fileVO에 파일데이터가 담겨있는 컬럼명rootPath - 저장할 때 사용할 root 경로를 지정한다.getPathKey - 저장 후 저장된 경로(자동생성)를 VO에 담아줄 때 사용할 컬럼명.pathSuffix - 저장 경로를 자동생성시 주어진 값을 붙여준다.
LiveException
void storeFile(String localPath,
String remotePath)
throws LiveException
localPath - remotePath -
LiveException
void getFile(ValueObject fileVO,
String fileDataKey,
String getPathKey)
throws LiveException
fileVO - fileDataKey - getPathKey -
LiveException
boolean[] deleteFile(ValueObject fileVO,
String pathKey)
throws LiveException
fileVO - pathKey -
LiveException
boolean[] deleteFile(String[] filePath)
throws LiveException
filePath으 -
LiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||