package org.gcube.portlets.user.gcubeloggedin.shared; import java.io.Serializable; import java.util.List; /** * * @author massi * */ public class VOClient extends VObject implements Comparable, Serializable { /** * */ private static final long serialVersionUID = -8851330991617092921L; private boolean isRoot; private List 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 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 getVres() { return vres; } public void setVres(List vres) { this.vres = vres; } public int compareTo(VOClient voToCompare) { return (this.vres.size() >= voToCompare.getVres().size()) ? 1 : -1; } }