Liferay 6.0.5

com.liferay.documentlibrary.util
Class BaseHook

java.lang.Object
  extended by com.liferay.documentlibrary.util.BaseHook
All Implemented Interfaces:
Hook
Direct Known Subclasses:
CMISHook, FileSystemHook, JCRHook, S3Hook

public abstract class BaseHook
extends Object
implements Hook


Field Summary
 
Fields inherited from interface com.liferay.documentlibrary.util.Hook
DEFAULT_VERSION
 
Constructor Summary
BaseHook()
           
 
Method Summary
abstract  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)
           
abstract  void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, InputStream is)
           
abstract  void checkRoot(long companyId)
           
abstract  void deleteDirectory(long companyId, String portletId, long repositoryId, String dirName)
           
abstract  void deleteFile(long companyId, String portletId, long repositoryId, String fileName)
           
abstract  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)
           
abstract  InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionNumber)
           
abstract  String[] getFileNames(long companyId, long repositoryId, String dirName)
           
abstract  long getFileSize(long companyId, long repositoryId, String fileName)
           
abstract  boolean hasFile(long companyId, long repositoryId, String fileName, String versionNumber)
           
abstract  void move(String srcDir, String destDir)
           
abstract  void reindex(String[] ids)
           
abstract  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 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)
           
abstract  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
 
Methods inherited from interface com.liferay.documentlibrary.util.Hook
updateFile
 

Constructor Detail

BaseHook

public BaseHook()
Method Detail

addDirectory

public abstract 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 abstract 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 abstract void checkRoot(long companyId)
                        throws SystemException
Specified by:
checkRoot in interface Hook
Throws:
SystemException

deleteDirectory

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

deleteFile

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

deleteFile

public abstract 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 abstract InputStream getFileAsStream(long companyId,
                                            long repositoryId,
                                            String fileName,
                                            String versionNumber)
                                     throws PortalException,
                                            SystemException
Specified by:
getFileAsStream in interface Hook
Throws:
PortalException
SystemException

getFileNames

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

getFileSize

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

hasFile

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

move

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

reindex

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

updateFile

public abstract 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 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 abstract 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

Liferay 6.0.5