com.liferay.documentlibrary.service
Class DLServiceUtil

java.lang.Object
  extended by com.liferay.documentlibrary.service.DLServiceUtil

public class DLServiceUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
DLServiceUtil()
           
 
Method Summary
static void addDirectory(long companyId, long repositoryId, java.lang.String dirName)
           
static void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsEntries, byte[] bytes)
           
static void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsEntries, java.io.File file)
           
static void deleteDirectory(long companyId, java.lang.String portletId, long repositoryId, java.lang.String dirName)
           
static void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName)
           
static void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName, double versionNumber)
           
static byte[] getFile(long companyId, long repositoryId, java.lang.String fileName)
           
static byte[] getFile(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
static java.lang.String[] getFileNames(long companyId, long repositoryId, java.lang.String dirName)
           
static long getFileSize(long companyId, long repositoryId, java.lang.String fileName)
           
static void reIndex(java.lang.String[] ids)
           
 void setService(DLService service)
           
static void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, long newRepositoryId, java.lang.String fileName, long fileEntryId)
           
static void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, double versionNumber, java.lang.String sourceFileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsEntries, byte[] bytes)
           
static void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, double versionNumber, java.lang.String sourceFileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, java.lang.String[] tagsEntries, java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLServiceUtil

public DLServiceUtil()
Method Detail

addDirectory

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

addFile

public static void addFile(long companyId,
                           java.lang.String portletId,
                           long groupId,
                           long repositoryId,
                           java.lang.String fileName,
                           long fileEntryId,
                           java.lang.String properties,
                           java.util.Date modifiedDate,
                           java.lang.String[] tagsEntries,
                           java.io.File file)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFile

public static void addFile(long companyId,
                           java.lang.String portletId,
                           long groupId,
                           long repositoryId,
                           java.lang.String fileName,
                           long fileEntryId,
                           java.lang.String properties,
                           java.util.Date modifiedDate,
                           java.lang.String[] tagsEntries,
                           byte[] bytes)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteDirectory

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

deleteFile

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

deleteFile

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

getFile

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

getFile

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

getFileNames

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

getFileSize

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

reIndex

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

updateFile

public static void updateFile(long companyId,
                              java.lang.String portletId,
                              long groupId,
                              long repositoryId,
                              java.lang.String fileName,
                              double versionNumber,
                              java.lang.String sourceFileName,
                              long fileEntryId,
                              java.lang.String properties,
                              java.util.Date modifiedDate,
                              java.lang.String[] tagsEntries,
                              java.io.File file)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFile

public static void updateFile(long companyId,
                              java.lang.String portletId,
                              long groupId,
                              long repositoryId,
                              java.lang.String fileName,
                              double versionNumber,
                              java.lang.String sourceFileName,
                              long fileEntryId,
                              java.lang.String properties,
                              java.util.Date modifiedDate,
                              java.lang.String[] tagsEntries,
                              byte[] bytes)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFile

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

setService

public void setService(DLService service)