On client-side use AccountInfo instead of Account

AccountInfo is the client side representation of a user; Account is
the entity class for persisting a user.

The AccountInfo is now fetched via REST. As result the account
information in HostPageData is no longer used, and hence it is
removed.

Using AccountInfo instead of Account allows us in a next step to
remove some of the remaining old RPC's and replace them with REST
calls.

Change-Id: I20d72f62beec0e6a65cf792f67be04262be6fdb5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-07-28 11:33:45 +02:00
parent cf77a6955d
commit 7c87d0f929
15 changed files with 113 additions and 72 deletions

View File

@@ -182,10 +182,6 @@ public class HostPageServlet extends HttpServlet {
final StringWriter w = new StringWriter();
final CurrentUser user = currentUser.get();
if (user.isIdentifiedUser()) {
w.write(HPD_ID + ".account=");
json(((IdentifiedUser) user).getAccount(), w);
w.write(";");
w.write(HPD_ID + ".xGerritAuth=");
json(session.get().getXGerritAuth(), w);
w.write(";");