getAllUsers will return an array of strings (user names) instead of

actual user objects, making the function more scalable
This commit is contained in:
hns 2001-01-29 16:32:42 +00:00
parent 2f6ba51e2e
commit 906a1ac9ab

View file

@ -671,9 +671,8 @@ public class HopExtension {
ArrayPrototype theArray = new ArrayPrototype(ap, this.evaluator); ArrayPrototype theArray = new ArrayPrototype(ap, this.evaluator);
int i=0; int i=0;
for (Enumeration e=users.properties (); e.hasMoreElements (); ) { for (Enumeration e=users.properties (); e.hasMoreElements (); ) {
IProperty prop = (IProperty) e.nextElement (); String propname = (String) e.nextElement ();
if (!"prototype".equals (prop.getName ()) && prop.getType () == IProperty.NODE) theArray.putProperty (i++, new ESString (propname));
theArray.putProperty (i++, reval.getNodeWrapper (prop.getNodeValue ()));
} }
return theArray; return theArray;
} }