user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username));
role = (LDAPRole)JetspeedSecurity.getRole(rolename);
}
catch(JetspeedSecurityException e)
{
throw new GroupException("Failed to Retrieve User: ", e);
}
try
{
user.addGroupRole(groupname, rolename);
user.update(false);
}
catch(Exception e)
{
throw new GroupException("Failed to add group info ", e);
}
}