Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-3850

Recent documents is not accurate when under load

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0 EE (6.0.10)
    • Fix Version/s: 6.0 EE SP1 (6.0.11)
    • Component/s: DM, Performance
    • Labels:
      None

      Description

      The mechanism used to keep track of recent documents is not accurate when the system is under heavy load.

      To fix this issue, DLFileRank/DLFileRankLocalService has been refactored to be based on a fileEntryId instead of a folderId and name.

      API CHANGES:

      Class: com.liferay.portlet.documentlibrary.model.DLFileRankModel

      Method: getFolderId()
      Status: Deleted
      New method: getFileEntryId()

      Method: setFolderId(long folderId)
      Status: Deleted
      New method: setFileEntryId(long fileEntryId)

      Method: getName()
      Status: Deleted
      New method: getFileEntryId()

      Method: setName(String name)
      Status: Deleted
      New method: setFileEntryId(long fileEntryId)

      Class: com.liferay.portlet.documentlibrary.model.DLFileRankSoap

      Method: getFolderId()
      Status: Deleted
      New method: getFileEntryId()

      Method: setFolderId(long folderId)
      Status: Deleted
      New method: setFileEntryId(long fileEntryId)

      Method: getName()
      Status: Deleted
      New method: getFileEntryId()

      Method: setName(String name)
      Status: Deleted
      New method: setFileEntryId(long fileEntryId)

      Class: com.liferay.portlet.documentlibrary.model.DLFileRankWrapper

      Method: getFolderId()
      Status: Deleted
      New method: getFileEntryId()

      Method: setFolderId(long folderId)
      Status: Deleted
      New method: setFileEntryId(long fileEntryId)

      Method: getName()
      Status: Deleted
      New method: getFileEntryId()

      Method: setName(String name)
      Status: Deleted
      New method: setFileEntryId(long fileEntryId)

      Class: com.liferay.portlet.documentlibrary.service.DLFileRankLocalService

      Method: addFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
      Status: Deprecated
      New method: addFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)

      Method: deleteFileRanks(long userId)
      Status: Deleted
      New method: deleteFileRanksByUserId(long userId)

      Method: deleteFileRanks(long folderId, String name)
      Status: Deleted
      New method: deleteFileRanksByFileEntryId(long fileEntryId)

      Method: updateFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
      Status: Deprecated
      New method: updateFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)

      Class: com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil

      Method: addFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
      Status: Deprecated
      New method: addFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)

      Method: deleteFileRanks(long userId)
      Status: Deleted
      New method: deleteFileRanksByUserId(long userId)

      Method: deleteFileRanks(long folderId, String name)
      Status: Deleted
      New method: deleteFileRanksByFileEntryId(long fileEntryId)

      Method: updateFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
      Status: Deprecated
      New method: updateFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)

      Class: com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceWrapper

      Method: addFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
      Status: Deprecated
      New method: addFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)

      Method: deleteFileRanks(long userId)
      Status: Deleted
      New method: deleteFileRanksByUserId(long userId)

      Method: deleteFileRanks(long folderId, String name)
      Status: Deleted
      New method: deleteFileRanksByFileEntryId(long fileEntryId)

      Method: updateFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
      Status: Deprecated
      New method: updateFileRank(long groupId, long companyId, long userId, long fileEntryId, ServiceContext serviceContext)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samuel.kong Samuel Kong
              Reporter:
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  6.0 EE SP1 (6.0.11)