com.liferay.portlet.documentlibrary.store
Class StoreWrapper
java.lang.Object
com.liferay.portlet.documentlibrary.store.StoreWrapper
- All Implemented Interfaces:
- Store
public class StoreWrapper
- extends java.lang.Object
- implements Store
- Author:
- Brian Wing Shun Chan, Edward Han
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreWrapper
public StoreWrapper(Store store)
addDirectory
public void addDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Specified by:
addDirectory in interface Store
- Throws:
PortalException
SystemException
addFile
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
byte[] bytes)
throws PortalException,
SystemException
- Specified by:
addFile in interface Store
- Throws:
PortalException
SystemException
addFile
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.File file)
throws PortalException,
SystemException
- Specified by:
addFile in interface Store
- Throws:
PortalException
SystemException
addFile
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.InputStream is)
throws PortalException,
SystemException
- Specified by:
addFile in interface Store
- Throws:
PortalException
SystemException
checkRoot
public void checkRoot(long companyId)
throws SystemException
- Specified by:
checkRoot in interface Store
- Throws:
SystemException
copyFileVersion
public void copyFileVersion(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String fromVersionLabel,
java.lang.String toVersionLabel)
throws PortalException,
SystemException
- Specified by:
copyFileVersion in interface Store
- Throws:
PortalException
SystemException
deleteDirectory
public void deleteDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Specified by:
deleteDirectory in interface Store
- Throws:
PortalException
SystemException
deleteFile
public void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
deleteFile in interface Store
- Throws:
PortalException
SystemException
deleteFile
public void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Specified by:
deleteFile in interface Store
- Throws:
PortalException
SystemException
getFile
public java.io.File getFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
getFile in interface Store
- Throws:
PortalException
SystemException
getFile
public java.io.File getFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Specified by:
getFile in interface Store
- Throws:
PortalException
SystemException
getFileAsBytes
public byte[] getFileAsBytes(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
getFileAsBytes in interface Store
- Throws:
PortalException
SystemException
getFileAsBytes
public byte[] getFileAsBytes(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Specified by:
getFileAsBytes in interface Store
- Throws:
PortalException
SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
getFileAsStream in interface Store
- Throws:
PortalException
SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Specified by:
getFileAsStream in interface Store
- Throws:
PortalException
SystemException
getFileNames
public java.lang.String[] getFileNames(long companyId,
long repositoryId)
throws SystemException
- Specified by:
getFileNames in interface Store
- Throws:
SystemException
getFileNames
public java.lang.String[] getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Specified by:
getFileNames in interface Store
- Throws:
PortalException
SystemException
getFileSize
public long getFileSize(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
getFileSize in interface Store
- Throws:
PortalException
SystemException
hasDirectory
public boolean hasDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws PortalException,
SystemException
- Specified by:
hasDirectory in interface Store
- Throws:
PortalException
SystemException
hasFile
public boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
hasFile in interface Store
- Throws:
PortalException
SystemException
hasFile
public boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws PortalException,
SystemException
- Specified by:
hasFile in interface Store
- Throws:
PortalException
SystemException
move
public void move(java.lang.String srcDir,
java.lang.String destDir)
throws SystemException
- Specified by:
move in interface Store
- Throws:
SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
long newRepositoryId,
java.lang.String fileName)
throws PortalException,
SystemException
- Specified by:
updateFile in interface Store
- Throws:
PortalException
SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String newFileName)
throws PortalException,
SystemException
- Specified by:
updateFile in interface Store
- Throws:
PortalException
SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
byte[] bytes)
throws PortalException,
SystemException
- Specified by:
updateFile in interface Store
- Throws:
PortalException
SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.File file)
throws PortalException,
SystemException
- Specified by:
updateFile in interface Store
- Throws:
PortalException
SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.InputStream is)
throws PortalException,
SystemException
- Specified by:
updateFile in interface Store
- Throws:
PortalException
SystemException
updateFileVersion
public void updateFileVersion(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String fromVersionLabel,
java.lang.String toVersionLabel)
throws PortalException,
SystemException
- Specified by:
updateFileVersion in interface Store
- Throws:
PortalException
SystemException