Class DLStoreImpl
Object
com.liferay.portlet.documentlibrary.store.DLStoreImpl
- All Implemented Interfaces:
com.liferay.document.library.kernel.store.DLStore
public class DLStoreImpl
extends Object
implements com.liferay.document.library.kernel.store.DLStore
- Author:
- Brian Wing Shun Chan, Alexander Chow, Edward Han, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, byte[] bytes) voidvoidaddFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) voidcopyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) voiddeleteDirectory(long companyId, long repositoryId, String dirName) voiddeleteFile(long companyId, long repositoryId, String fileName) voiddeleteFile(long companyId, long repositoryId, String fileName, String versionLabel) getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) String[]getFileNames(long companyId, long repositoryId, String dirName) longgetFileSize(long companyId, long repositoryId, String fileName) booleanstatic voidsetStore(com.liferay.document.library.kernel.store.Store store) voidupdateFile(long companyId, long repositoryId, long newRepositoryId, String fileName) voidupdateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) voidupdateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) voidupdateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel)
-
Constructor Details
-
DLStoreImpl
public DLStoreImpl()
-
-
Method Details
-
setStore
public static void setStore(com.liferay.document.library.kernel.store.Store store) -
addFile
public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addFile
public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addFile
public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyFileVersion
public void copyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
copyFileVersionin interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteDirectory
public void deleteDirectory(long companyId, long repositoryId, String dirName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteDirectoryin interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFile
public void deleteFile(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFile
public void deleteFile(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileAsStream
public InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileAsStreamin interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileNames
public String[] getFileNames(long companyId, long repositoryId, String dirName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileNamesin interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileSize
public long getFileSize(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getFileSizein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasFile
public boolean hasFile(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
hasFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFile
public void updateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFile
public void updateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFile
public void updateFile(long companyId, long repositoryId, long newRepositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFilein interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileVersion
public void updateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateFileVersionin interfacecom.liferay.document.library.kernel.store.DLStore- Throws:
com.liferay.portal.kernel.exception.PortalException
-