editAgent  getCountOfRolesForChannel

Appendix B: Using the Search Services

getCountOfChannels

Description

Gets number of channels for a given set of roles. This method also resets a pointer to the beginning of the list of channels so getNextChannelName can be used to iterate through the list of channels. getCountOfChannels also loads the cache with channels and subchannels for that user.

Syntax

public int getCountOfChannels(String rolesOfUser,
	String user) throws RemoteException, SearchException

Parameters

rolesOfUser – set of roles user has

user – name of a user

Return value

Returns the number of channels if successful; 0 if failure.





Copyright © 2004. Sybase Inc. All rights reserved. getCountOfRolesForChannel

View this book as PDF