public Enumeration<String> communities(){
  HashSet<String> set=new HashSet<String>();
  Vector<String> res=new Vector<String>();
  for (Enumeration<AclEntry> e=acl.entries(); e.hasMoreElements(); ) {
    AclEntryImpl entry=(AclEntryImpl)e.nextElement();
    for (Enumeration<String> cs=entry.communities(); cs.hasMoreElements(); ) {
      set.add(cs.nextElement());
    }
  }
  String[] objs=set.toArray(new String[0]);
  for (int i=0; i < objs.length; i++)   res.addElement(objs[i]);
  return res.elements();
}

public Enumeration < String > communities ( ) { HashSet < String > set = new HashSet < String > ( ) ; Vector < String > res = new Vector < String > ( ) ; for ( Enumeration < AclEntry > e = acl . entries ( ) ; e . hasMoreElements ( ) ; ) { AclEntryImpl entry = ( AclEntryImpl ) e . nextElement ( ) ; for ( Enumeration < String > cs = entry . communities ( ) ; cs . hasMoreElements ( ) ; ) { set . add ( cs . nextElement ( ) ) ; } } String [ ] objs = set . toArray ( new String [ 0 ] ) ; for ( int i = 0 ; i < objs . length ; i ++ ) res . addElement ( objs [ i ] ) ; return res . elements ( ) ; }
returns ann enumeration of community strings . community strings are returned as string .
