@Override public IGroup getGroup(String shortName) { if (shortName != null) { for (IGroup group : groupList) { if (shortName.equals(group.getName())) { return group; } } } return null; }
@Override public String toString() { StringBuffer buffer = new StringBuffer(); IGroup parent = getParentGroup(); buffer.append( "Group " + getShortName() + " (parent = " + ((parent == null) ? "Nobody" : parent.getName()) + ")"); return buffer.toString(); }