com.liferay.portlet.documentlibrary.service
Interface DLFileEntryLocalService


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

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
DLFileEntryLocalServiceUtil

Method Summary
 DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
           
 DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String extraSettings, byte[] bytes, ServiceContext serviceContext)
           
 DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String extraSettings, java.io.File file, ServiceContext serviceContext)
           
 DLFileEntry addFileEntry(java.lang.String uuid, long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String extraSettings, byte[] bytes, ServiceContext serviceContext)
           
 DLFileEntry addFileEntry(java.lang.String uuid, long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String extraSettings, java.io.InputStream is, long size, ServiceContext serviceContext)
           
 void addFileEntryResources(DLFileEntry fileEntry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFileEntryResources(DLFileEntry fileEntry, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addFileEntryResources(long fileEntryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFileEntryResources(long fileEntryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 DLFileEntry addOrOverwriteFileEntry(long userId, long folderId, java.lang.String name, java.lang.String sourceName, java.lang.String title, java.lang.String description, java.lang.String extraSettings, java.io.File file, ServiceContext serviceContext)
           
 DLFileEntry createDLFileEntry(long fileEntryId)
           
 void deleteDLFileEntry(DLFileEntry dlFileEntry)
           
 void deleteDLFileEntry(long fileEntryId)
           
 void deleteFileEntries(long folderId)
           
 void deleteFileEntry(DLFileEntry fileEntry)
           
 void deleteFileEntry(long folderId, java.lang.String name)
           
 void deleteFileEntry(long folderId, java.lang.String name, double version)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<DLFileEntry> getCompanyFileEntries(long companyId, int start, int end)
           
 java.util.List<DLFileEntry> getCompanyFileEntries(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getCompanyFileEntriesCount(long companyId)
           
 java.util.List<DLFileEntry> getDLFileEntries(int start, int end)
           
 int getDLFileEntriesCount()
           
 DLFileEntry getDLFileEntry(long fileEntryId)
           
 java.io.InputStream getFileAsStream(long companyId, long userId, long folderId, java.lang.String name)
           
 java.io.InputStream getFileAsStream(long companyId, long userId, long folderId, java.lang.String name, double version)
           
 java.util.List<DLFileEntry> getFileEntries(long folderId)
           
 java.util.List<DLFileEntry> getFileEntries(long folderId, int start, int end)
           
 java.util.List<DLFileEntry> getFileEntries(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getFileEntriesCount(long folderId)
           
 DLFileEntry getFileEntry(long fileEntryId)
           
 DLFileEntry getFileEntry(long folderId, java.lang.String name)
           
 DLFileEntry getFileEntryByTitle(long folderId, java.lang.String titleWithExtension)
           
 DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds)
           
 java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
           
 java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end)
           
 java.util.List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupFileEntriesCount(long groupId)
           
 int getGroupFileEntriesCount(long groupId, long userId)
           
 java.util.List<DLFileEntry> getNoAssetFileEntries()
           
 void reIndex(long fileEntryId)
           
 DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
           
 DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry, boolean merge)
           
 DLFileEntry updateFileEntry(long userId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String extraSettings, byte[] bytes, ServiceContext serviceContext)
           
 DLFileEntry updateFileEntry(long userId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String extraSettings, java.io.File file, ServiceContext serviceContext)
           
 DLFileEntry updateFileEntry(long userId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String extraSettings, java.io.InputStream is, long size, ServiceContext serviceContext)
           
 void updateTagsAsset(long userId, DLFileEntry fileEntry, java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
           
 

Method Detail

addDLFileEntry

DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createDLFileEntry

DLFileEntry createDLFileEntry(long fileEntryId)

deleteDLFileEntry

void deleteDLFileEntry(long fileEntryId)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteDLFileEntry

void deleteDLFileEntry(DLFileEntry dlFileEntry)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDLFileEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileEntry getDLFileEntry(long fileEntryId)
                           throws com.liferay.portal.SystemException,
                                  com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getDLFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getDLFileEntries(int start,
                                                           int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDLFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getDLFileEntriesCount()
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateDLFileEntry

DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateDLFileEntry

DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry,
                              boolean merge)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addFileEntry

DLFileEntry addFileEntry(long userId,
                         long folderId,
                         java.lang.String name,
                         java.lang.String title,
                         java.lang.String description,
                         java.lang.String extraSettings,
                         byte[] bytes,
                         ServiceContext serviceContext)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

DLFileEntry addFileEntry(long userId,
                         long folderId,
                         java.lang.String name,
                         java.lang.String title,
                         java.lang.String description,
                         java.lang.String extraSettings,
                         java.io.File file,
                         ServiceContext serviceContext)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

DLFileEntry addFileEntry(java.lang.String uuid,
                         long userId,
                         long folderId,
                         java.lang.String name,
                         java.lang.String title,
                         java.lang.String description,
                         java.lang.String extraSettings,
                         byte[] bytes,
                         ServiceContext serviceContext)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

DLFileEntry addFileEntry(java.lang.String uuid,
                         long userId,
                         long folderId,
                         java.lang.String name,
                         java.lang.String title,
                         java.lang.String description,
                         java.lang.String extraSettings,
                         java.io.InputStream is,
                         long size,
                         ServiceContext serviceContext)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

void addFileEntryResources(long fileEntryId,
                           boolean addCommunityPermissions,
                           boolean addGuestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

void addFileEntryResources(DLFileEntry fileEntry,
                           boolean addCommunityPermissions,
                           boolean addGuestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

void addFileEntryResources(long fileEntryId,
                           java.lang.String[] communityPermissions,
                           java.lang.String[] guestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

void addFileEntryResources(DLFileEntry fileEntry,
                           java.lang.String[] communityPermissions,
                           java.lang.String[] guestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addOrOverwriteFileEntry

DLFileEntry addOrOverwriteFileEntry(long userId,
                                    long folderId,
                                    java.lang.String name,
                                    java.lang.String sourceName,
                                    java.lang.String title,
                                    java.lang.String description,
                                    java.lang.String extraSettings,
                                    java.io.File file,
                                    ServiceContext serviceContext)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntries

void deleteFileEntries(long folderId)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

void deleteFileEntry(long folderId,
                     java.lang.String name)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

void deleteFileEntry(long folderId,
                     java.lang.String name,
                     double version)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

void deleteFileEntry(DLFileEntry fileEntry)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getCompanyFileEntries(long companyId,
                                                                int start,
                                                                int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getCompanyFileEntries(long companyId,
                                                                int start,
                                                                int end,
                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyFileEntriesCount(long companyId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileAsStream

java.io.InputStream getFileAsStream(long companyId,
                                    long userId,
                                    long folderId,
                                    java.lang.String name)
                                    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 userId,
                                    long folderId,
                                    java.lang.String name,
                                    double version)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getFileEntries(long folderId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getFileEntries(long folderId,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getFileEntries(long folderId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFileEntriesCount(long folderId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileEntry getFileEntry(long fileEntryId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileEntry getFileEntry(long folderId,
                                       java.lang.String name)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid,
                                                       long groupId)
                                         throws com.liferay.portal.PortalException,
                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntryByTitle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileEntry getFileEntryByTitle(long folderId,
                                              java.lang.String titleWithExtension)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFoldersFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              int start,
                                                              int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              int start,
                                                              int end,
                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              long userId,
                                                              int start,
                                                              int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              long userId,
                                                              int start,
                                                              int end,
                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupFileEntriesCount(long groupId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupFileEntriesCount(long groupId,
                                           long userId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNoAssetFileEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileEntry> getNoAssetFileEntries()
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void reIndex(long fileEntryId)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateFileEntry

DLFileEntry updateFileEntry(long userId,
                            long folderId,
                            long newFolderId,
                            java.lang.String name,
                            java.lang.String sourceFileName,
                            java.lang.String title,
                            java.lang.String description,
                            java.lang.String extraSettings,
                            java.io.File file,
                            ServiceContext serviceContext)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFileEntry

DLFileEntry updateFileEntry(long userId,
                            long folderId,
                            long newFolderId,
                            java.lang.String name,
                            java.lang.String sourceFileName,
                            java.lang.String title,
                            java.lang.String description,
                            java.lang.String extraSettings,
                            byte[] bytes,
                            ServiceContext serviceContext)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFileEntry

DLFileEntry updateFileEntry(long userId,
                            long folderId,
                            long newFolderId,
                            java.lang.String name,
                            java.lang.String sourceFileName,
                            java.lang.String title,
                            java.lang.String description,
                            java.lang.String extraSettings,
                            java.io.InputStream is,
                            long size,
                            ServiceContext serviceContext)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTagsAsset

void updateTagsAsset(long userId,
                     DLFileEntry fileEntry,
                     java.lang.String[] tagsCategories,
                     java.lang.String[] tagsEntries)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException