Liferay 6.1.2-ce-ga3

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 http://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)
           
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 com.liferay.portlet.documentlibrary.store.BaseStore
addFile, addFile, getFile, getFileAsBytes, getFileAsBytes, getFileAsStream, hasFile, 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

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

Liferay 6.1.2-ce-ga3