package org.gcube.portlets.user.gcubeloggedin.shared; import java.io.Serializable; import java.util.List; /** * * @author massi * */ @SuppressWarnings("serial") public class VOClient extends VObject implements Comparable, Serializable { 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, true, true, false); // 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, true, true, false); 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; } }