OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.OrganizationNodeList
Implementsosid.OsidList
Description

Like all OsidLists, OrganizationNodeList provides a means for accessing OrganizationNode elements sequentially either one at a time or many at a time. Examples:

                     
                     
                     while (onl.hasNext()) {
                          OrganizationNode node = onl.getNextOrganizationNode();
                     }
                     
                                 
                     
                
or
                     
                     
                     while (onl.hasNext()) {
                          OrganizationNode[] nodes = onl.getNextOrganizationNodes(onl.available());
                     }
                     
                                 
                     
                
MethodgetNextOrganizationNode
Description

Gets the next OrganizationNode in this list.

Returnosid.personnel.OrganizationNodethe next OrganizationNode in this list. The hasNext() method should be used to test that a next OrganizationNode is available before calling this method.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetNextOrganizationNodes
Description

Gets the next set of OrganizationNode elements in this list which must be less than or equal to the number returned from available().

Parameterscardinalnthe number of OrganizationNode elements requested which should be less than or equal to available()
Returnosid.personnel.OrganizationNode[]an array of OrganizationNode elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATEno more elements available in this list
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.