com.liferay.portlet.documentlibrary.store
Interface Store
- All Known Implementing Classes:
- BaseStore, StoreWrapper
public interface Store
The interface for all file store implementations. Most, if not all
implementations should extend from the class BaseStore.
- Author:
- Brian Wing Shun Chan, Edward Han
- See Also:
BaseStore
|
Method Summary |
void |
addDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
|
void |
addFile(long companyId,
long repositoryId,
java.lang.String fileName,
byte[] bytes)
|
void |
addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.File file)
|
void |
addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.InputStream is)
|
void |
checkRoot(long companyId)
|
void |
copyFileVersion(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String fromVersionLabel,
java.lang.String toVersionLabel)
|
void |
deleteDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
|
void |
deleteFile(long companyId,
long repositoryId,
java.lang.String fileName)
|
void |
deleteFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
|
java.io.File |
getFile(long companyId,
long repositoryId,
java.lang.String fileName)
|
java.io.File |
getFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
|
byte[] |
getFileAsBytes(long companyId,
long repositoryId,
java.lang.String fileName)
|
byte[] |
getFileAsBytes(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
|
java.io.InputStream |
getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName)
|
java.io.InputStream |
getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
|
java.lang.String[] |
getFileNames(long companyId,
long repositoryId)
|
java.lang.String[] |
getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
|
long |
getFileSize(long companyId,
long repositoryId,
java.lang.String fileName)
|
boolean |
hasDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
|
boolean |
hasFile(long companyId,
long repositoryId,
java.lang.String fileName)
|
boolean |
hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
|
void |
move(java.lang.String srcDir,
java.lang.String destDir)
|
void |
updateFile(long companyId,
long repositoryId,
long newRepositoryId,
java.lang.String fileName)
|
void |
updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String newFileName)
|
void |
updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
byte[] bytes)
|
void |
updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.File file)
|
void |
updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.InputStream is)
|
void |
updateFileVersion(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String fromVersionLabel,
java.lang.String toVersionLabel)
|
VERSION_DEFAULT
static final java.lang.String VERSION_DEFAULT
- See Also:
- Constant Field Values
addDirectory
void addDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFile
void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFile
void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFile
void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkRoot
void checkRoot(long companyId)
throws SystemException
- Throws:
SystemException
copyFileVersion
void copyFileVersion(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String fromVersionLabel,
java.lang.String toVersionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteDirectory
void deleteDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFile
void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFile
void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFile
java.io.File getFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFile
java.io.File getFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsBytes
byte[] getFileAsBytes(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsBytes
byte[] getFileAsBytes(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsStream
java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsStream
java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileNames
java.lang.String[] getFileNames(long companyId,
long repositoryId)
throws SystemException
- Throws:
SystemException
getFileNames
java.lang.String[] getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileSize
long getFileSize(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasDirectory
boolean hasDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasFile
boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasFile
boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
move
void move(java.lang.String srcDir,
java.lang.String destDir)
throws SystemException
- Throws:
SystemException
updateFile
void updateFile(long companyId,
long repositoryId,
long newRepositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String newFileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFileVersion
void updateFileVersion(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String fromVersionLabel,
java.lang.String toVersionLabel)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException