How do you sort on IGroup's group name?

Hi,
I am trying to do a sort on the interface IGroup's (within com.sap.security.api) 'group name' before displaying the portal's group list. Can anyone help me out with a code snippet?
Thanks in advance for your help.
Regards,
Abu

Hello Abu,
Check this code:
Comparator groupComparator = new Comparator() { 
public int compare(IGroup arg0, IGroup arg1) {   
return arg0.getUniqueName().compareTo(arg1.getUniqueName()); 
public boolean equals(Object arg0) {   
return this.toString().equals(arg0.toString());
//java.util.List collocation of your IGroup objects "yourGroupList"
java.util.Collections.sort(yourGroupList, groupComparator);
Hope this helps...
Greetings,
Praveen Gudapati

Similar Messages

  • How do you sort the safari  "Bookmarks Bar" bookmarks

    how do you sort the safari  "Bookmarks Bar" bookmarks

    Here is the workaround for sorting your bookmarks - you don't have to do it manually as suggested in the previous answer here. This is from a 2006 page at Hints.Macworld.com
    "One thing that bugs me is that there is no option in Safari to alphabetize bookmarks. I had a crazy idea about how to accomplish this, and it seems to work. Hopefully I'm not missing something more obvious.
    What I did was open the Bookmarks window (Bookmarks: Show All Bookmarks), put the links I wanted to alphabetize into a folder, and then dragged that folder into the Finder. The Finder alphabetizes the bookmarks; you can then just drag the folder back into the Bookmarks window. You probably have to set the Finder to arrange files by name before it will work. Hope this helps!
    [robg adds: When you drag the folder back, you'll now have two folders, the original and the sorted one. Just delete the original, and you're set. You can also do this without first creating a Safari folder. Just select all the bookmarks to be alphabetized, drag them into a new folder in the Finder, open that folder (make sure it's set to sort by name or use column view), then drag the now-sorted bookmarks back into Safari's Bookmarks window. Again, you'll have duplicates, so just delete the originals (which will be grouped above the newly-placed list). I wonder if any of this is scriptable...]"
    If you're like me and you like to keep all of your bookmarks in folders in the Bookmarks bar, then from the Bookmarks window you would open the Bookmarks Bar in a window of its own before doing the above.

  • Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Contact Apple and see if they can provide any documentation of the device swap.

  • How do you get your contacts into groups?

    how do you get your contacts into groups?

    When you ask a question, please include the version of Mac OS X on your computer. iOS is not a Mac operating system.
    Assuming you are running OS 10.9.1:
    Open Contacts. Click File in the menu bar and select New Group. Enter the name of the group in Contacts on the left.
    Go back to All Contacts (on the left) then drag and drop the names you want in that group on to the folder you just named.
    Repeat as necessary for other groups.
    Note that the names remain, as they should, in All Contacts, even after you have added them to a group.. You can delete a group if you want. The names will still remain in All Contacts.

  • How do you sort iBooks library by author's  last name

    How can you sort the iBooks library by author's last name. Currently the sort by author uses first name.

    Anyone have a solution to this yet?
    In MUSIC, clicking on columns to add ALBUM name only adds ALBUM by ARTIST which does not give a way to see and sort for the entire LIBRARY.
    Seems to be a lost ffeature in the new 9.0 version.

  • How can you sort photos by descending date in Photos?

    how can you sort photos by descending date in Photos?

    There is no way to do that.
    http://www.apple.com/feedback/macosx.html
    Let Apple know your requirements.

  • How do you sort photos by face/name on iPad2?

    How do you sort photos by face/name on iPad2?

    iPhoto is designed to work with photos from cameras, and so seeks the date in the Exif metadata that the camera writes to the file.
    There is no way to organise photos by the date they were imported to iPhoto.
    Regards
    TD

  • How do you feel about the hacktivist group Anonymous?

    How do you feel about the hacktivist group Anonymous? Are they heroes or criminals to you?They have done many things one would consider a good deed and some which one wouldn't. They were voted as one of the Top 100 Most Influential People of 2012 in Time Magazine. They have been linked to or played a major role in such things as ISIS, North Korea, Sony, Xbox, Westboro Baptist Church, Chinese Government, etc. They are considered to be in the Top 10 for greatest hackers/hacktivist groups of all time. * My personal views: I kind of like them and what they do. Granted everything they have done hasn't been with good intentions, but for the most part they seem to play the role of good hackers/hacktivists (if such a thing exists). Good day.
    This topic first appeared in the Spiceworks Community

    How do you feel about the hacktivist group Anonymous? Are they heroes or criminals to you?They have done many things one would consider a good deed and some which one wouldn't. They were voted as one of the Top 100 Most Influential People of 2012 in Time Magazine. They have been linked to or played a major role in such things as ISIS, North Korea, Sony, Xbox, Westboro Baptist Church, Chinese Government, etc. They are considered to be in the Top 10 for greatest hackers/hacktivist groups of all time. * My personal views: I kind of like them and what they do. Granted everything they have done hasn't been with good intentions, but for the most part they seem to play the role of good hackers/hacktivists (if such a thing exists). Good day.
    This topic first appeared in the Spiceworks Community

  • How do you sort safari bookmarks

    How do you sort bookmarks in safari? Why does apple not allow you to do this?

    Hi,
    You can manage your Bookmarks anyway you like.
    Start here.  http://www.cultofmac.com/how-to-manage-safari-bookmarks-efficiently-macrx/35616
    If you want to alphabetize a Bookmark folder just move it to your Desktop. The Finder will automatically alphabetize the list of Bookmarks for you then just drag it back to the Safari window.
    Carolyn 

  • How do you sort Pics in Smart Folder? Photos App

    How do you sort pics in a smart folder in the Photos App? Date, Name, etc.

    Yes, when I do that it sorts the albums in the folder by name.
    I may have misused terminology, I meant Smart Albums not smart folders, if this makes a difference.
    Thanks for your help!

  • How do you record addresses for a group in contacts?

    How do you record addresses for a group in contacts?

    You can't create groups in the contacts app and even if you create a group in icloud.com, the group is useless for email purposes on the iPad. At least I have never been able to get the groups that I create in icloud.com to appears as options for emailing.
    There are third party apps that will let you do this.
    MailShot
    http://solubleapps.com/mailshot/
    Group Email with Attachments
    http://www.redbits.com/iphone/groupemail/
    There is also a workaround where you type all of the email addresses that you want to create a group for in the Notes app separated by a comma,between each address. Copy and paste that one long "email address" in the contacts app and name it whatever you like. Select that as your group when you want to send the group email.
    I Haven't done the workaround in ages, so experiment with it first. You may need to leave a space after the comma before you start trying the next email address.

  • Lion 10.7.1. how do you transfer the address book groups to a spreadsheet?

    Lion 10.7.1. how do you transfer the address book groups to a spreadsheet?

    Download Address Book Extractor from the App Store ($1.99), export to a csv file and open in the spreadsheet of your choice.

  • How do you sort video in itunes

    in itunes you have the video section then you have 4 subsections Movies,Music Videos, Podcasts, and Tv Shows.
    How do you sort the different video in itunes from all vidoes to those subsections

    ben7072 - I just found this on the discussions board: "Under View Options in the View menu, check the box that says Artist. Then rearrange your shows by Artist instead of Show."
    It does work. Obviously, the Artist needs to be the same a Show for it to truly fix our problem here... this is the case for me.
    I'd still like to know what the real problem is though...
    iMac G5   Mac OS X (10.4.9)  

  • How can i sort contacts according to company name on my iPhone

    how can i sort contacts according to company name on my iPhone

    That is not a sorting option in the built in app. There are other apps in the App Store that can access your contact information. Perhaps there is one that will let you do that.

  • How can you get out of a group text

    How can you stop a group message text?

    There is no feature to do so on the phone.
    You will have to ask the group to create a new text and removing you in the list.

Maybe you are looking for

  • Help with customised login JSP on SSO server

    Our customised version of the SSO login page JSP is required to access a database table in order to retrieve a dynamic message to display. This means we will need to create utility java classes in order to connect to the database and retrieve the inf

  • Nokia N8, how do i save messages to mass memory/me...

    cant seem to find an option on my N8 as to where i can save my received texts. used to be in messaging----options----settings----text message or other.    checked both of them and cant find an option to save them to alternative memory???? anyone help

  • How to write database validations in Adobe flex form for web Dynpro

    Hi, Can any one help me How to write database validations in Adobe flex form for web Dynpro Please provide some documents if u have Thanks in advance D babu

  • Altering the username........

    Please help the problem... I am using Oracle 11g on my XP system First i logon as sysdba... and created a user called "emp" by the statement below SQL> create user emp identified by a; User created. SQL> grant all privileges to emp; Grant succeeded.

  • About library L180 FSCs

    HI,all: who can share me about your FSC code. best regards