Package sfs3.client.requests
Class FindUsersRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.FindUsersRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Retrieves a list of users from the server which match the specified criteria.
By providing a matching expression and a search scope (a Room, a Group or the entire Zone), SmartFoxServer can find those users matching the passed criteria and return them by means of the userFindResult event.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class sfs3.client.requests.BaseRequest
AddBuddy, AdminMessage, AutoJoin, BanUser, BanUsersFromRoom, BlockBuddy, CallExtension, ChangeRoomCapacity, ChangeRoomName, ChangeRoomPassword, ClusterInviteUsers, ClusterJoinOrCreate, CreateRoom, CreateSFSGame, FindRooms, FindUsers, GameServerConnectionRequired, GenericMessage, GetRoomList, GoOnline, Handshake, InitBuddyList, InvitationReply, InviteUser, JoinRoom, JoinRoomInvite, KEY_ERROR_CODE, KEY_ERROR_PARAMS, KickUser, LeaveRoom, Login, Logout, ManualDisconnection, ModeratorMessage, ObjectMessage, PingPong, PlayerToSpectator, PrivateMessage, PublicMessage, QuickJoinGame, QuickJoinOrCreateRoom, RemoveBuddy, SetBuddyVariables, SetRoomVariables, SetUserPosition, SetUserVariables, sfso, SpectatorToPlayer, SubscribeRoomGroup, targetController, UdpInit, UnsubscribeRoomGroup -
Constructor Summary
ConstructorsConstructorDescriptionFindUsersRequest(MatchExpression matchExpr) FindUsersRequest(MatchExpression matchExpr, Object target) FindUsersRequest(MatchExpression matchExpr, Object target, short limit) Creates a new FindUsersRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_EXPRESSION
- See Also:
- Internal
-
KEY_GROUP
- See Also:
- Internal
-
KEY_ROOM
- See Also:
- Internal
-
KEY_LIMIT
- See Also:
- Internal
-
KEY_FILTERED_USERS
- See Also:
- Internal
-
-
Constructor Details
-
FindUsersRequest
Creates a new FindUsersRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
matchExpr- A matching expression that the system will use to retrieve the users.target- The name of a Group or a single Room object where to search for matching users; ifnull, the search is performed in the whole Zone.limit- The maximum size of the list of users that will be returned by the userFindResult event. If0, all the found users are returned.- See Also:
-
FindUsersRequest
- See Also:
-
FindUsersRequest
- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-