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