public class DLStoreImpl
extends Object
implements com.liferay.document.library.kernel.store.DLStore
Constructor and Description |
---|
DLStoreImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest,
byte[] bytes) |
void |
addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest,
File file) |
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) |
InputStream |
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 |
hasFile(long companyId,
long repositoryId,
String fileName,
String versionLabel) |
static void |
setStore(com.liferay.document.library.kernel.store.Store store) |
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 |
updateFile(long companyId,
long repositoryId,
long newRepositoryId,
String fileName) |
void |
updateFileVersion(long companyId,
long repositoryId,
String fileName,
String fromVersionLabel,
String toVersionLabel) |
public static void setStore(com.liferay.document.library.kernel.store.Store store)
public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException
addFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) throws com.liferay.portal.kernel.exception.PortalException
addFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void addFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
addFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void copyFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws com.liferay.portal.kernel.exception.PortalException
copyFileVersion
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void deleteDirectory(long companyId, long repositoryId, String dirName) throws com.liferay.portal.kernel.exception.PortalException
deleteDirectory
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void deleteFile(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
deleteFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void deleteFile(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
deleteFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
getFileAsStream
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public String[] getFileNames(long companyId, long repositoryId, String dirName) throws com.liferay.portal.kernel.exception.PortalException
getFileNames
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public long getFileSize(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
getFileSize
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public boolean hasFile(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
hasFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void updateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, File file) throws com.liferay.portal.kernel.exception.PortalException
updateFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void updateFile(com.liferay.document.library.kernel.store.DLStoreRequest dlStoreRequest, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
updateFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void updateFile(long companyId, long repositoryId, long newRepositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
updateFile
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void updateFileVersion(long companyId, long repositoryId, String fileName, String fromVersionLabel, String toVersionLabel) throws com.liferay.portal.kernel.exception.PortalException
updateFileVersion
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException