com.liferay.portlet.documentlibrary.service
Interface DLFileEntryLocalService

All Known Implementing Classes:
DLFileEntryLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,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
Generated:

Method Summary
 DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
           
 DLFileEntry addFileEntry(java.lang.String uuid, long userId, long groupId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String versionDescription, java.lang.String extraSettings, byte[] bytes, ServiceContext serviceContext)
           
 DLFileEntry addFileEntry(java.lang.String uuid, long userId, long groupId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String versionDescription, java.lang.String extraSettings, java.io.File file, ServiceContext serviceContext)
           
 DLFileEntry addFileEntry(java.lang.String uuid, long userId, long groupId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String versionDescription, 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 groupId, long folderId, java.lang.String name, java.lang.String sourceName, java.lang.String title, java.lang.String description, java.lang.String versionDescription, 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 groupId, long folderId)
           
 void deleteFileEntry(DLFileEntry fileEntry)
           
 void deleteFileEntry(long groupId, long folderId, java.lang.String name)
           
 void deleteFileEntry(long groupId, long folderId, java.lang.String name, java.lang.String version)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 java.util.List<DLFileEntry> getCompanyFileEntries(long companyId, int start, int end)
           
 java.util.List<DLFileEntry> getCompanyFileEntries(long companyId, int start, int end, OrderByComparator obc)
           
 int getCompanyFileEntriesCount(long companyId)
           
 java.util.List<DLFileEntry> getDLFileEntries(int start, int end)
           
 int getDLFileEntriesCount()
           
 DLFileEntry getDLFileEntry(long fileEntryId)
           
 DLFileEntry getDLFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 java.io.InputStream getFileAsStream(long companyId, long userId, long groupId, long folderId, java.lang.String name)
           
 java.io.InputStream getFileAsStream(long companyId, long userId, long groupId, long folderId, java.lang.String name, java.lang.String version)
           
 java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId)
           
 java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end)
           
 java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator obc)
           
 int getFileEntriesCount(long groupId, long folderId)
           
 DLFileEntry getFileEntry(long fileEntryId)
           
 DLFileEntry getFileEntry(long groupId, long folderId, java.lang.String name)
           
 DLFileEntry getFileEntryByTitle(long groupId, long folderId, java.lang.String title)
           
 DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
 int getFoldersFileEntriesCount(long groupId, java.util.List<java.lang.Long> folderIds, int status)
           
 java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
           
 java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, 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, OrderByComparator obc)
           
 int getGroupFileEntriesCount(long groupId)
           
 int getGroupFileEntriesCount(long groupId, long userId)
           
 java.util.List<DLFileEntry> getNoAssetFileEntries()
           
 void updateAsset(long userId, DLFileEntry fileEntry, DLFileVersion fileVersion, long[] assetCategoryIds, java.lang.String[] assetTagNames)
           
 DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
           
 DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry, boolean merge)
           
 DLFileEntry updateFileEntry(long userId, long groupId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String versionDescription, boolean majorVersion, java.lang.String extraSettings, byte[] bytes, ServiceContext serviceContext)
           
 DLFileEntry updateFileEntry(long userId, long groupId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String versionDescription, boolean majorVersion, java.lang.String extraSettings, java.io.File file, ServiceContext serviceContext)
           
 DLFileEntry updateFileEntry(long userId, long groupId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String versionDescription, boolean majorVersion, java.lang.String extraSettings, java.io.InputStream is, long size, ServiceContext serviceContext)
           
 DLFileEntry updateStatus(long userId, long fileEntryId, int status, ServiceContext serviceContext)
           
 

Method Detail

addDLFileEntry

DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
                           throws SystemException
Throws:
SystemException

createDLFileEntry

DLFileEntry createDLFileEntry(long fileEntryId)

deleteDLFileEntry

void deleteDLFileEntry(long fileEntryId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteDLFileEntry

void deleteDLFileEntry(DLFileEntry dlFileEntry)
                       throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getDLFileEntry

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

getDLFileEntryByUuidAndGroupId

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

getDLFileEntries

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

getDLFileEntriesCount

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

updateDLFileEntry

DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
                              throws SystemException
Throws:
SystemException

updateDLFileEntry

DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry,
                              boolean merge)
                              throws SystemException
Throws:
SystemException

addFileEntry

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

addFileEntry

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

addFileEntry

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

addFileEntryResources

void addFileEntryResources(DLFileEntry fileEntry,
                           boolean addCommunityPermissions,
                           boolean addGuestPermissions)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

addFileEntryResources

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

addFileEntryResources

void addFileEntryResources(long fileEntryId,
                           boolean addCommunityPermissions,
                           boolean addGuestPermissions)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

addFileEntryResources

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

addOrOverwriteFileEntry

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

deleteFileEntries

void deleteFileEntries(long groupId,
                       long folderId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteFileEntry

void deleteFileEntry(DLFileEntry fileEntry)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFileEntry

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

deleteFileEntry

void deleteFileEntry(long groupId,
                     long folderId,
                     java.lang.String name,
                     java.lang.String version)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getCompanyFileEntries

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

getCompanyFileEntries

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

getCompanyFileEntriesCount

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

getFileAsStream

java.io.InputStream getFileAsStream(long companyId,
                                    long userId,
                                    long groupId,
                                    long folderId,
                                    java.lang.String name)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getFileAsStream

java.io.InputStream getFileAsStream(long companyId,
                                    long userId,
                                    long groupId,
                                    long folderId,
                                    java.lang.String name,
                                    java.lang.String version)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getFileEntries

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

getFileEntries

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

getFileEntries

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

getFileEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFileEntriesCount(long groupId,
                                                                 long folderId)
                        throws SystemException
Throws:
SystemException

getFileEntry

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

getFileEntry

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

getFileEntryByTitle

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileEntry getFileEntryByTitle(long groupId,
                                                                         long folderId,
                                                                         java.lang.String title)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getFileEntryByUuidAndGroupId

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

getFoldersFileEntriesCount

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntriesCount

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

getGroupFileEntriesCount

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

getNoAssetFileEntries

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

updateAsset

void updateAsset(long userId,
                 DLFileEntry fileEntry,
                 DLFileVersion fileVersion,
                 long[] assetCategoryIds,
                 java.lang.String[] assetTagNames)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateFileEntry

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

updateFileEntry

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

updateFileEntry

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

updateStatus

DLFileEntry updateStatus(long userId,
                         long fileEntryId,
                         int status,
                         ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException