private void addUser(LoginData loginData, Graph graph, Request request)
throws HandlerException {
// TODO use an jenaModelWrapper (TBD)
Node user = new NodeImpl();
graph.add(new TripleImpl(user, new PropertyNodeImpl(RDF.type.getURI()),
new NamedNodeImpl(FOAF.Agent.getURI())));
graph.add(new TripleImpl(user, new InverseFunctionalPropertyNodeImpl(
ACCOUNTMANAGER.userName.getURI()), new PlainLiteralNodeImpl(
loginData.userName)));
graph.add(new TripleImpl(user, new PropertyNodeImpl(
ACCOUNTMANAGER.passwordSha1.getURI()),
new PlainLiteralNodeImpl(loginData.passwordSha1)));
graph.add(new TripleImpl(user, new InverseFunctionalPropertyNodeImpl(
FOAF.mbox_sha1sum.getURI()), new PlainLiteralNodeImpl(
loginData.mboxSha1)));
graph.add(new TripleImpl(user, new PropertyNodeImpl(
AUTHORIZATION.mayImpersonate.getURI()), new NamedNodeImpl(
getUserSource(loginData.userName, request))));
}