Liferay 6.0.5

com.liferay.documentlibrary.service
Class DLLocalServiceUtil

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

public class DLLocalServiceUtil
extends Object


Constructor Summary
DLLocalServiceUtil()
           
 
Method Summary
static void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, boolean validateFileExtension, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, InputStream is)
           
static void checkRoot(long companyId)
           
static InputStream getFileAsStream(long companyId, long repositoryId, String fileName)
           
static InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionNumber)
           
static DLLocalService getService()
           
static boolean hasFile(long companyId, long repositoryId, String fileName, String versionNumber)
           
static void move(String srcDir, String destDir)
           
static Hits search(long companyId, String portletId, long groupId, long userId, long[] repositoryIds, String keywords, int start, int end)
           
 void setService(DLLocalService service)
           
static void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String fileExtension, boolean validateFileExtension, String versionNumber, String sourceFileName, long fileEntryId, String properties, Date modifiedDate, ServiceContext serviceContext, InputStream is)
           
static void validate(String fileName, boolean validateFileExtension, byte[] bytes)
           
static void validate(String fileName, boolean validateFileExtension, File file)
           
static void validate(String fileName, boolean validateFileExtension, InputStream is)
           
static void validate(String fileName, String fileExtension, String sourceFileName, boolean validateFileExtension, InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLLocalServiceUtil

public DLLocalServiceUtil()
Method Detail

addFile

public static void addFile(long companyId,
                           String portletId,
                           long groupId,
                           long repositoryId,
                           String fileName,
                           boolean validateFileExtension,
                           long fileEntryId,
                           String properties,
                           Date modifiedDate,
                           ServiceContext serviceContext,
                           InputStream is)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

checkRoot

public static void checkRoot(long companyId)
                      throws SystemException
Throws:
SystemException

getFileAsStream

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

getFileAsStream

public static InputStream getFileAsStream(long companyId,
                                          long repositoryId,
                                          String fileName,
                                          String versionNumber)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getService

public static DLLocalService getService()

hasFile

public static boolean hasFile(long companyId,
                              long repositoryId,
                              String fileName,
                              String versionNumber)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

move

public static void move(String srcDir,
                        String destDir)
                 throws SystemException
Throws:
SystemException

search

public static Hits search(long companyId,
                          String portletId,
                          long groupId,
                          long userId,
                          long[] repositoryIds,
                          String keywords,
                          int start,
                          int end)
                   throws SystemException
Throws:
SystemException

updateFile

public static void updateFile(long companyId,
                              String portletId,
                              long groupId,
                              long repositoryId,
                              String fileName,
                              String fileExtension,
                              boolean validateFileExtension,
                              String versionNumber,
                              String sourceFileName,
                              long fileEntryId,
                              String properties,
                              Date modifiedDate,
                              ServiceContext serviceContext,
                              InputStream is)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

validate

public static void validate(String fileName,
                            boolean validateFileExtension,
                            byte[] bytes)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

validate

public static void validate(String fileName,
                            boolean validateFileExtension,
                            File file)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

validate

public static void validate(String fileName,
                            boolean validateFileExtension,
                            InputStream is)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

validate

public static void validate(String fileName,
                            String fileExtension,
                            String sourceFileName,
                            boolean validateFileExtension,
                            InputStream is)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

setService

public void setService(DLLocalService service)

Liferay 6.0.5