com.liferay.documentlibrary.service
Interface DLLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface DLLocalService

View Source

Author:
Brian Wing Shun Chan

Method Summary
 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)
           
 void checkRoot(long companyId)
           
 java.io.InputStream getFileAsStream(long companyId, long repositoryId, java.lang.String fileName)
           
 java.io.InputStream getFileAsStream(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
 boolean hasFile(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
 void move(java.lang.String srcDir, java.lang.String destDir)
           
 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 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)
           
 void validate(java.lang.String fileName, byte[] bytes)
           
 void validate(java.lang.String fileName, java.io.File file)
           
 void validate(java.lang.String fileName, java.io.InputStream is)
           
 void validate(java.lang.String fileName, java.lang.String sourceFileName, java.io.InputStream is)
           
 

Method Detail

addFile

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

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

getFileAsStream

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

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

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

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

search

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

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

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

validate

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

validate

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

validate

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