getCountOfChannels  getCountOfRolesForUserAgent

Appendix B: Using the Search Services

getCountOfRolesForChannel

Description

Counts the number of roles for a channel. Resets to the beginning of the list of roles for that channel so getNextRoleForChannel can be used to iterate through the list of roles.

Syntax

public int getCountOfRolesForChannel(String user,
	String channel) throws RemoteException, SearchException

Parameters

user – name of a user

channel – name of channel

Return value

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





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

View this book as PDF