48 lines
729 B
Java
48 lines
729 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.workspace.client.workspace;
|
|
|
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
|
|
|
/**
|
|
* @author Federico De Faveri defaveriAtisti.cnr.it
|
|
*
|
|
*/
|
|
public class GWTUser implements IsSerializable, Comparable<GWTUser> {
|
|
|
|
protected String id;
|
|
protected String portaLogin;
|
|
|
|
public GWTUser(){}
|
|
|
|
|
|
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);
|
|
}
|
|
|
|
|
|
}
|