on 03-23-2009 3:58 PM
Hi everybody,
I have a question because I want to get a list of ALL groups that are in the portal.
I have worked with UMFactory.getGroupFactory() but it does not return the list of all Groups present in the portal.
Anyone has an idea.
Thanks in advance
Armando
Hi
Look at [this |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09cc7ef-8185-2b10-4aaa-96ffc93d237c]article.
Good luck,
Ola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armando,
Use following code to get all groups from portal.
public void wdDoInit()
{
//@@begin wdDoInit()
IWDMessageManager msg = wdComponentAPI.getMessageManager();
Ifactory factory = UMFactory.getfactory();
try{
IGroupSearchFilter filter = factory.getGroupSearchFilter();
filter.setDisplayName("*",ISearchAttribute.LIKE_OPERATOR, false);
ISearchResult result = factory.searchGroups(filter);
while(result.hasNext()){
String uid = (String) result.next();
msg.reportSuccess(uid);
// IGroup group = factory.getGroup(uid);
// Store group to use later
}
}
catch(Exception e){}
//@@end
}
This method have some issues as described [here|] but it worked well for me.
Hope this helps.
Regards,
Vishwas.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.