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

Implement additional user service methods to facilitate remote syncing of user data

    Details

      Description

      From Brian:


      See

      <finder name="C_O_O_LikeP" return-type="Collection">

      The "name" column should be in finder *LikeN

      GroupServiceImpl
      getGroups(long companyId, long parentGroupId, String name, boolean site, int start, int end)
      getGroupsCount(long companyId, long parentGroupId, boolean site)
      getGroupsCount(long companyId, long parentGroupId, String name, boolean site)

      OrganizationServiceImpl
      getOrganizations(long companyId, long parentOrganizationId, String name, int start, int end)
      getOrganizationsCount(long companyId, long parentOrganizationId, String name, int start, int end)

      UserGroupServiceImpl
      getUserGroups(long companyId, String name, int start, int end)
      getUserGroupsCount(long companyId)
      getUserGroupsCount(long companyId, String name)

      -

      UserServiceImpl
      getOrganizationsUsersCount(long[] organizationIds)
      getUserGroupsUsersCount(long[] userGroupIds)

      The above two should actually be a single service call

      --------

      SQL to use for the orgs / user groups count:

       

      SELECT
          COUNT(*)
      FROM
          (
              (
                  SELECT
                      userId
                  FROM
                      Users_Orgs
                  WHERE
                      organizationId IN ?
              ) UNION
              (
                  SELECT
                      userId
                  FROM
                      Users_UserGroups
                  WHERE
                      userGroupId IN ?
              )
          )
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.0 DXP FP59
                7.0.0 DXP SP9
                7.1.10 DXP FP3
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master