com.liferay.portlet.documentlibrary.service
Class DLFileEntryLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil

public class DLFileEntryLocalServiceUtil
extends java.lang.Object

View Source

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

This class provides static methods for the DLFileEntryLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
DLFileEntryLocalService
Generated:

Constructor Summary
DLFileEntryLocalServiceUtil()
           
 
Method Summary
static DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
           
static 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)
           
static 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)
           
static 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)
           
static void addFileEntryResources(DLFileEntry fileEntry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addFileEntryResources(DLFileEntry fileEntry, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addFileEntryResources(long fileEntryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addFileEntryResources(long fileEntryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static 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)
           
static DLFileEntry createDLFileEntry(long fileEntryId)
           
static void deleteDLFileEntry(DLFileEntry dlFileEntry)
           
static void deleteDLFileEntry(long fileEntryId)
           
static void deleteFileEntries(long groupId, long folderId)
           
static void deleteFileEntry(DLFileEntry fileEntry)
           
static void deleteFileEntry(long groupId, long folderId, java.lang.String name)
           
static void deleteFileEntry(long groupId, long folderId, java.lang.String name, java.lang.String version)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static java.util.List<DLFileEntry> getCompanyFileEntries(long companyId, int start, int end)
           
static java.util.List<DLFileEntry> getCompanyFileEntries(long companyId, int start, int end, OrderByComparator obc)
           
static int getCompanyFileEntriesCount(long companyId)
           
static java.util.List<DLFileEntry> getDLFileEntries(int start, int end)
           
static int getDLFileEntriesCount()
           
static DLFileEntry getDLFileEntry(long fileEntryId)
           
static DLFileEntry getDLFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
static java.io.InputStream getFileAsStream(long companyId, long userId, long groupId, long folderId, java.lang.String name)
           
static java.io.InputStream getFileAsStream(long companyId, long userId, long groupId, long folderId, java.lang.String name, java.lang.String version)
           
static java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId)
           
static java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end)
           
static java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator obc)
           
static int getFileEntriesCount(long groupId, long folderId)
           
static DLFileEntry getFileEntry(long fileEntryId)
           
static DLFileEntry getFileEntry(long groupId, long folderId, java.lang.String name)
           
static DLFileEntry getFileEntryByTitle(long groupId, long folderId, java.lang.String title)
           
static DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
static int getFoldersFileEntriesCount(long groupId, java.util.List<java.lang.Long> folderIds, int status)
           
static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
           
static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, OrderByComparator obc)
           
static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end)
           
static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, OrderByComparator obc)
           
static int getGroupFileEntriesCount(long groupId)
           
static int getGroupFileEntriesCount(long groupId, long userId)
           
static java.util.List<DLFileEntry> getNoAssetFileEntries()
           
static DLFileEntryLocalService getService()
           
 void setService(DLFileEntryLocalService service)
           
static void updateAsset(long userId, DLFileEntry fileEntry, DLFileVersion fileVersion, long[] assetCategoryIds, java.lang.String[] assetTagNames)
           
static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
           
static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry, boolean merge)
           
static 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)
           
static 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)
           
static 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)
           
static DLFileEntry updateStatus(long userId, long fileEntryId, int status, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryLocalServiceUtil

public DLFileEntryLocalServiceUtil()
Method Detail

addDLFileEntry

public static DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
                                  throws SystemException
Throws:
SystemException

createDLFileEntry

public static DLFileEntry createDLFileEntry(long fileEntryId)

deleteDLFileEntry

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

deleteDLFileEntry

public static void deleteDLFileEntry(DLFileEntry dlFileEntry)
                              throws SystemException
Throws:
SystemException

dynamicQuery

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

dynamicQuery

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

dynamicQuery

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

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getDLFileEntry

public static DLFileEntry getDLFileEntry(long fileEntryId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getDLFileEntryByUuidAndGroupId

public static DLFileEntry getDLFileEntryByUuidAndGroupId(java.lang.String uuid,
                                                         long groupId)
                                                  throws PortalException,
                                                         SystemException
Throws:
PortalException
SystemException

getDLFileEntries

public static java.util.List<DLFileEntry> getDLFileEntries(int start,
                                                           int end)
                                                    throws SystemException
Throws:
SystemException

getDLFileEntriesCount

public static int getDLFileEntriesCount()
                                 throws SystemException
Throws:
SystemException

updateDLFileEntry

public static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
                                     throws SystemException
Throws:
SystemException

updateDLFileEntry

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

addFileEntry

public static 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

public static 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

public static 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

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

addFileEntryResources

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

addFileEntryResources

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

addFileEntryResources

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

addOrOverwriteFileEntry

public static 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

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

deleteFileEntry

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

deleteFileEntry

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

deleteFileEntry

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

getCompanyFileEntries

public static java.util.List<DLFileEntry> getCompanyFileEntries(long companyId,
                                                                int start,
                                                                int end)
                                                         throws SystemException
Throws:
SystemException

getCompanyFileEntries

public static java.util.List<DLFileEntry> getCompanyFileEntries(long companyId,
                                                                int start,
                                                                int end,
                                                                OrderByComparator obc)
                                                         throws SystemException
Throws:
SystemException

getCompanyFileEntriesCount

public static int getCompanyFileEntriesCount(long companyId)
                                      throws SystemException
Throws:
SystemException

getFileAsStream

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

getFileAsStream

public static 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

public static java.util.List<DLFileEntry> getFileEntries(long groupId,
                                                         long folderId)
                                                  throws SystemException
Throws:
SystemException

getFileEntries

public static java.util.List<DLFileEntry> getFileEntries(long groupId,
                                                         long folderId,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Throws:
SystemException

getFileEntries

public static java.util.List<DLFileEntry> getFileEntries(long groupId,
                                                         long folderId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator obc)
                                                  throws SystemException
Throws:
SystemException

getFileEntriesCount

public static int getFileEntriesCount(long groupId,
                                      long folderId)
                               throws SystemException
Throws:
SystemException

getFileEntry

public static DLFileEntry getFileEntry(long fileEntryId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getFileEntry

public static DLFileEntry getFileEntry(long groupId,
                                       long folderId,
                                       java.lang.String name)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getFileEntryByTitle

public static DLFileEntry getFileEntryByTitle(long groupId,
                                              long folderId,
                                              java.lang.String title)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getFileEntryByUuidAndGroupId

public static DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid,
                                                       long groupId)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

getFoldersFileEntriesCount

public static int getFoldersFileEntriesCount(long groupId,
                                             java.util.List<java.lang.Long> folderIds,
                                             int status)
                                      throws SystemException
Throws:
SystemException

getGroupFileEntries

public static java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              int start,
                                                              int end)
                                                       throws SystemException
Throws:
SystemException

getGroupFileEntries

public static java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator obc)
                                                       throws SystemException
Throws:
SystemException

getGroupFileEntries

public static java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              long userId,
                                                              int start,
                                                              int end)
                                                       throws SystemException
Throws:
SystemException

getGroupFileEntries

public static java.util.List<DLFileEntry> getGroupFileEntries(long groupId,
                                                              long userId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator obc)
                                                       throws SystemException
Throws:
SystemException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(long groupId)
                                    throws SystemException
Throws:
SystemException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(long groupId,
                                           long userId)
                                    throws SystemException
Throws:
SystemException

getNoAssetFileEntries

public static java.util.List<DLFileEntry> getNoAssetFileEntries()
                                                         throws SystemException
Throws:
SystemException

updateAsset

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

updateFileEntry

public static 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

public static 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

public static 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

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

getService

public static DLFileEntryLocalService getService()

setService

public void setService(DLFileEntryLocalService service)