getAllUsers will return an array of strings (user names) instead of
actual user objects, making the function more scalable
This commit is contained in:
parent
2f6ba51e2e
commit
906a1ac9ab
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue