getCountOfRolesForChannel  getCountOfSubChannels

Appendix B: Using the Search Services

getCountOfRolesForUserAgent

Description

Counts number of roles of an agent. Resets to the beginning of the list of roles for agents so getNextRoleForCurrentUserAgent can be used to iterate through the list of roles for the current user agent.

Syntax

public int getCountOfRolesForUserAgent(String user,
	String agent) throws RemoteException, SearchException

Parameters

user – name of a user

agent – name of agent

Return value

Returns the number of roles; 0 if failure, otherwise, successful.





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

View this book as PDF