Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34587

RoleLocalServiceImpl.hasUserRole(long, long, String, boolean) should not be used for testing role existence

Details

    Description

      This method should only be used to test whether an User is associated with a Role, it should not be used to test the role existence.
      Because testing the role existence involves using Exception to do flow control, that is too heavy for performance.

      If the caller really needs to test the Role existence, it should do a pre-fetch/find before calling this method.

      Attachments

        Activity

          People

            edwin.chung Edwin Chung (Inactive)
            shuyang.zhou Shuyang Zhou
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                6.2.0 CE M5