Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-450

[ENH] Add Sorting to UserRoleUpdateAction

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4
    • 1.6-dev
    • Miscellaneous
    • None
    • Operating System: All
      Platform: All
    • 27873

    Description

      We have added sorting to several Admin portlets such as UserRoleUpdateAction.
      Is this the correct place to submit an enhancement? Is there a way to upload
      the entire class or should we just paste in the changed code?

      This is from the procedure buildUserRoleContext
      while(roles.hasNext())

      { masterRoles.add(roles.next()); }

      masterRoles.trimToSize();
      // Now sort the roles here
      Collections.sort(masterRoles, new Comparator()
      {
      public int compare(Object o1, Object o2)

      { Role role = (Role) o1; String s1 = role.getName().toUpperCase(); role = (Role) o2; String s2 = role.getName().toUpperCase(); return s1.compareTo(s2); }

      });

      roles = masterRoles.iterator();

      If I'm off base here, would someone kindly let me know?

      Thanks

      Attachments

        1. BrowserSortingPatch.txt
          5 kB
          Bob Fleischman
        2. GroupBrowserPatch.txt
          2 kB
          Bob Fleischman

        Activity

          People

            Unassigned Unassigned
            bob.fleischman@mindspring.com Bob Fleischman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment