This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Help with adding Public and Private groups to Awareness List ~Martha Asaboosiburlen 7.Jan.04 03:47 AM a Web browser General 3.0Windows NT/2000
Hey Carl,
Thanks for the info. I've looked over that doc before but can't figure it out. I can get the group from the buddy list but haven't figured out how to add it to the awareness list. Do I have to convert the group to another type of object so that I can add it to the list? And is the awarenessList able to hold a group folder? Thanks for you help.
Here is what I have in my blRetrieveSucceeded event:
public void blRetrieveSucceeded(BLEvent e){
blList = e.getBL();
Vector groups = blList.getblGroups();
for (int i = 0; i < groups.size(); i++)
{
BLGroup group = (BLGroup) groups.elementAt(i);
if ( group instanceof PrivateGroup )
{
writeGroup((PrivateGroup)group );
}
}
System.out.println(blService.buddyListToString(blList));
}
private void writeGroup(PrivateGroup pg)
{
STUser newuser;
Vector users = pg.getUsersInGroup();
for (int i = 0; i < users.size(); i++)
{
BLUser user = (BLUser)users.elementAt(i);
newuser = new STUser(new STId(user.getBLId(), ""), user.getName(), "");
m_awarenessList.addUser(newuser);