}
int portalUID=-1;
IPerson per= PersonFactory.createPerson();
per.setAttribute(IPerson.USERNAME,args[0]);
IUserIdentityStore rdbmuser = new RDBMUserIdentityStore();
try
{
portalUID=rdbmuser.getPortalUID(per, false);
System.out.println("DeleteUser.main(): Got portal UID for " + args[0] +
": " + portalUID);
}
catch(AuthorizationException e)
{
System.err.println( "DeleteUser.main(): Attempting to get portal UID for "
+ args[0] + " - Authorization exception: " + e.getMessage() );
return;
}
if (portalUID > -1)
{
try
{
rdbmuser.removePortalUID(portalUID);
System.out.println("DeleteUser.main(): Removed " + portalUID +
" from portal db.");
}
catch(Exception e)