Liferay 6.0.5

com.liferay.documentlibrary.service
Class DLServiceUtil

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

public class DLServiceUtil
extends Object


Constructor Summary
DLServiceUtil()
           
 
Method Summary
static void addDirectory(long companyId, long repositoryId, String dirName)
           
static void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, byte[] bytes)
           
static void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, File file)
           
static void deleteDirectory(long companyId, String portletId, long repositoryId, String dirName)
           
static void deleteFile(long companyId, String portletId, long repositoryId, String fileName)
           
static void deleteFile(long companyId, String portletId, long repositoryId, String fileName, String versionNumber)
           
static byte[] getFile(long companyId, long repositoryId, String fileName)
           
static byte[] getFile(long companyId, long repositoryId, String fileName, String versionNumber)
           
static String[] getFileNames(long companyId, long repositoryId, String dirName)
           
static long getFileSize(long companyId, long repositoryId, String fileName)
           
static DLService getService()
           
 void setService(DLService service)
           
static void updateFile(long companyId, String portletId, long groupId, long repositoryId, long newRepositoryId, String fileName, long fileEntryId)
           
static void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String newFileName, boolean reindex)
           
static 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)
           
static 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)
           
 
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,
                                String dirName)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

addFile

public static 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
Throws:
PortalException
SystemException

addFile

public static 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
Throws:
PortalException
SystemException

deleteDirectory

public static void deleteDirectory(long companyId,
                                   String portletId,
                                   long repositoryId,
                                   String dirName)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

deleteFile

public static void deleteFile(long companyId,
                              String portletId,
                              long repositoryId,
                              String fileName)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteFile

public static void deleteFile(long companyId,
                              String portletId,
                              long repositoryId,
                              String fileName,
                              String versionNumber)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getFile

public static byte[] getFile(long companyId,
                             long repositoryId,
                             String fileName)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getFile

public static byte[] getFile(long companyId,
                             long repositoryId,
                             String fileName,
                             String versionNumber)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getFileNames

public static String[] getFileNames(long companyId,
                                    long repositoryId,
                                    String dirName)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getFileSize

public static long getFileSize(long companyId,
                               long repositoryId,
                               String fileName)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getService

public static DLService getService()

updateFile

public static void updateFile(long companyId,
                              String portletId,
                              long groupId,
                              long repositoryId,
                              long newRepositoryId,
                              String fileName,
                              long fileEntryId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateFile

public static 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
Throws:
PortalException
SystemException

updateFile

public static 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
Throws:
PortalException
SystemException

updateFile

public static void updateFile(long companyId,
                              String portletId,
                              long groupId,
                              long repositoryId,
                              String fileName,
                              String newFileName,
                              boolean reindex)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

setService

public void setService(DLService service)

Liferay 6.0.5