com.liferay.documentlibrary.service.impl
Class DLServiceImpl

java.lang.Object
  extended by com.liferay.documentlibrary.service.impl.DLServiceImpl
All Implemented Interfaces:
com.liferay.documentlibrary.service.DLService

public class DLServiceImpl
extends java.lang.Object
implements com.liferay.documentlibrary.service.DLService

View Source

Author:
Brian Wing Shun Chan, Michael Young

Field Summary
static java.lang.String GROUP_NAME
           
static java.lang.String[] GROUP_NAME_ARRAY
           
static java.lang.String VERSION
           
 
Constructor Summary
DLServiceImpl()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_NAME

public static final java.lang.String GROUP_NAME

GROUP_NAME_ARRAY

public static final java.lang.String[] GROUP_NAME_ARRAY

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values
Constructor Detail

DLServiceImpl

public DLServiceImpl()
Method Detail

addDirectory

public void addDirectory(long companyId,
                         long repositoryId,
                         java.lang.String dirName)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Specified by:
addDirectory in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFile

public 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
Specified by:
addFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFile

public 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
Specified by:
addFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteDirectory

public void deleteDirectory(long companyId,
                            java.lang.String portletId,
                            long repositoryId,
                            java.lang.String dirName)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Specified by:
deleteDirectory in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFile

public void deleteFile(long companyId,
                       java.lang.String portletId,
                       long repositoryId,
                       java.lang.String fileName)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Specified by:
deleteFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFile

public 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
Specified by:
deleteFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFile

public byte[] getFile(long companyId,
                      long repositoryId,
                      java.lang.String fileName)
               throws com.liferay.portal.PortalException,
                      com.liferay.portal.SystemException
Specified by:
getFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFile

public byte[] getFile(long companyId,
                      long repositoryId,
                      java.lang.String fileName,
                      double versionNumber)
               throws com.liferay.portal.PortalException,
                      com.liferay.portal.SystemException
Specified by:
getFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileNames

public java.lang.String[] getFileNames(long companyId,
                                       long repositoryId,
                                       java.lang.String dirName)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Specified by:
getFileNames in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileSize

public long getFileSize(long companyId,
                        long repositoryId,
                        java.lang.String fileName)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Specified by:
getFileSize in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

reIndex

public void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.SystemException
Specified by:
reIndex in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.SystemException

updateFile

public 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
Specified by:
updateFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFile

public 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
Specified by:
updateFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFile

public 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
Specified by:
updateFile in interface com.liferay.documentlibrary.service.DLService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException