* @exception InsufficientPrivilegeException when the requestor is denied due to insufficient privilege
*/
public void unjoinGroup(String username, String groupName, String rolename)
throws JetspeedSecurityException
{
LDAPUser user;
try
{
user = (LDAPUser)JetspeedSecurity.getUser(new UserNamePrincipal(username));
}
catch(JetspeedSecurityException e)
{
throw new GroupException("Failed to Retrieve User: ", e);
}
try
{
user.removeGroup(groupName);
user.update(false);
}
catch(Exception e)
{
throw new GroupException("Failed to add group info ", e);
}