01: package com.sun.portal.app.filesharing.repo;
02:
03: import java.io.InputStream;
04: import java.io.IOException;
05: import java.io.Serializable;
06:
07: /**
08: * @author Alejandro Abdelnur
09: */
10: public interface Repository extends Serializable {
11:
12: public void addFile(RepoItem file, InputStream is)
13: throws RepoException, IOException;
14:
15: public void replaceFile(RepoItem file, InputStream is)
16: throws RepoException, IOException;
17:
18: public InputStream getFile(RepoItem file) throws RepoException,
19: IOException;
20:
21: public void deleteFile(RepoItem file) throws RepoException;
22:
23: public RepoItem getItemInfo(RepoItem item) throws RepoException;
24:
25: public void addFolder(RepoItem folder) throws RepoException;
26:
27: public RepoItem[] getContent(RepoItem folder) throws RepoException;
28:
29: public RepoItem[] getContent(RepoItem folder, String filter)
30: throws RepoException;
31:
32: public void deleteFolder(RepoItem folder, boolean deleteNotEmpty)
33: throws RepoException;
34:
35: public void copy(RepoItem item, RepoItem folder)
36: throws RepoException;
37:
38: public void move(RepoItem item, RepoItem folder)
39: throws RepoException;
40:
41: public void rename(RepoItem item, String newName)
42: throws RepoException;
43:
44: }
|