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

            Assignee:
            edwin.chung Edwin Chung
            Reporter:
            shuyang.zhou Shuyang Zhou
            Recent user:
            Shalaka Tendulkar
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                6.2.0 CE M5