com.liferay.documentlibrary.service
Class DLLocalServiceUtil

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

public class DLLocalServiceUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
DLLocalServiceUtil()
           
 
Method Summary
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.InputStream is)
           
static void checkRoot(long companyId)
           
static java.io.InputStream getFileAsStream(long companyId, long repositoryId, java.lang.String fileName)
           
static java.io.InputStream getFileAsStream(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
static boolean hasFile(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
static void move(java.lang.String srcDir, java.lang.String destDir)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String portletId, long groupId, long userId, long[] repositoryIds, java.lang.String keywords, int start, int end)
           
 void setService(DLLocalService service)
           
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.InputStream is)
           
static void validate(java.lang.String fileName, byte[] bytes)
           
static void validate(java.lang.String fileName, java.io.File file)
           
static void validate(java.lang.String fileName, java.io.InputStream is)
           
static void validate(java.lang.String fileName, java.lang.String sourceFileName, java.io.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,
                           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.InputStream is)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkRoot

public static void checkRoot(long companyId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileAsStream

public static java.io.InputStream getFileAsStream(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

getFileAsStream

public static java.io.InputStream getFileAsStream(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

hasFile

public static boolean hasFile(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

move

public static void move(java.lang.String srcDir,
                        java.lang.String destDir)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           java.lang.String portletId,
                                                           long groupId,
                                                           long userId,
                                                           long[] repositoryIds,
                                                           java.lang.String keywords,
                                                           int start,
                                                           int end)
                                                    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.InputStream is)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

public static void validate(java.lang.String fileName,
                            java.io.File file)
                     throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

public static void validate(java.lang.String fileName,
                            byte[] bytes)
                     throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

public static void validate(java.lang.String fileName,
                            java.io.InputStream is)
                     throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

public static void validate(java.lang.String fileName,
                            java.lang.String sourceFileName,
                            java.io.InputStream is)
                     throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

setService

public void setService(DLLocalService service)