Class DLFileEntryServiceHttp

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

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.

Author:
Brian Wing Shun Chan
{$generated.description}
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.document.library.kernel.model.DLFileEntry
    addFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, 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, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, 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 sourceFileEntryId, long targetFolderId, 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
    deleteFileEntryByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId)
     
    static void
    deleteFileVersion(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String version)
     
    static com.liferay.document.library.kernel.model.DLFileEntry
    fetchFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String title)
     
    static com.liferay.document.library.kernel.model.DLFileEntry
    fetchFileEntryByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String externalReferenceCode)
     
    static com.liferay.document.library.kernel.model.DLFileEntry
    fetchFileEntryByImageId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long imageId)
     
    getFileAsStream(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryId, String version)
     
    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, double score, int start, int end)
     
    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> orderByComparator)
     
    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> orderByComparator)
     
    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> orderByComparator)
     
    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 status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> orderByComparator)
     
    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> orderByComparator)
     
    static int
    getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, double score)
     
    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 int
    getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String[] mimeTypes, int status)
     
    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
    getFileEntryByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId)
     
    static com.liferay.document.library.kernel.model.DLFileEntry
    getFileEntryByFileName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String fileName)
     
    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> orderByComparator)
     
    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> orderByComparator)
     
    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> orderByComparator)
     
    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 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 urlTitle, String description, String changeLog, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, 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 Details

    • DLFileEntryServiceHttp

      public DLFileEntryServiceHttp()
  • Method Details

    • addFileEntry

      public static com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, 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, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, 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 sourceFileEntryId, long targetFolderId, 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
    • deleteFileEntryByExternalReferenceCode

      public static void deleteFileEntryByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) 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
    • fetchFileEntry

      public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntry(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
    • fetchFileEntryByExternalReferenceCode

      public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String externalReferenceCode) 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, double score, int start, int end) 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> orderByComparator) 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> orderByComparator) 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> orderByComparator) 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 status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> orderByComparator) 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> orderByComparator) 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, double score) 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)
    • getFileEntriesCount

      public static int getFileEntriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String[] mimeTypes, int status)
    • 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
    • getFileEntryByExternalReferenceCode

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

      public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByFileName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long folderId, String fileName) 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> orderByComparator) 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> orderByComparator) 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> orderByComparator) 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
    • 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 urlTitle, String description, String changeLog, com.liferay.document.library.kernel.model.DLVersionNumberIncrease dlVersionNumberIncrease, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, 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