attributes.put("password", password1);
}
Visit visit = (Visit) getVisit();
VirtualLibraryEngine vengine = (VirtualLibraryEngine) cycle.getEngine();
Integer userId = visit.getUserId();
int i = 0;
while (true)
{
try
{
/**
* Note: this allows the user to change thier e-mail
* such that it conflicts with another user! Need yet-another
* IOperations method to perform the update!
*
**/
IOperations operations = vengine.getOperations();
operations.updatePerson(userId, attributes);
break;
}
catch (FinderException ex)
{
throw new ApplicationRuntimeException(ex);
}
catch (RemoteException ex)
{
vengine.rmiFailure("Remote exception updating user attributes.", ex, i++);
}
}
vengine.clearCache();
MyLibrary myLibrary = (MyLibrary) cycle.getPage("MyLibrary");
myLibrary.activate(cycle);
}