com.liferay.portlet.documentlibrary.store
Class DBStore
java.lang.Object
com.liferay.portlet.documentlibrary.store.BaseStore
com.liferay.portlet.documentlibrary.store.DBStore
- All Implemented Interfaces:
- com.liferay.portlet.documentlibrary.store.Store
public class DBStore
- extends com.liferay.portlet.documentlibrary.store.BaseStore
- Author:
- Shuyang Zhou, Tina Tian
| Fields inherited from interface com.liferay.portlet.documentlibrary.store.Store |
VERSION_DEFAULT |
|
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 inputStream)
|
void |
checkRoot(long companyId)
|
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.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,
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 inputStream)
|
| Methods inherited from class com.liferay.portlet.documentlibrary.store.BaseStore |
copyFileVersion, getFile, getFile, getFileAsBytes, getFileAsBytes, hasFile, updateFileVersion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBStore
public DBStore()
addDirectory
public void addDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
- Specified by:
addDirectory in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
addDirectory in class com.liferay.portlet.documentlibrary.store.BaseStore
addFile
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
addFile in interface com.liferay.portlet.documentlibrary.store.Store- Overrides:
addFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFile
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
addFile in interface com.liferay.portlet.documentlibrary.store.Store- Overrides:
addFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFile
public void addFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
addFile in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
addFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkRoot
public void checkRoot(long companyId)
- Specified by:
checkRoot in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
checkRoot in class com.liferay.portlet.documentlibrary.store.BaseStore
deleteDirectory
public void deleteDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteDirectory in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
deleteDirectory in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.SystemException
deleteFile
public void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteFile in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
deleteFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.SystemException
deleteFile
public void deleteFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
deleteFile in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
deleteFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileAsStream in interface com.liferay.portlet.documentlibrary.store.Store- Overrides:
getFileAsStream in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileAsStream in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
getFileAsStream in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileNames
public java.lang.String[] getFileNames(long companyId,
long repositoryId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileNames
public java.lang.String[] getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileNames in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
getFileNames in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileSize
public long getFileSize(long companyId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
getFileSize in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
getFileSize in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
hasDirectory
public boolean hasDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
- Specified by:
hasDirectory in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
hasDirectory in class com.liferay.portlet.documentlibrary.store.BaseStore
hasFile
public boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
hasFile in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
hasFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.SystemException
move
public void move(java.lang.String srcDir,
java.lang.String destDir)
- Specified by:
move in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
move in class com.liferay.portlet.documentlibrary.store.BaseStore
updateFile
public void updateFile(long companyId,
long repositoryId,
long newRepositoryId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFile in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
updateFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String newFileName)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFile in interface com.liferay.portlet.documentlibrary.store.Store- Overrides:
updateFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFile in interface com.liferay.portlet.documentlibrary.store.Store- Overrides:
updateFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFile
public void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String versionLabel,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Specified by:
updateFile in interface com.liferay.portlet.documentlibrary.store.Store- Specified by:
updateFile in class com.liferay.portlet.documentlibrary.store.BaseStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException