Liferay 7.0-ce-m6

com.liferay.portlet.documentlibrary.store
Class AdvancedFileSystemStore

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.store.BaseStore
      extended by com.liferay.portlet.documentlibrary.store.FileSystemStore
          extended by com.liferay.portlet.documentlibrary.store.AdvancedFileSystemStore
All Implemented Interfaces:
Store

public class AdvancedFileSystemStore
extends FileSystemStore

See https://issues.liferay.com/browse/LPS-1976.


Field Summary
 
Fields inherited from interface com.liferay.portlet.documentlibrary.store.Store
VERSION_DEFAULT
 
Constructor Summary
AdvancedFileSystemStore()
           
 
Method Summary
protected  void buildPath(StringBundler sb, String fileNameFragment)
           
protected  List<String> getAdvancedFileNames(long companyId, long repositoryId, String fileName)
          Deprecated. As of 7.0.0, replaced by getFileNames(List, String, String)
protected  int getDepth(String path)
           
protected  File getDirNameDir(long companyId, long repositoryId, String dirName)
           
protected  File getFileNameDir(long companyId, long repositoryId, String fileName)
           
protected  void getFileNames(List<String> fileNames, String dirName, String path)
           
protected  File getFileNameVersionFile(long companyId, long repositoryId, String fileName, String version)
           
protected  String getHeadVersionLabel(long companyId, long repositoryId, String fileName)
           
protected  String getRootDirName()
           
protected  String unbuildPath(String path)
           
 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, getFileNames, getFileSize, getRepositoryDir, hasDirectory, hasFile, updateFile, updateFile, updateFileVersion
 
Methods inherited from class com.liferay.portlet.documentlibrary.store.BaseStore
addFile, addFile, getFile, getFileAsBytes, getFileAsBytes, getFileAsStream, hasFile, logFailedDeletion, logFailedDeletion, move, updateFile, updateFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedFileSystemStore

public AdvancedFileSystemStore()
Method Detail

updateFile

public void updateFile(long companyId,
                       long repositoryId,
                       String fileName,
                       String newFileName)
                throws DuplicateFileException,
                       NoSuchFileException
Specified by:
updateFile in interface Store
Overrides:
updateFile in class FileSystemStore
Throws:
DuplicateFileException
NoSuchFileException

buildPath

protected void buildPath(StringBundler sb,
                         String fileNameFragment)

getAdvancedFileNames

@Deprecated
protected List<String> getAdvancedFileNames(long companyId,
                                                       long repositoryId,
                                                       String fileName)
Deprecated. As of 7.0.0, replaced by getFileNames(List, String, String)


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

getFileNames

protected void getFileNames(List<String> fileNames,
                            String dirName,
                            String path)
Overrides:
getFileNames 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

getRootDirName

protected String getRootDirName()
Overrides:
getRootDirName in class FileSystemStore

unbuildPath

protected String unbuildPath(String path)

Liferay 7.0-ce-m6