public class DLStoreImpl
extends Object
implements com.liferay.document.library.kernel.store.DLStore
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.service.GroupLocalService |
groupLocalService
Deprecated.
As of Mueller (7.2.x), with no direct replacement
|
Constructor and Description |
---|
DLStoreImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFile(long companyId,
long repositoryId,
String fileName,
boolean validateFileExtension,
byte[] bytes) |
void |
addFile(long companyId,
long repositoryId,
String fileName,
boolean validateFileExtension,
File file) |
void |
addFile(long companyId,
long repositoryId,
String fileName,
boolean validateFileExtension,
InputStream is) |
void |
addFile(long companyId,
long repositoryId,
String fileName,
byte[] bytes) |
void |
addFile(long companyId,
long repositoryId,
String fileName,
File file) |
void |
addFile(long companyId,
long repositoryId,
String fileName,
InputStream is) |
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) |
byte[] |
getFileAsBytes(long companyId,
long repositoryId,
String fileName) |
byte[] |
getFileAsBytes(long companyId,
long repositoryId,
String fileName,
String versionLabel) |
InputStream |
getFileAsStream(long companyId,
long repositoryId,
String fileName) |
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) |
boolean |
hasFile(long companyId,
long repositoryId,
String fileName,
String versionLabel) |
void |
updateFile(long companyId,
long repositoryId,
String fileName,
String fileExtension,
boolean validateFileExtension,
String versionLabel,
String sourceFileName,
File file) |
void |
updateFile(long companyId,
long repositoryId,
String fileName,
String fileExtension,
boolean validateFileExtension,
String versionLabel,
String sourceFileName,
InputStream is) |
void |
updateFileVersion(long companyId,
long repositoryId,
String fileName,
String fromVersionLabel,
String toVersionLabel) |
void |
validate(String fileName,
boolean validateFileExtension) |
void |
validate(String fileName,
boolean validateFileExtension,
byte[] bytes) |
void |
validate(String fileName,
boolean validateFileExtension,
File file) |
void |
validate(String fileName,
boolean validateFileExtension,
InputStream is) |
protected void |
validate(String fileName,
boolean validateFileExtension,
String versionLabel) |
void |
validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension) |
void |
validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
File file) |
protected void |
validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
File file,
String versionLabel) |
void |
validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is) |
protected void |
validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is,
String versionLabel) |
@Deprecated protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService
public void addFile(long companyId, long repositoryId, String fileName, boolean validateFileExtension, 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(long companyId, long repositoryId, String fileName, boolean validateFileExtension, 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(long companyId, long repositoryId, String fileName, boolean validateFileExtension, InputStream is) 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(long companyId, long repositoryId, String fileName, 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(long companyId, long repositoryId, String fileName, 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(long companyId, long repositoryId, String fileName, InputStream is) 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)
deleteDirectory
in interface com.liferay.document.library.kernel.store.DLStore
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 byte[] getFileAsBytes(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
getFileAsBytes
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public byte[] getFileAsBytes(long companyId, long repositoryId, String fileName, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
getFileAsBytes
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public InputStream getFileAsStream(long companyId, long repositoryId, String fileName) throws com.liferay.portal.kernel.exception.PortalException
getFileAsStream
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) throws com.liferay.portal.kernel.exception.PortalException
hasFile
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(long companyId, long repositoryId, String fileName, String fileExtension, boolean validateFileExtension, String versionLabel, String sourceFileName, 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(long companyId, long repositoryId, String fileName, String fileExtension, boolean validateFileExtension, String versionLabel, String sourceFileName, InputStream is) 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
public void validate(String fileName, boolean validateFileExtension) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void validate(String fileName, boolean validateFileExtension, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void validate(String fileName, boolean validateFileExtension, File file) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void validate(String fileName, boolean validateFileExtension, InputStream is) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void validate(String fileName, String fileExtension, String sourceFileName, boolean validateFileExtension) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void validate(String fileName, String fileExtension, String sourceFileName, boolean validateFileExtension, File file) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
public void validate(String fileName, String fileExtension, String sourceFileName, boolean validateFileExtension, InputStream is) throws com.liferay.portal.kernel.exception.PortalException
validate
in interface com.liferay.document.library.kernel.store.DLStore
com.liferay.portal.kernel.exception.PortalException
protected void validate(String fileName, boolean validateFileExtension, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validate(String fileName, String fileExtension, String sourceFileName, boolean validateFileExtension, File file, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validate(String fileName, String fileExtension, String sourceFileName, boolean validateFileExtension, InputStream is, String versionLabel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException