Liferay 6.0.5

com.liferay.documentlibrary.util
Class SafeFileNameHookWrapper

java.lang.Object
  extended by com.liferay.documentlibrary.util.SafeFileNameHookWrapper
All Implemented Interfaces:
Hook

public class SafeFileNameHookWrapper
extends Object
implements Hook


Field Summary
 
Fields inherited from interface com.liferay.documentlibrary.util.Hook
DEFAULT_VERSION
 
Constructor Summary
SafeFileNameHookWrapper(Hook hook)
           
 
Method Summary
 void addDirectory(long companyId, long repositoryId, String dirName)
           
 void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, byte[] bytes)
           
 void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, File file)
           
 void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, InputStream is)
           
 void checkRoot(long companyId)
           
 void deleteDirectory(long companyId, String portletId, long repositoryId, String dirName)
           
 void deleteFile(long companyId, String portletId, long repositoryId, String fileName)
           
 void deleteFile(long companyId, String portletId, long repositoryId, String fileName, String versionNumber)
           
 byte[] getFile(long companyId, long repositoryId, String fileName)
           
 byte[] getFile(long companyId, long repositoryId, String fileName, String versionNumber)
           
 InputStream getFileAsStream(long companyId, long repositoryId, String fileName)
           
 InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionNumber)
           
 String[] getFileNames(long companyId, long repositoryId, String dirName)
           
 long getFileSize(long companyId, long repositoryId, String fileName)
           
 boolean hasFile(long companyId, long repositoryId, String fileName, String versionNumber)
           
 void move(String srcDir, String destDir)
           
 void reindex(String[] ids)
           
protected  void renameUnsafeFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String safeFileName)
           
 void updateFile(long companyId, String portletId, long groupId, long repositoryId, long newRepositoryId, String fileName, long fileEntryId)
           
 void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String newFileName, boolean reindex)
           
 void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String versionNumber, String sourceFileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, byte[] bytes)
           
 void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String versionNumber, String sourceFileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, File file)
           
 void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String versionNumber, String sourceFileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeFileNameHookWrapper

public SafeFileNameHookWrapper(Hook hook)
Method Detail

addDirectory

public void addDirectory(long companyId,
                         long repositoryId,
                         String dirName)
                  throws PortalException,
                         SystemException
Specified by:
addDirectory in interface Hook
Throws:
PortalException
SystemException

addFile

public void addFile(long companyId,
                    String portletId,
                    long groupId,
                    long repositoryId,
                    String fileName,
                    long fileEntryId,
                    String properties,
                    Date modifiedDate,
                    ServiceContext serviceContext,
                    byte[] bytes)
             throws PortalException,
                    SystemException
Specified by:
addFile in interface Hook
Throws:
PortalException
SystemException

addFile

public void addFile(long companyId,
                    String portletId,
                    long groupId,
                    long repositoryId,
                    String fileName,
                    long fileEntryId,
                    String properties,
                    Date modifiedDate,
                    ServiceContext serviceContext,
                    File file)
             throws PortalException,
                    SystemException
Specified by:
addFile in interface Hook
Throws:
PortalException
SystemException

addFile

public void addFile(long companyId,
                    String portletId,
                    long groupId,
                    long repositoryId,
                    String fileName,
                    long fileEntryId,
                    String properties,
                    Date modifiedDate,
                    ServiceContext serviceContext,
                    InputStream is)
             throws PortalException,
                    SystemException
Specified by:
addFile in interface Hook
Throws:
PortalException
SystemException

checkRoot

public void checkRoot(long companyId)
               throws SystemException
Specified by:
checkRoot in interface Hook
Throws:
SystemException

deleteDirectory

public void deleteDirectory(long companyId,
                            String portletId,
                            long repositoryId,
                            String dirName)
                     throws PortalException,
                            SystemException
Specified by:
deleteDirectory in interface Hook
Throws:
PortalException
SystemException

deleteFile

public void deleteFile(long companyId,
                       String portletId,
                       long repositoryId,
                       String fileName)
                throws PortalException,
                       SystemException
Specified by:
deleteFile in interface Hook
Throws:
PortalException
SystemException

deleteFile

public void deleteFile(long companyId,
                       String portletId,
                       long repositoryId,
                       String fileName,
                       String versionNumber)
                throws PortalException,
                       SystemException
Specified by:
deleteFile in interface Hook
Throws:
PortalException
SystemException

getFile

public byte[] getFile(long companyId,
                      long repositoryId,
                      String fileName)
               throws PortalException,
                      SystemException
Specified by:
getFile in interface Hook
Throws:
PortalException
SystemException

getFile

public byte[] getFile(long companyId,
                      long repositoryId,
                      String fileName,
                      String versionNumber)
               throws PortalException,
                      SystemException
Specified by:
getFile in interface Hook
Throws:
PortalException
SystemException

getFileAsStream

public InputStream getFileAsStream(long companyId,
                                   long repositoryId,
                                   String fileName)
                            throws PortalException,
                                   SystemException
Specified by:
getFileAsStream in interface Hook
Throws:
PortalException
SystemException

getFileAsStream

public InputStream getFileAsStream(long companyId,
                                   long repositoryId,
                                   String fileName,
                                   String versionNumber)
                            throws PortalException,
                                   SystemException
Specified by:
getFileAsStream in interface Hook
Throws:
PortalException
SystemException

getFileNames

public String[] getFileNames(long companyId,
                             long repositoryId,
                             String dirName)
                      throws PortalException,
                             SystemException
Specified by:
getFileNames in interface Hook
Throws:
PortalException
SystemException

getFileSize

public long getFileSize(long companyId,
                        long repositoryId,
                        String fileName)
                 throws PortalException,
                        SystemException
Specified by:
getFileSize in interface Hook
Throws:
PortalException
SystemException

hasFile

public boolean hasFile(long companyId,
                       long repositoryId,
                       String fileName,
                       String versionNumber)
                throws PortalException,
                       SystemException
Specified by:
hasFile in interface Hook
Throws:
PortalException
SystemException

move

public void move(String srcDir,
                 String destDir)
          throws SystemException
Specified by:
move in interface Hook
Throws:
SystemException

reindex

public void reindex(String[] ids)
             throws SearchException
Specified by:
reindex in interface Hook
Throws:
SearchException

updateFile

public void updateFile(long companyId,
                       String portletId,
                       long groupId,
                       long repositoryId,
                       long newRepositoryId,
                       String fileName,
                       long fileEntryId)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Hook
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       String portletId,
                       long groupId,
                       long repositoryId,
                       String fileName,
                       String newFileName,
                       boolean reindex)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Hook
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       String portletId,
                       long groupId,
                       long repositoryId,
                       String fileName,
                       String versionNumber,
                       String sourceFileName,
                       long fileEntryId,
                       String properties,
                       Date modifiedDate,
                       ServiceContext serviceContext,
                       byte[] bytes)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Hook
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       String portletId,
                       long groupId,
                       long repositoryId,
                       String fileName,
                       String versionNumber,
                       String sourceFileName,
                       long fileEntryId,
                       String properties,
                       Date modifiedDate,
                       ServiceContext serviceContext,
                       File file)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Hook
Throws:
PortalException
SystemException

updateFile

public void updateFile(long companyId,
                       String portletId,
                       long groupId,
                       long repositoryId,
                       String fileName,
                       String versionNumber,
                       String sourceFileName,
                       long fileEntryId,
                       String properties,
                       Date modifiedDate,
                       ServiceContext serviceContext,
                       InputStream is)
                throws PortalException,
                       SystemException
Specified by:
updateFile in interface Hook
Throws:
PortalException
SystemException

renameUnsafeFile

protected void renameUnsafeFile(long companyId,
                                String portletId,
                                long groupId,
                                long repositoryId,
                                String fileName,
                                String safeFileName)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5