You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.3 KiB
Java

package org.gcube.portlets.user.gcubeloggedin.shared;
import java.io.Serializable;
import java.util.List;
/**
*
* @author massi
*
*/
public class VOClient extends VObject implements Comparable<VOClient>, Serializable {
/**
*
*/
private static final long serialVersionUID = -8851330991617092921L;
private boolean isRoot;
private List<VREClient> vres;
public VOClient() { }
public VOClient(
String name,
String groupName,
String description,
String imageURL,
String friendlyURL,
UserBelongingClient userBelonging) {
super(name, groupName, description, imageURL, friendlyURL, userBelonging);
// TODO Auto-generated constructor stub
}
public VOClient(
String name,
String groupName,
String description,
String imageURL,
String friendlyURL,
UserBelongingClient userBelonging,
boolean isRoot, List<VREClient> vres) {
super(name, groupName, description, imageURL, friendlyURL, userBelonging);
this.isRoot = isRoot;
this.vres = vres;
}
public boolean isRoot() {
return isRoot;
}
public void setRoot(boolean isRoot) {
this.isRoot = isRoot;
}
public List<VREClient> getVres() {
return vres;
}
public void setVres(List<VREClient> vres) {
this.vres = vres;
}
public int compareTo(VOClient voToCompare) {
return (this.vres.size() >= voToCompare.getVres().size()) ? 1 : -1;
}
}