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:
@@ -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(";");
|
||||
|
Reference in New Issue
Block a user