public class AdvancedFileSystemStore extends FileSystemStore
See https://issues.liferay.com/browse/LPS-1976.
configurationAdmin| Constructor and Description |
|---|
AdvancedFileSystemStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(java.util.Map<java.lang.String,java.lang.Object> properties) |
protected void |
buildPath(com.liferay.portal.kernel.util.StringBundler sb,
java.lang.String fileNameFragment) |
protected java.util.List<java.lang.String> |
getAdvancedFileNames(long companyId,
long repositoryId,
java.lang.String fileName)
Deprecated.
As of 7.0.0, replaced by
getFileNames(List, String,
String) |
protected int |
getDepth(java.lang.String path) |
protected java.io.File |
getDirNameDir(long companyId,
long repositoryId,
java.lang.String dirName) |
protected java.io.File |
getFileNameDir(long companyId,
long repositoryId,
java.lang.String fileName) |
protected void |
getFileNames(java.util.List<java.lang.String> fileNames,
java.lang.String dirName,
java.lang.String path) |
protected java.io.File |
getFileNameVersionFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String version) |
protected java.lang.String |
getHeadVersionLabel(long companyId,
long repositoryId,
java.lang.String fileName) |
protected java.lang.String |
getRootDirName() |
protected java.lang.String |
unbuildPath(java.lang.String path) |
void |
updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String newFileName) |
addDirectory, addFile, checkRoot, copyFileVersion, deleteDirectory, deleteEmptyAncestors, deleteEmptyAncestors, deleteFile, deleteFile, getCompanyDir, getConfigurationDictionary, getFile, getFileAsBytes, getFileAsBytes, getFileAsStream, getFileNames, getFileNames, getFileSize, getRepositoryDir, hasDirectory, hasFile, initializeRootDir, setConfigurationAdmin, updateFile, updateFile, updateFileVersion, validatepublic void updateFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String newFileName)
throws com.liferay.document.library.kernel.exception.DuplicateFileException,
com.liferay.document.library.kernel.exception.NoSuchFileException
updateFile in interface com.liferay.document.library.kernel.store.StoreupdateFile in class FileSystemStorecom.liferay.document.library.kernel.exception.DuplicateFileExceptioncom.liferay.document.library.kernel.exception.NoSuchFileExceptionprotected void activate(java.util.Map<java.lang.String,java.lang.Object> properties)
activate in class FileSystemStoreprotected void buildPath(com.liferay.portal.kernel.util.StringBundler sb,
java.lang.String fileNameFragment)
@Deprecated
protected java.util.List<java.lang.String> getAdvancedFileNames(long companyId,
long repositoryId,
java.lang.String fileName)
getFileNames(List, String,
String)protected int getDepth(java.lang.String path)
protected java.io.File getDirNameDir(long companyId,
long repositoryId,
java.lang.String dirName)
getDirNameDir in class FileSystemStoreprotected java.io.File getFileNameDir(long companyId,
long repositoryId,
java.lang.String fileName)
getFileNameDir in class FileSystemStoreprotected void getFileNames(java.util.List<java.lang.String> fileNames,
java.lang.String dirName,
java.lang.String path)
getFileNames in class FileSystemStoreprotected java.io.File getFileNameVersionFile(long companyId,
long repositoryId,
java.lang.String fileName,
java.lang.String version)
getFileNameVersionFile in class FileSystemStoreprotected java.lang.String getHeadVersionLabel(long companyId,
long repositoryId,
java.lang.String fileName)
getHeadVersionLabel in class FileSystemStoreprotected java.lang.String getRootDirName()
getRootDirName in class FileSystemStoreprotected java.lang.String unbuildPath(java.lang.String path)