OSID Logo
OSID Specifications
subscription package
Version 3.1.0
Interfaceosid.subscription.PublisherList
Implementsosid.OsidList
Used Byosid.subscription.DispatchPublisherSession
osid.subscription.PublisherHierarchySession
osid.subscription.PublisherLookupSession
osid.subscription.PublisherQuerySession
osid.subscription.PublisherSearchResults
osid.subscription.SubscriptionPublisherSession
osid.subscription.rules.DispatchConstrainerEnablerPublisherSession
osid.subscription.rules.DispatchConstrainerPublisherSession
osid.subscription.rules.DispatchEnablerPublisherSession
osid.subscription.rules.DispatchProcessorEnablerPublisherSession
show 2 more…
osid.subscription.rules.DispatchProcessorPublisherSession
osid.subscription.rules.SubscriptionEnablerPublisherSession
Description

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

while (pl.hasNext()) {
     Publisher publisher = pl.getNextPublisher();
}
                
or
while (pl.hasNext()) {
     Publisher[] publishers = pl.getNextPublishers(pl.available());
}
                
MethodgetNextPublisher
Description

Gets the next Publisher in this list.

Returnosid.subscription.Publisher the next Publisher in this list. The hasNext() method should be used to test that a next Publisher is available before calling this method.
ErrorsILLEGAL_STATE no more elements available in this list
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetNextPublishers
Description

Gets the next set of Publisher elements in this list. The specified amount must be less than or equal to the return from available().

Parameterscardinaln the number of Publisher elements requested which must be less than or equal to available()
Returnosid.subscription.Publisher[] an array of Publisher elements. The length of the array is less than or equal to the number specified.
ErrorsILLEGAL_STATE no more elements available in this list
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.