}
}
catch (AuthorizationException e)
{
log.debug("Unable to acces user environment from context!");
throw new ModelException("Unable to acces user environment from context!", e);
}
}
else
{
log.debug("Unable to acces user environment from context!");
throw new ModelException("Unable to acces user environment from context!");
}
}
PersistentFactory persistentManager = (PersistentFactory) req.getService(PersistentFactory.ROLE, req
.getDomain());
Persistent keelUser = persistentManager.create("keel.user");
keelUser.setField("uid", new Integer(uid));
if (! keelUser.find())
{
ThreadedModel.sleep(3000);
res.addError("notLoggedIn", "You are not logged in.");
return res;
}
}
catch (PersistenceException x)
{
log.error("Database Error", x);
throw new ModelException("$databaseError", x);
}
catch (InterruptedException ie)
{
}