Revision f55cf326 web_client/src/gr/grnet/pithos/web/client/commands/GetUserCommand.java

b/web_client/src/gr/grnet/pithos/web/client/commands/GetUserCommand.java
34 34
 */
35 35
package gr.grnet.pithos.web.client.commands;
36 36

  
37
import gr.grnet.pithos.web.client.GSS;
37
import gr.grnet.pithos.web.client.Pithos;
38 38
import gr.grnet.pithos.web.client.rest.GetCommand;
39 39
import gr.grnet.pithos.web.client.rest.resource.UserResource;
40 40
import gr.grnet.pithos.web.client.rest.resource.UserSearchResource;
......
46 46

  
47 47
/**
48 48
 * This command manages usernames and the corresponding user's Full Name
49
 * along with the HashMap collection in the GSS.java class
49
 * along with the HashMap collection in the Pithos.java class
50 50
 *
51 51
 *
52 52
 */
......
63 63

  
64 64
	@Override
65 65
	public void execute() {
66
		String path = GSS.get().getApiPath() + "users/" + userName; 
66
		String path = Pithos.get().getApiPath() + "users/" + userName;
67 67
		GetCommand<UserSearchResource> gg = new GetCommand<UserSearchResource>(UserSearchResource.class,
68 68
					path, false ,null) {
69 69
			@Override
......
72 72
				for (UserResource user : result.getUsers()){
73 73
					String username = user.getUsername();
74 74
					String _userFullName = user.getName();
75
					GSS.get().putUserToMap(username, _userFullName);
75
					Pithos.get().putUserToMap(username, _userFullName);
76 76
				}
77 77
			}
78 78
			@Override
79 79
			public void onError(Throwable t) {
80 80
				GWT.log("", t);
81
				GSS.get().displayError("Unable to fetch user's full name from the given username " + userName);
81
				Pithos.get().displayError("Unable to fetch user's full name from the given username " + userName);
82 82
			}
83 83
		};
84 84
		DeferredCommand.addCommand(gg);

Also available in: Unified diff