|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.repository.FtpFileRepository
public class FtpFileRepository
FileRepository의 FTP 구현 클래스이다.
| Constructor Summary | |
|---|---|
FtpFileRepository(String key)
|
|
| Method Summary | |
|---|---|
boolean[] |
deleteFile(String[] filePath)
레파지토리에서 파일을 삭제한다. |
boolean[] |
deleteFile(ValueObject fileVO,
String pathKey)
FTP 서버에서 파일을 삭제한다. |
void |
getFile(ValueObject fileVO,
String fileDataKey,
String getPathKey)
FTP 서버에서 파일을 가져온다. |
void |
storeFile(String localPath,
String remotePath)
저장할 로컬 파일을 경로를 지정하여 해당 파일을 레파지토리에 저장한다. |
void |
storeFile(ValueObject fileVO,
String fileDataKey,
String rootPath,
String getPathKey,
String pathSuffix)
파일데이터가 byte[] 담겨있는 VO를 받아서 FTP 서버에 저장한다. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FtpFileRepository(String key)
| Method Detail |
|---|
public void storeFile(ValueObject fileVO,
String fileDataKey,
String rootPath,
String getPathKey,
String pathSuffix)
throws LiveException
storeFile in interface FileRepositoryfileVO - 파일데이터가 byte[]로 담겨있는 VOfileDataKey - fileVO에 파일데이터가 담겨있는 컬럼명rootPath - FTP 서버에 저장할 때 사용할 root 경로를 지정한다.getPathKey - FTP 서버에 저장 후 저장된 경로를 VO에 담아줄때 사용할 컬럼명.pathSuffix - 저장 경로를 자동생성시 주어진 값을 붙여준다.
LiveException
public void storeFile(String localPath,
String remotePath)
throws LiveException
FileRepository
storeFile in interface FileRepositoryLiveException
public void getFile(ValueObject fileVO,
String fileDataKey,
String getPathKey)
throws LiveException
getFile in interface FileRepositoryfileVO - fileDataKey - getPathKey -
LiveException
public boolean[] deleteFile(ValueObject fileVO,
String pathKey)
throws LiveException
deleteFile in interface FileRepositoryfileVO - pathKey -
LiveException
public boolean[] deleteFile(String[] filePath)
throws LiveException
FileRepository
deleteFile in interface FileRepositoryLiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||