Liferay 7.0-ga1 portal-impl

com.liferay.portlet.documentlibrary.service.http
Class DLFileEntryServiceHttp

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceHttp

@ProviderType
public class DLFileEntryServiceHttp
extends Object

Provides the HTTP utility for the DLFileEntryServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
DLFileEntryServiceSoap, HttpPrincipal, DLFileEntryServiceUtil
{$generated.description}

Constructor Summary
DLFileEntryServiceHttp()
           
 
Method Summary
static com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId)
           
static void checkInFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, boolean major, String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static void checkInFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String lockUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long repositoryId, long fileEntryId, long destFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static void deleteFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId)
           
static void deleteFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String title)
           
static void deleteFileVersion(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String version)
           
static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByImageId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long imageId)
           
static InputStream getFileAsStream(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String version)
           
static InputStream getFileAsStream(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String version, boolean incrementCounter)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, long fileEntryTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String[] mimeTypes, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, int status)
           
static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, long fileEntryTypeId)
           
static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String[] mimeTypes)
           
static com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId)
           
static com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String title)
           
static com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId)
           
static com.liferay.portal.kernel.lock.Lock getFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId)
           
static int getFoldersFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, List<Long> folderIds, int status)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
static int getGroupFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId)
           
static int getGroupFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status)
           
static int getGroupFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, String[] mimeTypes, int status)
           
static boolean hasFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId)
           
static boolean isFileEntryCheckedOut(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId)
           
static boolean isKeepFileVersionLabel(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, boolean majorVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static boolean isKeepFileVersionLabel(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String lockUuid, long companyId, long expirationTime)
           
static void revertFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long creatorUserId, int status, int start, int end)
           
static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end)
           
static com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
static com.liferay.document.library.kernel.model.DLFileEntry updateStatus(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long fileVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
static boolean verifyFileEntryCheckOut(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String lockUuid)
           
static boolean verifyFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String lockUuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryServiceHttp

public DLFileEntryServiceHttp()
Method Detail

addFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                 long groupId,
                                                                                 long repositoryId,
                                                                                 long folderId,
                                                                                 String sourceFileName,
                                                                                 String mimeType,
                                                                                 String title,
                                                                                 String description,
                                                                                 String changeLog,
                                                                                 long fileEntryTypeId,
                                                                                 Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
                                                                                 File file,
                                                                                 InputStream is,
                                                                                 long size,
                                                                                 com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

cancelCheckOut

public static com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                     long fileEntryId)
                                                                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkInFileEntry

public static void checkInFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                    long fileEntryId,
                                    boolean major,
                                    String changeLog,
                                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkInFileEntry

public static void checkInFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                    long fileEntryId,
                                    String lockUuid,
                                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkOutFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                      long fileEntryId,
                                                                                      com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                               throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkOutFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                      long fileEntryId,
                                                                                      String owner,
                                                                                      long expirationTime,
                                                                                      com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                               throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

copyFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                  long groupId,
                                                                                  long repositoryId,
                                                                                  long fileEntryId,
                                                                                  long destFolderId,
                                                                                  com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteFileEntry

public static void deleteFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                   long fileEntryId)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteFileEntry

public static void deleteFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                   long groupId,
                                   long folderId,
                                   String title)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteFileVersion

public static void deleteFileVersion(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                     long fileEntryId,
                                     String version)
                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

fetchFileEntryByImageId

public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByImageId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                            long imageId)
                                                                                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileAsStream

public static InputStream getFileAsStream(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                          long fileEntryId,
                                          String version)
                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileAsStream

public static InputStream getFileAsStream(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                          long fileEntryId,
                                          String version,
                                          boolean incrementCounter)
                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                         long groupId,
                                                                                         long folderId,
                                                                                         int status,
                                                                                         int start,
                                                                                         int end,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                  throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                         long groupId,
                                                                                         long folderId,
                                                                                         int start,
                                                                                         int end,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                  throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                         long groupId,
                                                                                         long folderId,
                                                                                         long fileEntryTypeId,
                                                                                         int start,
                                                                                         int end,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                  throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                         long groupId,
                                                                                         long folderId,
                                                                                         String[] mimeTypes,
                                                                                         int start,
                                                                                         int end,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                  throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntriesCount

public static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                      long groupId,
                                      long folderId)

getFileEntriesCount

public static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                      long groupId,
                                      long folderId,
                                      int status)

getFileEntriesCount

public static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                      long groupId,
                                      long folderId,
                                      long fileEntryTypeId)

getFileEntriesCount

public static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                      long groupId,
                                      long folderId,
                                      String[] mimeTypes)

getFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                 long fileEntryId)
                                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                 long groupId,
                                                                                 long folderId,
                                                                                 String title)
                                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntryByUuidAndGroupId

public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                                 String uuid,
                                                                                                 long groupId)
                                                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntryLock

public static com.liferay.portal.kernel.lock.Lock getFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                   long fileEntryId)

getFoldersFileEntriesCount

public static int getFoldersFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                             long groupId,
                                             List<Long> folderIds,
                                             int status)

getGroupFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                              long groupId,
                                                                                              long userId,
                                                                                              long rootFolderId,
                                                                                              int start,
                                                                                              int end,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                              long groupId,
                                                                                              long userId,
                                                                                              long repositoryId,
                                                                                              long rootFolderId,
                                                                                              String[] mimeTypes,
                                                                                              int status,
                                                                                              int start,
                                                                                              int end,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntries

public static List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                              long groupId,
                                                                                              long userId,
                                                                                              long rootFolderId,
                                                                                              String[] mimeTypes,
                                                                                              int status,
                                                                                              int start,
                                                                                              int end,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId,
                                           long rootFolderId)
                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId,
                                           long repositoryId,
                                           long rootFolderId,
                                           String[] mimeTypes,
                                           int status)
                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId,
                                           long rootFolderId,
                                           String[] mimeTypes,
                                           int status)
                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

hasFileEntryLock

public static boolean hasFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                       long fileEntryId)
                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

isFileEntryCheckedOut

public static boolean isFileEntryCheckedOut(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                            long fileEntryId)
                                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

isKeepFileVersionLabel

public static boolean isKeepFileVersionLabel(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                             long fileEntryId,
                                             boolean majorVersion,
                                             com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

isKeepFileVersionLabel

public static boolean isKeepFileVersionLabel(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                             long fileEntryId,
                                             com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

moveFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                  long fileEntryId,
                                                                                  long newFolderId,
                                                                                  com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

refreshFileEntryLock

public static com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                       String lockUuid,
                                                                       long companyId,
                                                                       long expirationTime)
                                                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

revertFileEntry

public static void revertFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                   long fileEntryId,
                                   String version,
                                   com.liferay.portal.kernel.service.ServiceContext serviceContext)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

search

public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                           long groupId,
                                                           long creatorUserId,
                                                           int status,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

search

public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                           long groupId,
                                                           long creatorUserId,
                                                           long folderId,
                                                           String[] mimeTypes,
                                                           int status,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateFileEntry

public static com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                    long fileEntryId,
                                                                                    String sourceFileName,
                                                                                    String mimeType,
                                                                                    String title,
                                                                                    String description,
                                                                                    String changeLog,
                                                                                    boolean majorVersion,
                                                                                    long fileEntryTypeId,
                                                                                    Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
                                                                                    File file,
                                                                                    InputStream is,
                                                                                    long size,
                                                                                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateStatus

public static com.liferay.document.library.kernel.model.DLFileEntry updateStatus(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                                 long userId,
                                                                                 long fileVersionId,
                                                                                 int status,
                                                                                 com.liferay.portal.kernel.service.ServiceContext serviceContext,
                                                                                 Map<String,Serializable> workflowContext)
                                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

verifyFileEntryCheckOut

public static boolean verifyFileEntryCheckOut(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                              long fileEntryId,
                                              String lockUuid)
                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

verifyFileEntryLock

public static boolean verifyFileEntryLock(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                          long fileEntryId,
                                          String lockUuid)
                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

Liferay 7.0-ga1 portal-impl