com.liferay.documentlibrary.service
Interface DLService


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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void addDirectory(long companyId, long repositoryId, java.lang.String dirName)
           
 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, byte[] bytes)
           
 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.File file)
           
 void deleteDirectory(long companyId, java.lang.String portletId, long repositoryId, java.lang.String dirName)
           
 void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName)
           
 void deleteFile(long companyId, java.lang.String portletId, long repositoryId, java.lang.String fileName, double versionNumber)
           
 byte[] getFile(long companyId, long repositoryId, java.lang.String fileName)
           
 byte[] getFile(long companyId, long repositoryId, java.lang.String fileName, double versionNumber)
           
 java.lang.String[] getFileNames(long companyId, long repositoryId, java.lang.String dirName)
           
 long getFileSize(long companyId, long repositoryId, java.lang.String fileName)
           
 void reIndex(java.lang.String[] ids)
           
 void updateFile(long companyId, java.lang.String portletId, long groupId, long repositoryId, long newRepositoryId, java.lang.String fileName, long fileEntryId)
           
 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, byte[] bytes)
           
 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.File file)
           
 

Method Detail

addDirectory

void addDirectory(long companyId,
                  long repositoryId,
                  java.lang.String dirName)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

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.File file)
             throws com.liferay.portal.PortalException,
                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

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,
             byte[] bytes)
             throws com.liferay.portal.PortalException,
                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteDirectory

void deleteDirectory(long companyId,
                     java.lang.String portletId,
                     long repositoryId,
                     java.lang.String dirName)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFile

void deleteFile(long companyId,
                java.lang.String portletId,
                long repositoryId,
                java.lang.String fileName)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFile

void deleteFile(long companyId,
                java.lang.String portletId,
                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

getFile

byte[] getFile(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

getFile

byte[] getFile(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

getFileNames

java.lang.String[] getFileNames(long companyId,
                                long repositoryId,
                                java.lang.String dirName)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileSize

long getFileSize(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

reIndex

void reIndex(java.lang.String[] ids)
             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.File file)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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,
                byte[] bytes)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFile

void updateFile(long companyId,
                java.lang.String portletId,
                long groupId,
                long repositoryId,
                long newRepositoryId,
                java.lang.String fileName,
                long fileEntryId)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException