The protocol for using agents and channels is described in the following steps and illustrated in “Search and SearchHome Examples” later in this chapter.
Calling agents
Call setupUserMemory.
Call getCountOfUserAgents before making any other calls. The cache is loaded with the user agents.
Call the getNextUserAgentName method.
When you finish, call cleanupUserMemory to flush the cache.
Calling channels and subchannels
Call setupUserMemory.
Call getCountOfUserChannels before making any other calls. The cache is then loaded with all the channels and subchannels to which the user has access.
Call getNextChannelName to go through the list of channels.
Call getCountOfSubchannels, then call getNextSubChannelName to go through the resulting list.
When you finish, call cleanupUserMemory to flush the cache.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |