com.liferay.documentlibrary.service
Interface DLLocalService


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


Method Summary
 void addFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, java.lang.String fileName, boolean validateFileExtension, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, ServiceContext serviceContext, 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, java.lang.String versionNumber)
           
 boolean hasFile(long companyId, long repositoryId, java.lang.String fileName, java.lang.String 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, boolean validateFileExtension, java.lang.String versionNumber, java.lang.String sourceFileName, long fileEntryId, java.lang.String properties, java.util.Date modifiedDate, ServiceContext serviceContext, java.io.InputStream is)
           
 void validate(java.lang.String fileName, boolean validateFileExtension, byte[] bytes)
           
 void validate(java.lang.String fileName, boolean validateFileExtension, java.io.File file)
           
 void validate(java.lang.String fileName, boolean validateFileExtension, 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,
             boolean validateFileExtension,
             long fileEntryId,
             java.lang.String properties,
             java.util.Date modifiedDate,
             ServiceContext serviceContext,
             java.io.InputStream is)
             throws com.liferay.portal.kernel.exception.PortalException,
                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

checkRoot

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

getFileAsStream

java.io.InputStream getFileAsStream(long companyId,
                                    long repositoryId,
                                    java.lang.String fileName)
                                    throws com.liferay.portal.kernel.exception.PortalException,
                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileAsStream

java.io.InputStream getFileAsStream(long companyId,
                                    long repositoryId,
                                    java.lang.String fileName,
                                    java.lang.String versionNumber)
                                    throws com.liferay.portal.kernel.exception.PortalException,
                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasFile

boolean hasFile(long companyId,
                long repositoryId,
                java.lang.String fileName,
                java.lang.String versionNumber)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

move

void move(java.lang.String srcDir,
          java.lang.String destDir)
          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateFile

void updateFile(long companyId,
                java.lang.String portletId,
                long groupId,
                long repositoryId,
                java.lang.String fileName,
                boolean validateFileExtension,
                java.lang.String versionNumber,
                java.lang.String sourceFileName,
                long fileEntryId,
                java.lang.String properties,
                java.util.Date modifiedDate,
                ServiceContext serviceContext,
                java.io.InputStream is)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

validate

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

validate

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

validate

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

validate

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