com.liferay.documentlibrary.service
Interface DLService


public interface DLService

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void addDirectory(long companyId, long repositoryId, java.lang.String dirName)
           
 void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, java.lang.String properties, byte[] byteArray)
           
 void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, java.lang.String properties, java.io.File file)
           
 void deleteDirectory(long companyId, java.lang.String portletId, long repositoryId, java.lang.String dirName)
           
 void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName)
           
 void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName, double versionNumber)
           
 byte[] getFile(long companyId, long repositoryId, java.lang.String fileName)
           
 byte[] getFile(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
 java.lang.String[] getFileNames(long companyId, long repositoryId, java.lang.String dirName)
           
 long getFileSize(long companyId, long repositoryId, java.lang.String fileName)
           
 void reIndex(java.lang.String[] ids)
           
 void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, long newRepositoryId, java.lang.String fileName)
           
 void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, double versionNumber, java.lang.String sourceFileName, java.lang.String properties, byte[] byteArray)
           
 void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, double versionNumber, java.lang.String sourceFileName, java.lang.String properties, java.io.File file)
           
 

Method Detail

addDirectory

public void addDirectory(long companyId,
                         long repositoryId,
                         java.lang.String dirName)
                  throws com.liferay.portal.PortalException,
                         java.rmi.RemoteException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

addFile

public void addFile(long companyId,
                    java.lang.String portletId,
                    long groupId,
                    long repositoryId,
                    java.lang.String fileName,
                    java.lang.String properties,
                    java.io.File file)
             throws com.liferay.portal.PortalException,
                    java.rmi.RemoteException,
                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

addFile

public void addFile(long companyId,
                    java.lang.String portletId,
                    long groupId,
                    long repositoryId,
                    java.lang.String fileName,
                    java.lang.String properties,
                    byte[] byteArray)
             throws com.liferay.portal.PortalException,
                    java.rmi.RemoteException,
                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

deleteDirectory

public void deleteDirectory(long companyId,
                            java.lang.String portletId,
                            long repositoryId,
                            java.lang.String dirName)
                     throws com.liferay.portal.PortalException,
                            java.rmi.RemoteException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

deleteFile

public void deleteFile(long companyId,
                       java.lang.String portletId,
                       long repositoryId,
                       java.lang.String fileName)
                throws com.liferay.portal.PortalException,
                       java.rmi.RemoteException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

deleteFile

public void deleteFile(long companyId,
                       java.lang.String portletId,
                       long repositoryId,
                       java.lang.String fileName,
                       double versionNumber)
                throws com.liferay.portal.PortalException,
                       java.rmi.RemoteException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

getFile

public byte[] getFile(long companyId,
                      long repositoryId,
                      java.lang.String fileName)
               throws com.liferay.portal.PortalException,
                      java.rmi.RemoteException,
                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

getFile

public byte[] getFile(long companyId,
                      long repositoryId,
                      java.lang.String fileName,
                      double versionNumber)
               throws com.liferay.portal.PortalException,
                      java.rmi.RemoteException,
                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

getFileNames

public java.lang.String[] getFileNames(long companyId,
                                       long repositoryId,
                                       java.lang.String dirName)
                                throws com.liferay.portal.PortalException,
                                       java.rmi.RemoteException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

getFileSize

public long getFileSize(long companyId,
                        long repositoryId,
                        java.lang.String fileName)
                 throws com.liferay.portal.PortalException,
                        java.rmi.RemoteException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

reIndex

public void reIndex(java.lang.String[] ids)
             throws java.rmi.RemoteException,
                    com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

updateFile

public void updateFile(long companyId,
                       java.lang.String portletId,
                       long groupId,
                       long repositoryId,
                       java.lang.String fileName,
                       double versionNumber,
                       java.lang.String sourceFileName,
                       java.lang.String properties,
                       java.io.File file)
                throws com.liferay.portal.PortalException,
                       java.rmi.RemoteException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

updateFile

public void updateFile(long companyId,
                       java.lang.String portletId,
                       long groupId,
                       long repositoryId,
                       java.lang.String fileName,
                       double versionNumber,
                       java.lang.String sourceFileName,
                       java.lang.String properties,
                       byte[] byteArray)
                throws com.liferay.portal.PortalException,
                       java.rmi.RemoteException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

updateFile

public void updateFile(long companyId,
                       java.lang.String portletId,
                       long groupId,
                       long repositoryId,
                       long newRepositoryId,
                       java.lang.String fileName)
                throws com.liferay.portal.PortalException,
                       java.rmi.RemoteException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException