2013-02-06 15:40:17 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.user.workspace.client.workspace;
|
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
|
|
|
|
|
|
|
/**
|
2019-02-22 12:43:24 +01:00
|
|
|
* @author Federico De Faveri defaveriAtisti.cnr.it
|
2013-02-06 15:40:17 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class GWTUser implements IsSerializable, Comparable<GWTUser> {
|
|
|
|
|
|
|
|
protected String id;
|
|
|
|
protected String portaLogin;
|
|
|
|
|
|
|
|
public GWTUser(){}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param id
|
|
|
|
* @param portaLogin
|
|
|
|
*/
|
|
|
|
public GWTUser(String id, String portaLogin) {
|
|
|
|
this.id = id;
|
|
|
|
this.portaLogin = portaLogin;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the id
|
|
|
|
*/
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the portaLogin
|
|
|
|
*/
|
|
|
|
public String getPortaLogin() {
|
|
|
|
return portaLogin;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public int compareTo(GWTUser user) {
|
|
|
|
return portaLogin.compareTo(user.portaLogin);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|