Skip past navigation linksSecure Global Desktop Administration Guide > Applets > getIteratorForHierarchyLevel (webtop script and webtop tray applets)

getIteratorForHierarchyLevel (webtop script and webtop tray applets)

Syntax

Skip past command syntax or program codeString getIteratorForHierarchyLevel(String levelName, 
                                    String iteratorContentType)

Description

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.

Examples

Skip past command syntax or program codeiterator = 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.

Related topics