com.liferay.portlet.documentlibrary.store
Class AdvancedFileSystemStore
java.lang.Object
com.liferay.portlet.documentlibrary.store.BaseStore
com.liferay.portlet.documentlibrary.store.FileSystemStore
com.liferay.portlet.documentlibrary.store.AdvancedFileSystemStore
- All Implemented Interfaces:
- Store
public class AdvancedFileSystemStore
- extends FileSystemStore
See http://issues.liferay.com/browse/LPS-1976.
Method Summary |
protected void |
buildPath(StringBundler sb,
String fileNameFragment)
|
protected List<String> |
getAdvancedFileNames(long companyId,
long repositoryId,
String fileName)
|
protected int |
getDepth(String path)
|
protected File |
getDirNameDir(long companyId,
long repositoryId,
String dirName)
|
protected File |
getFileNameDir(long companyId,
long repositoryId,
String fileName)
|
String[] |
getFileNames(long companyId,
long repositoryId)
|
protected File |
getFileNameVersionFile(long companyId,
long repositoryId,
String fileName,
String version)
|
protected String |
getHeadVersionLabel(long companyId,
long repositoryId,
String fileName)
|
void |
updateFile(long companyId,
long repositoryId,
String fileName,
String newFileName)
|
Methods inherited from class com.liferay.portlet.documentlibrary.store.FileSystemStore |
addDirectory, addFile, checkRoot, copyFileVersion, deleteDirectory, deleteEmptyAncestors, deleteEmptyAncestors, deleteFile, deleteFile, getCompanyDir, getFile, getFileAsStream, getFileNames, getFileSize, getRepositoryDir, hasDirectory, hasFile, move, updateFile, updateFile, updateFileVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdvancedFileSystemStore
public AdvancedFileSystemStore()
getFileNames
public String[] getFileNames(long companyId,
long repositoryId)
- Specified by:
getFileNames
in interface Store
- Overrides:
getFileNames
in class FileSystemStore
updateFile
public void updateFile(long companyId,
long repositoryId,
String fileName,
String newFileName)
throws PortalException,
SystemException
- Specified by:
updateFile
in interface Store
- Overrides:
updateFile
in class FileSystemStore
- Throws:
PortalException
SystemException
buildPath
protected void buildPath(StringBundler sb,
String fileNameFragment)
getAdvancedFileNames
protected List<String> getAdvancedFileNames(long companyId,
long repositoryId,
String fileName)
getDepth
protected int getDepth(String path)
getDirNameDir
protected File getDirNameDir(long companyId,
long repositoryId,
String dirName)
- Overrides:
getDirNameDir
in class FileSystemStore
getFileNameDir
protected File getFileNameDir(long companyId,
long repositoryId,
String fileName)
- Overrides:
getFileNameDir
in class FileSystemStore
getFileNameVersionFile
protected File getFileNameVersionFile(long companyId,
long repositoryId,
String fileName,
String version)
- Overrides:
getFileNameVersionFile
in class FileSystemStore
getHeadVersionLabel
protected String getHeadVersionLabel(long companyId,
long repositoryId,
String fileName)
- Overrides:
getHeadVersionLabel
in class FileSystemStore