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 TypeMethodDescriptionvoid
addFile
(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, byte[] bytes) void
void
addFile
(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) void
copyFileVersion
(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) void
deleteDirectory
(long companyId, long repositoryId, String dirName) void
deleteFile
(long companyId, long repositoryId, String fileName) void
deleteFile
(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) long
getFileSize
(long companyId, long repositoryId, String fileName) boolean
static void
setStore
(com.liferay.document.library.kernel.store.Store store) void
updateFile
(long companyId, long repositoryId, long newRepositoryId, String fileName) void
updateFile
(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) void
updateFile
(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) void
updateFileVersion
(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:
addFile
in 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:
addFile
in 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:
addFile
in 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:
copyFileVersion
in 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:
deleteDirectory
in 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:
deleteFile
in 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:
deleteFile
in 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:
getFileAsStream
in 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:
getFileNames
in 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:
getFileSize
in 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:
hasFile
in 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:
updateFile
in 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:
updateFile
in 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:
updateFile
in 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:
updateFileVersion
in interfacecom.liferay.document.library.kernel.store.DLStore
- Throws:
com.liferay.portal.kernel.exception.PortalException
-