Secure Global Desktop 4.31 Administration Guide > Applets > getIteratorForHierarchyLevel (webtop script and webtop tray applets)
String getIteratorForHierarchyLevel(String levelName, String iteratorContentType)
Returns a handle to an iterator that allows objects on a particular application level to be parsed in sequential order. This is useful if you want to manipulate multiple webtop objects in sequential order.
levelName is the full TFN name name of the application level for which an iterator is required.
iteratorContentType is the type of object to be parsed using the iterator, and may be "GROUPTYPE", "ALLTYPE", "APPLICATIONTYPE", or "DOCUMENTTYPE".
This method can be used with either the webtop script applet or the webtop tray applet.
iterator = applet.getIteratorForHierarchyLevel(".../_ens/o=Indigo Insurance/cn=Applications", "ALLTYPE"); while (applet.getIteratorHasMoreElements(iterator) == "TRUE"){ current = applet.getNextIteratorElement(iterator); }
Iterates through all objects in the Applications group, previously opened with openHierarchyLevel.
Note The code doesn't form a complete example. You'll need to add your own code and adapt it to produce a working example.
Copyright © 1997-2007 Sun Microsystems, Inc. All rights reserved.