com.liferay.portlet.documentlibrary.store
Class DLStoreImpl
java.lang.Object
com.liferay.portlet.documentlibrary.store.DLStoreImpl
- All Implemented Interfaces:
- DLStore
public class DLStoreImpl
- extends Object
- implements DLStore
|
Method Summary |
void |
addDirectory(long companyId,
long repositoryId,
String dirName)
|
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 |
checkRoot(long companyId)
|
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)
|
File |
getFile(long companyId,
long repositoryId,
String fileName)
|
File |
getFile(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 |
hasDirectory(long companyId,
long repositoryId,
String dirName)
|
boolean |
hasFile(long companyId,
long repositoryId,
String fileName)
|
boolean |
hasFile(long companyId,
long repositoryId,
String fileName,
String versionLabel)
|
boolean |
isValidName(String name)
Deprecated. As of 7.0.0, replaced by DLValidatorUtil.isValidName(String) |
void |
move(String srcDir,
String destDir)
|
void |
updateFile(long companyId,
long repositoryId,
long newRepositoryId,
String fileName)
|
void |
updateFile(long companyId,
long repositoryId,
String fileName,
String newFileName)
|
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)
|
void |
validateDirectoryName(String directoryName)
Deprecated. As of 7.0.0, replaced by DLValidatorUtil.validateDirectoryName(String) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupLocalService
@BeanReference(type=GroupLocalService.class)
protected GroupLocalService groupLocalService
DLStoreImpl
public DLStoreImpl()
addDirectory
public void addDirectory(long companyId,
long repositoryId,
String dirName)
throws PortalException
- Specified by:
addDirectory in interface DLStore
- Throws:
PortalException
addFile
public void addFile(long companyId,
long repositoryId,
String fileName,
boolean validateFileExtension,
byte[] bytes)
throws PortalException
- Specified by:
addFile in interface DLStore
- Throws:
PortalException
addFile
public void addFile(long companyId,
long repositoryId,
String fileName,
boolean validateFileExtension,
File file)
throws PortalException
- Specified by:
addFile in interface DLStore
- Throws:
PortalException
addFile
public void addFile(long companyId,
long repositoryId,
String fileName,
boolean validateFileExtension,
InputStream is)
throws PortalException
- Specified by:
addFile in interface DLStore
- Throws:
PortalException
addFile
public void addFile(long companyId,
long repositoryId,
String fileName,
byte[] bytes)
throws PortalException
- Specified by:
addFile in interface DLStore
- Throws:
PortalException
addFile
public void addFile(long companyId,
long repositoryId,
String fileName,
File file)
throws PortalException
- Specified by:
addFile in interface DLStore
- Throws:
PortalException
addFile
public void addFile(long companyId,
long repositoryId,
String fileName,
InputStream is)
throws PortalException
- Specified by:
addFile in interface DLStore
- Throws:
PortalException
checkRoot
public void checkRoot(long companyId)
- Specified by:
checkRoot in interface DLStore
copyFileVersion
public void copyFileVersion(long companyId,
long repositoryId,
String fileName,
String fromVersionLabel,
String toVersionLabel)
throws PortalException
- Specified by:
copyFileVersion in interface DLStore
- Throws:
PortalException
deleteDirectory
public void deleteDirectory(long companyId,
long repositoryId,
String dirName)
- Specified by:
deleteDirectory in interface DLStore
deleteFile
public void deleteFile(long companyId,
long repositoryId,
String fileName)
throws PortalException
- Specified by:
deleteFile in interface DLStore
- Throws:
PortalException
deleteFile
public void deleteFile(long companyId,
long repositoryId,
String fileName,
String versionLabel)
throws PortalException
- Specified by:
deleteFile in interface DLStore
- Throws:
PortalException
getFile
public File getFile(long companyId,
long repositoryId,
String fileName)
throws PortalException
- Specified by:
getFile in interface DLStore
- Throws:
PortalException
getFile
public File getFile(long companyId,
long repositoryId,
String fileName,
String versionLabel)
throws PortalException
- Specified by:
getFile in interface DLStore
- Throws:
PortalException
getFileAsBytes
public byte[] getFileAsBytes(long companyId,
long repositoryId,
String fileName)
throws PortalException
- Specified by:
getFileAsBytes in interface DLStore
- Throws:
PortalException
getFileAsBytes
public byte[] getFileAsBytes(long companyId,
long repositoryId,
String fileName,
String versionLabel)
throws PortalException
- Specified by:
getFileAsBytes in interface DLStore
- Throws:
PortalException
getFileAsStream
public InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName)
throws PortalException
- Specified by:
getFileAsStream in interface DLStore
- Throws:
PortalException
getFileAsStream
public InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionLabel)
throws PortalException
- Specified by:
getFileAsStream in interface DLStore
- Throws:
PortalException
getFileNames
public String[] getFileNames(long companyId,
long repositoryId,
String dirName)
throws PortalException
- Specified by:
getFileNames in interface DLStore
- Throws:
PortalException
getFileSize
public long getFileSize(long companyId,
long repositoryId,
String fileName)
throws PortalException
- Specified by:
getFileSize in interface DLStore
- Throws:
PortalException
hasDirectory
public boolean hasDirectory(long companyId,
long repositoryId,
String dirName)
throws PortalException
- Specified by:
hasDirectory in interface DLStore
- Throws:
PortalException
hasFile
public boolean hasFile(long companyId,
long repositoryId,
String fileName)
throws PortalException
- Specified by:
hasFile in interface DLStore
- Throws:
PortalException
hasFile
public boolean hasFile(long companyId,
long repositoryId,
String fileName,
String versionLabel)
throws PortalException
- Specified by:
hasFile in interface DLStore
- Throws:
PortalException
isValidName
@Deprecated
public boolean isValidName(String name)
- Deprecated. As of 7.0.0, replaced by
DLValidatorUtil.isValidName(String)
- Specified by:
isValidName in interface DLStore
move
public void move(String srcDir,
String destDir)
- Specified by:
move in interface DLStore
updateFile
public void updateFile(long companyId,
long repositoryId,
long newRepositoryId,
String fileName)
throws PortalException
- Specified by:
updateFile in interface DLStore
- Throws:
PortalException
updateFile
public void updateFile(long companyId,
long repositoryId,
String fileName,
String newFileName)
throws PortalException
- Specified by:
updateFile in interface DLStore
- Throws:
PortalException
updateFile
public void updateFile(long companyId,
long repositoryId,
String fileName,
String fileExtension,
boolean validateFileExtension,
String versionLabel,
String sourceFileName,
File file)
throws PortalException
- Specified by:
updateFile in interface DLStore
- Throws:
PortalException
updateFile
public void updateFile(long companyId,
long repositoryId,
String fileName,
String fileExtension,
boolean validateFileExtension,
String versionLabel,
String sourceFileName,
InputStream is)
throws PortalException
- Specified by:
updateFile in interface DLStore
- Throws:
PortalException
updateFileVersion
public void updateFileVersion(long companyId,
long repositoryId,
String fileName,
String fromVersionLabel,
String toVersionLabel)
throws PortalException
- Specified by:
updateFileVersion in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
boolean validateFileExtension)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
boolean validateFileExtension,
byte[] bytes)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
boolean validateFileExtension,
File file)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
boolean validateFileExtension,
InputStream is)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
File file)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validate
public void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is)
throws PortalException
- Specified by:
validate in interface DLStore
- Throws:
PortalException
validateDirectoryName
@Deprecated
public void validateDirectoryName(String directoryName)
throws PortalException
- Deprecated. As of 7.0.0, replaced by
DLValidatorUtil.validateDirectoryName(String)
- Specified by:
validateDirectoryName in interface DLStore
- Throws:
PortalException
validate
protected void validate(String fileName,
boolean validateFileExtension,
String versionLabel)
throws PortalException
- Throws:
PortalException
validate
protected void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
File file,
String versionLabel)
throws PortalException
- Throws:
PortalException
validate
protected void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is,
String versionLabel)
throws PortalException
- Throws:
PortalException