Uses of Interface
com.smartfoxserver.v2.entities.User
-
-
Uses of User in com.smartfoxserver.v2.api
Methods in com.smartfoxserver.v2.api that return User Modifier and Type Method Description User
ISFSApi. createNPC(java.lang.String userName, Zone zone, boolean forceLogin)
Create connection-less NPC (Non-Player Character).User
SFSApi. createNPC(java.lang.String userName, Zone zone, boolean forceLogin)
Create connection-less NPC (Non-Player Character).User
ISFSApi. getUserById(int userId)
Finds a User from its unique IDUser
SFSApi. getUserById(int userId)
Finds a User from its unique IDUser
ISFSApi. getUserByName(java.lang.String name)
Finds a User from its nameUser
SFSApi. getUserByName(java.lang.String name)
Finds a User from its nameUser
ISFSApi. getUserBySession(ISession session)
Finds a User from its SessionUser
SFSApi. getUserBySession(ISession session)
Finds a User from its SessionUser
ISFSApi. login(ISession session, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject params)
Logs a client into a Zone, allowing it to become a UserUser
ISFSApi. login(ISession session, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject params, boolean forceLogout)
Uses additional flag to disconnect previous user with same usernameUser
SFSApi. login(ISession sender, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject paramsOut)
Logs a client into a Zone, allowing it to become a UserUser
SFSApi. login(ISession sender, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject paramsOut, boolean forceLogout)
Uses additional flag to disconnect previous user with same usernameMethods in com.smartfoxserver.v2.api that return types with arguments of type User Modifier and Type Method Description java.util.List<User>
ISFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)
Find one or more User(s) in the specified collection of Users.java.util.List<User>
SFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)
Find one or more User(s) in the specified collection of Users.Methods in com.smartfoxserver.v2.api with parameters of type User Modifier and Type Method Description void
ISFSBuddyApi. addBuddy(User owner, java.lang.String buddyName, boolean isTemp, boolean fireClientEvent, boolean fireServerEvent)
Adds a new buddy to the BuddyList of the specified User.void
SFSBuddyApi. addBuddy(User owner, java.lang.String buddyName, boolean isTemp, boolean fireClientEvent, boolean fireServerEvent)
Adds a new buddy to the BuddyList of the specified User.void
ISFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, BanMode mode, int durationMinutes, int delaySeconds)
Ban a User.void
ISFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, java.lang.String reason, BanMode mode, int durationMinutes, int delaySeconds)
Ban a User.void
SFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, BanMode mode, int durationMinutes, int delaySeconds)
Ban a User.void
SFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, java.lang.String reason, BanMode mode, int durationMinutes, int delaySeconds)
Ban a User.void
ISFSBuddyApi. blockBuddy(User owner, java.lang.String buddyName, boolean isBlocked, boolean fireClientEvent, boolean fireServerEvent)
Block/Unblock a Buddy in the owner's BuddyList Blocked buddies won't be able to see the owner online status and send him messages or updatesvoid
SFSBuddyApi. blockBuddy(User owner, java.lang.String buddyName, boolean isBlocked, boolean fireClientEvent, boolean fireServerEvent)
Block/Unblock a Buddy in the owner's BuddyList Blocked buddies won't be able to see the owner online status and send him messages or updatesvoid
ISFSApi. changeRoomCapacity(User owner, Room targetRoom, int maxUsers, int maxSpectators)
Changes the capacity (max number of Users and Spectators) in the Room.void
SFSApi. changeRoomCapacity(User owner, Room targetRoom, int maxUsers, int maxSpectators)
Changes the capacity (max number of Users and Spectators) in the Room.void
ISFSApi. changeRoomName(User owner, Room targetRoom, java.lang.String newName)
Rename a Room.void
SFSApi. changeRoomName(User owner, Room targetRoom, java.lang.String newName)
Rename a Room.void
ISFSApi. changeRoomPassword(User owner, Room targetRoom, java.lang.String newPassword)
Changes the Room password and the Room password-state.void
SFSApi. changeRoomPassword(User owner, Room targetRoom, java.lang.String newPassword)
Changes the Room password and the Room password-state.Room
ISFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner)
Create an SFSGame Room and automatically update the clients and fire a server eventRoom
ISFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner, boolean fireClientEvent, boolean fireServerEvent)
Create an SFSGame Room.Room
SFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner)
Create an SFSGame Room and automatically update the clients and fire a server eventRoom
SFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner, boolean fireClientEvent, boolean fireServerEvent)
Create an SFSGame Room.Room
ISFSApi. createRoom(Zone zone, CreateRoomSettings settings, User owner)
Create a new RoomRoom
ISFSApi. createRoom(Zone zone, CreateRoomSettings settings, User owner, boolean joinIt, Room roomToLeave)
Create a new RoomRoom
ISFSApi. createRoom(Zone zone, CreateRoomSettings settings, User owner, boolean joinIt, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)
Room
SFSApi. createRoom(Zone zone, CreateRoomSettings params, User owner)
Create a new RoomRoom
SFSApi. createRoom(Zone zone, CreateRoomSettings params, User owner, boolean joinIt, Room roomToLeave)
Create a new RoomRoom
SFSApi. createRoom(Zone zone, CreateRoomSettings params, User owner, boolean joinIt, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)
void
ISFSApi. disconnectUser(User user)
Disconnect User abruptlyvoid
ISFSApi. disconnectUser(User user, IDisconnectionReason reason)
Disconnect a User indicating one specific reason (for example because the User was Idle).void
SFSApi. disconnectUser(User user)
Disconnect a User from the server.void
SFSApi. disconnectUser(User user, IDisconnectionReason reason)
Disconnect a User indicating one specific reason (for example because the User was Idle).void
ISFSBuddyApi. goOnline(User user, boolean online, boolean fireServerEvent)
Activates/De-activates the Buddy ONLINE status of the User.void
SFSBuddyApi. goOnline(User user, boolean online, boolean fireServerEvent)
Activates/De-activates the Buddy ONLINE status of the User.BuddyList
ISFSBuddyApi. initBuddyList(User user, boolean fireServerEvent)
Initialize the buddy list for the requested User.BuddyList
SFSBuddyApi. initBuddyList(User user, boolean fireServerEvent)
Initialize the buddy list for the requested User.protected void
SFSBuddyApi. initializeBuddyState(User user)
void
ISFSApi. joinRoom(User user, Room room)
Join the user in a room.
This is the quickest way to join a User in non password-protected Room.void
ISFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave)
Join the user in a room.
A client update and server side event will be also firedvoid
ISFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)
Join the user in a room.void
SFSApi. joinRoom(User user, Room room)
Join the user in a room.
This is the quickest way to join a User in non password-protected Room.void
SFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave)
Join the user in a room.
A client update and server side event will be also firedvoid
SFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)
Join the user in a room.void
ISFSApi. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds)
Kicks the User out.void
SFSApi. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds)
Kicks the User out.void
ISFSApi. leaveRoom(User user, Room room)
Makes a user leave a room that he has joinedvoid
ISFSApi. leaveRoom(User user, Room room, boolean fireClientEvent, boolean fireServerEvent)
Removes a User from a previously joined Roomvoid
SFSApi. leaveRoom(User user, Room room)
Makes a user leave a room that he has joinedvoid
SFSApi. leaveRoom(User user, Room room, boolean fireClientEvent, boolean fireServerEvent)
Removes a User from a previously joined Roomvoid
ISFSApi. logout(User user)
Log a User out of the current Zonevoid
SFSApi. logout(User user)
Log a User out of the current Zonevoid
ISFSApi. playerToSpectator(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)
Turns a player in a Game Room to a spectator.void
SFSApi. playerToSpectator(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)
Room
ISFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId)
Quick join a User in an SFSGame.Room
ISFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId, Room roomToLeave)
Quick join a User in an SFSGame.Room
ISFSGameApi. quickJoinGame(User player, MatchExpression expression, java.util.Collection<Room> searchableRooms, Room roomToLeave)
Quick join a User in an SFSGame.Room
SFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId)
Quick join a User in an SFSGame.Room
SFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId, Room roomToLeave)
Quick join a User in an SFSGame.Room
SFSGameApi. quickJoinGame(User player, MatchExpression expression, java.util.Collection<Room> searchableRooms, Room roomToLeave)
Quick join a User in an SFSGame.void
ISFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings)
Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.void
ISFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings, Room roomToLeave)
Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.void
SFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings)
Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.void
SFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings, Room roomToLeave)
Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.void
ISFSBuddyApi. removeBuddy(User owner, java.lang.String buddyName, boolean fireClientEvent, boolean fireServerEvent)
Remove a Buddy from the owner's BuddyListvoid
SFSBuddyApi. removeBuddy(User owner, java.lang.String buddyName, boolean fireClientEvent, boolean fireServerEvent)
Remove a Buddy from the owner's BuddyListvoid
ISFSGameApi. replyToInvitation(User invitedUser, int invitationId, InvitationResponse reply, ISFSObject params, boolean fireClientEvent)
Handle the Invitation reply of a Uservoid
SFSGameApi. replyToInvitation(User invitedUser, int invitationId, InvitationResponse reply, ISFSObject params, boolean fireClientEvent)
Handle the Invitation reply of a Uservoid
ISFSApi. sendAdminMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)
Sends a administrator message to a number of Users.void
SFSApi. sendAdminMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)
Sends a administrator message to a number of Users.void
ISFSApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)
void
ISFSBuddyApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)
Send a Buddy Message to any Buddy in your list.void
SFSApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)
void
SFSBuddyApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)
Send a Buddy Message to any Buddy in your list.void
ISFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, User recipient, Room room, boolean useUDP)
void
SFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, User recipient, Room room, boolean useUDP)
void
ISFSApi. sendGenericMessage(com.smartfoxserver.v2.api.GenericMessageType type, User sender, int targetRoomId, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)
void
SFSApi. sendGenericMessage(com.smartfoxserver.v2.api.GenericMessageType type, User sender, int targetRoomId, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)
void
ISFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)
Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...void
SFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)
Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...void
ISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)
Invites Users / Players in an existing Room.void
ISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)
Invites Users / Players in an existing Room.void
ISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)
Invites Users / Players in an existing Room.void
SFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)
Invites Users / Players in an existing Room.void
SFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)
Invites Users / Players in an existing Room.void
SFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)
Invites Users / Players in an existing Room.void
ISFSApi. sendModeratorMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)
Sends a moderator message to a number of Users.void
SFSApi. sendModeratorMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)
Sends a moderator message to a number of Users.void
ISFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)
Send an Object message.void
ISFSMMOApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, Vec3D aoi)
Send an Object message based on a custom SFSObject that can contain any data.void
SFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)
Send an Object message.void
SFSMMOApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, Vec3D aoi)
Send an Object message based on a custom SFSObject that can contain any data.void
ISFSApi. sendPrivateMessage(User sender, User recipient, java.lang.String message, ISFSObject params)
Sends a private chat message.void
SFSApi. sendPrivateMessage(User sender, User recipient, java.lang.String message, ISFSObject params)
Sends a private chat message.void
ISFSApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params)
Sends a public chat message.void
ISFSMMOApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params, Vec3D aoi)
Sends a public chat message.void
SFSApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params)
Sends a public chat message.void
SFSMMOApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params, Vec3D aoi)
Sends a public chat message.void
ISFSBuddyApi. setBuddyVariables(User owner, java.util.List<BuddyVariable> buddyVariables, boolean fireClientEvent, boolean fireServerEvent)
Set any number of BuddyVariables for the specified ownervoid
SFSBuddyApi. setBuddyVariables(User owner, java.util.List<BuddyVariable> buddyVariables, boolean fireClientEvent, boolean fireServerEvent)
Set any number of BuddyVariables for the specified ownervoid
ISFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables)
Set Room Variables.void
ISFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables, boolean fireClientEvent, boolean fireServerEvent, boolean overrideOwnership)
Set Room Variables.void
SFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables)
Set Room Variables.void
SFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables, boolean fireClientEvent, boolean fireServerEvent, boolean overrideOwnership)
Set Room Variables.void
ISFSMMOApi. setUserPosition(User user, Vec3D pos, Room targetRoom)
Set the new User position inside an MMORoomvoid
SFSMMOApi. setUserPosition(User user, Vec3D pos, Room targetRoom)
Set the new User position inside an MMORoomvoid
ISFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables)
Set User Variables.void
ISFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables, boolean fireClientEvent, boolean fireServerEvent)
Set User Variables.void
SFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables)
Set User Variables.void
SFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables, boolean fireClientEvent, boolean fireServerEvent)
Set User Variables.void
ISFSApi. spectatorToPlayer(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)
Turns a spectator in a Game Room to a Player.void
SFSApi. spectatorToPlayer(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)
void
ISFSApi. subscribeRoomGroup(User user, java.lang.String groupId)
Subscribe User to a Room Group.void
SFSApi. subscribeRoomGroup(User user, java.lang.String groupId)
Subscribe User to a Room Group.void
ISFSApi. unsubscribeRoomGroup(User user, java.lang.String groupId)
Unsubscribe User to a Room Group.void
SFSApi. unsubscribeRoomGroup(User user, java.lang.String groupId)
Unsubscribe User to a Room Group.Method parameters in com.smartfoxserver.v2.api with type arguments of type User Modifier and Type Method Description java.util.List<User>
ISFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)
Find one or more User(s) in the specified collection of Users.java.util.List<User>
SFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)
Find one or more User(s) in the specified collection of Users.void
ISFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, Room room, boolean useUDP)
void
SFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, Room room, boolean useUDP)
void
ISFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)
Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...void
SFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)
Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...void
ISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)
Invites Users / Players in an existing Room.void
ISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)
Invites Users / Players in an existing Room.void
ISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)
Invites Users / Players in an existing Room.void
SFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)
Invites Users / Players in an existing Room.void
SFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)
Invites Users / Players in an existing Room.void
SFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)
Invites Users / Players in an existing Room.void
ISFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)
Send an Object message.void
SFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)
Send an Object message. -
Uses of User in com.smartfoxserver.v2.buddylist
Methods in com.smartfoxserver.v2.buddylist that return User Modifier and Type Method Description User
BuddyList. getOwner()
Get the User that owns this BuddyListUser
SFSBuddyList. getOwner()
Methods in com.smartfoxserver.v2.buddylist with parameters of type User Modifier and Type Method Description static java.util.List<java.lang.String>
BuddyUtils. filterNonMutualRecipients(User sender, java.util.List<java.lang.String> recipientNames)
-
Uses of User in com.smartfoxserver.v2.components.signup
Methods in com.smartfoxserver.v2.components.signup with parameters of type User Modifier and Type Method Description void
ISignUpAssistantPlugin. execute(User user, ISFSObject params, SignUpConfiguration config)
Handles the execution of the plugin logicjava.lang.String[]
IPasswordManager. generateRandom(User user)
void
SignUpAssistantComponent. handleClientRequest(User sender, ISFSObject params)
ISFSObject
CustomFieldPasswordRecovery. recover(SignUpAssistantComponent suac, User user, ISFSObject params)
ISFSObject
IPasswordRecovery. recover(SignUpAssistantComponent suac, User user, ISFSObject params)
ISFSObject
LegacyPasswordRecovery. recover(SignUpAssistantComponent suac, User user, ISFSObject params)
-
Uses of User in com.smartfoxserver.v2.controllers.filter
Methods in com.smartfoxserver.v2.controllers.filter with parameters of type User Modifier and Type Method Description FilterAction
ISystemFilter. handleClientRequest(User sender, ISFSObject params)
Handles a client requestFilterAction
ReadOnlyUserVariablesFilter. handleClientRequest(User sender, ISFSObject params)
FilterAction
ISystemFilterChain. runRequest(User sender, ISFSObject params)
FilterAction
SysControllerFilterChain. runRequest(User sender, ISFSObject params)
-
Uses of User in com.smartfoxserver.v2.entities
Classes in com.smartfoxserver.v2.entities that implement User Modifier and Type Class Description class
SFSUser
OverviewMethods in com.smartfoxserver.v2.entities that return User Modifier and Type Method Description User
Loggable. doLogin(LoginData ld)
User
Room. getOwner()
Get the owner of the Room (the user that created it)User
SFSRoom. getOwner()
Get the owner of the Room (the user that created it)User
Room. getUserById(int id)
User
SFSRoom. getUserById(int id)
User
SFSZone. getUserById(int id)
Get a User from its unique IDUser
Zone. getUserById(int id)
Get a User from its unique IDUser
Room. getUserByName(java.lang.String name)
User
SFSRoom. getUserByName(java.lang.String name)
User
SFSZone. getUserByName(java.lang.String name)
Get a User from its nameUser
Zone. getUserByName(java.lang.String name)
Get a User from its nameUser
Room. getUserByPlayerId(int playerId)
Get the User currently having the specified playerId (Game Room only)User
SFSRoom. getUserByPlayerId(int playerId)
Get the User currently having the specified playerId (Game Room only)User
Room. getUserBySession(ISession session)
User
SFSRoom. getUserBySession(ISession session)
User
SFSZone. getUserBySession(ISession session)
Get a User from its Session objectUser
Zone. getUserBySession(ISession session)
Get a User from its Session objectUser
SFSZone. login(LoginData loginData)
INTERNALUser
Zone. login(LoginData loginData)
INTERNALMethods in com.smartfoxserver.v2.entities that return types with arguments of type User Modifier and Type Method Description java.util.List<User>
SFSUser. getLastProxyList()
java.util.List<User>
User. getLastProxyList()
java.util.List<User>
Room. getPlayersList()
For Game Rooms: get all Players in the Room (same as all User without the Spectators)java.util.List<User>
SFSRoom. getPlayersList()
For Game Rooms: get all Players in the Room (same as all User without the Spectators)java.util.List<User>
Room. getSpectatorsList()
For Game Rooms: get all Spectators in the Room (same as all User without the Players)java.util.List<User>
SFSRoom. getSpectatorsList()
For Game Rooms: get all Spectators in the Room (same as all User without the Players)java.util.List<User>
Room. getUserList()
Get all Users in the Roomjava.util.List<User>
SFSRoom. getUserList()
Get all Users in the Roomjava.util.Collection<User>
SFSZone. getUserList()
Get the list of Users logged in the Zonejava.util.Collection<User>
Zone. getUserList()
Get the list of Users logged in the Zonejava.util.Collection<User>
SFSZone. getUsersInGroup(java.lang.String groupId)
Get a list of Users from all Rooms in the provided Room Groupjava.util.Collection<User>
Zone. getUsersInGroup(java.lang.String groupId)
Get a list of Users from all Rooms in the provided Room GroupMethods in com.smartfoxserver.v2.entities with parameters of type User Modifier and Type Method Description void
Room. addUser(User user)
void
Room. addUser(User user, boolean asSpectator)
void
SFSRoom. addUser(User user)
void
SFSRoom. addUser(User user, boolean asSpectator)
boolean
Room. containsUser(User user)
Checks if the specified User is joined in the Roomboolean
SFSRoom. containsUser(User user)
Checks if the specified User is joined in the RoomRoom
SFSZone. createRoom(CreateRoomSettings params, User user)
Use theSFSApi.createRoom(Zone, CreateRoomSettings, User)
method insteadRoom
Zone. createRoom(CreateRoomSettings params, User user)
void
ILoginFinalizer. doFinalize(User user)
void
LoginFinalizer. doFinalize(User user)
java.util.List<RoomVariable>
Room. getVariablesCreatedByUser(User user)
Get a list of Room Variables created by a specific Userjava.util.List<RoomVariable>
SFSRoom. getVariablesCreatedByUser(User user)
Get a list of Room Variables created by a specific Uservoid
Room. removeUser(User user)
void
SFSRoom. removeUser(User user)
void
SFSZone. removeUser(User user)
INTERNALvoid
Zone. removeUser(User user)
INTERNALvoid
SFSZone. removeUserFromRoom(User user, Room room)
void
Zone. removeUserFromRoom(User user, Room room)
INTERNALjava.util.List<RoomVariable>
Room. removeVariablesCreatedByUser(User user)
java.util.List<RoomVariable>
Room. removeVariablesCreatedByUser(User user, boolean isLeaveRoom)
java.util.List<RoomVariable>
SFSRoom. removeVariablesCreatedByUser(User user)
java.util.List<RoomVariable>
SFSRoom. removeVariablesCreatedByUser(User user, boolean isLeaveRoom)
void
Room. setOwner(User user)
void
SFSRoom. setOwner(User owner)
void
Room. switchPlayerToSpectator(User user)
void
SFSRoom. switchPlayerToSpectator(User user)
void
Room. switchSpectatorToPlayer(User user)
void
SFSRoom. switchSpectatorToPlayer(User user)
Method parameters in com.smartfoxserver.v2.entities with type arguments of type User Modifier and Type Method Description void
SFSUser. setLastProxyList(java.util.List<User> proxyList)
void
User. setLastProxyList(java.util.List<User> proxyList)
Constructors in com.smartfoxserver.v2.entities with parameters of type User Constructor Description SFSBannedUser(User user, int durationMinutes, BanMode mode)
SFSBannedUser(User user, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String adminName)
-
Uses of User in com.smartfoxserver.v2.entities.invitation
Fields in com.smartfoxserver.v2.entities.invitation with type parameters of type User Modifier and Type Field Description protected java.util.Map<User,java.util.List<Invitation>>
SFSInvitationManager. invitationsByOwner
Methods in com.smartfoxserver.v2.entities.invitation that return User Modifier and Type Method Description User
Invitation. getInvitee()
Get the Invitee, the user that receives the invitationUser
SFSInvitation. getInvitee()
User
Invitation. getInviter()
Get the Inviter, the user that started this invitationUser
SFSInvitation. getInviter()
Constructors in com.smartfoxserver.v2.entities.invitation with parameters of type User Constructor Description SFSInvitation(User inviter, User invitee, int secondsForAnswer)
SFSInvitation(User inviter, User invitee, int secondsForAnswer, ISFSObject params)
-
Uses of User in com.smartfoxserver.v2.entities.managers
Methods in com.smartfoxserver.v2.entities.managers with parameters of type User Modifier and Type Method Description void
SFSBannedUserManager. banUser(User userToBan, User modUser, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String banMessage, int delaySeconds)
void
SFSBannedUserManager. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds)
void
SFSBannedUserManager. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds, boolean isBan)
void
SFSBannedUserManager. sendWarningMessage(User recipient, User senderMod, java.lang.String message)
-
Uses of User in com.smartfoxserver.v2.entities.match
Methods in com.smartfoxserver.v2.entities.match that return types with arguments of type User Modifier and Type Method Description java.util.List<User>
MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions)
java.util.List<User>
MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions, int limit)
Methods in com.smartfoxserver.v2.entities.match with parameters of type User Modifier and Type Method Description boolean
MatchingUtils. matchUser(User user, MatchExpression conditions)
Method parameters in com.smartfoxserver.v2.entities.match with type arguments of type User Modifier and Type Method Description java.util.List<User>
MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions)
java.util.List<User>
MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions, int limit)
-
Uses of User in com.smartfoxserver.v2.entities.variables
Methods in com.smartfoxserver.v2.entities.variables that return User Modifier and Type Method Description User
RoomVariable. getOwner()
Return the User that created the variable.User
SFSRoomVariable. getOwner()
Return the User that created the variable.Methods in com.smartfoxserver.v2.entities.variables with parameters of type User Modifier and Type Method Description void
RoomVariable. setOwner(User user)
Sets the creator of a variable.void
SFSRoomVariable. setOwner(User user)
Sets the creator of a variable. -
Uses of User in com.smartfoxserver.v2.extensions
Methods in com.smartfoxserver.v2.extensions with parameters of type User Modifier and Type Method Description void
IClientRequestHandler. handleClientRequest(User sender, ISFSObject params)
Handle a client requestvoid
ISFSExtension. handleClientRequest(java.lang.String cmdName, User sender, ISFSObject params)
This method is called whenever a client sends a request to this Extensionvoid
SFSExtension. handleClientRequest(java.lang.String requestId, User sender, ISFSObject params)
This method is called whenever a client sends a request to this Extensionprotected void
BaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, User recipient)
Send a response back to a Userprotected void
BaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)
Send a response back to a Userprotected void
BaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, User recipient)
Send a response back to a Userprotected void
BaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)
Send a response back to a Uservoid
BaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient)
void
BaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)
void
ISFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient)
void
ISFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)
Send an extension message/response to a single UserMethod parameters in com.smartfoxserver.v2.extensions with type arguments of type User Modifier and Type Method Description protected void
BaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)
Broadcast a response back to multiple Usersprotected void
BaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)
Broadcast a response back to multiple Usersprotected void
BaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)
Broadcast a response back to multiple Usersprotected void
BaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)
Broadcast a response back to multiple Usersvoid
BaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)
void
BaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)
Send an extension message/response to a list of recipientsvoid
ISFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)
void
ISFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)
Send an extension message/response to a list of recipients -
Uses of User in com.smartfoxserver.v2.extensions.filter
Methods in com.smartfoxserver.v2.extensions.filter with parameters of type User Modifier and Type Method Description FilterAction
IFilter. handleClientRequest(java.lang.String requestId, User sender, ISFSObject params)
Handles a client requestFilterAction
IFilterChain. runRequestInChain(java.lang.String requestId, User sender, ISFSObject params)
FilterAction
SFSExtensionFilterChain. runRequestInChain(java.lang.String requestId, User sender, ISFSObject params)
-
Uses of User in com.smartfoxserver.v2.game
Methods in com.smartfoxserver.v2.game that return types with arguments of type User Modifier and Type Method Description java.util.List<User>
CreateSFSGameSettings. getInvitedPlayers()
For private games only: A list of players invited to play in the Game.Methods in com.smartfoxserver.v2.game with parameters of type User Modifier and Type Method Description void
SFSGame. addUser(User user, boolean asSpectator)
void
SFSGame. removeUser(User user)
void
SFSGame. switchPlayerToSpectator(User user)
void
SFSGame. switchSpectatorToPlayer(User user)
Method parameters in com.smartfoxserver.v2.game with type arguments of type User Modifier and Type Method Description void
CreateSFSGameSettings. setInvitedPlayers(java.util.List<User> invitedPlayers)
Set a list of people invited to play a private Game -
Uses of User in com.smartfoxserver.v2.mmo
Methods in com.smartfoxserver.v2.mmo that return User Modifier and Type Method Description User
MMORoom. getUserByPlayerId(int playerId)
Methods in com.smartfoxserver.v2.mmo that return types with arguments of type User Modifier and Type Method Description java.util.List<User>
MMORoom. getPlayersList()
java.util.List<User>
MMORoom. getProximityList(User target)
Returns the List of Users falling within the target's AOIjava.util.List<User>
MMORoom. getProximityList(User target, Vec3D aoi)
Returns the List of Users falling within the a custom AOI around the targetjava.util.List<User>
MMORoom. getProximityList(Vec3D position)
Returns the List of Users falling within the AOI of the target positionjava.util.List<User>
MMORoom. getProximityList(Vec3D position, Vec3D aoi)
Returns the List of Users falling within the custom AOI around the target positionjava.util.List<User>
MMORoom.PreviousMMORoomState. getProxyList()
java.util.List<User>
MMORoom. getSpectatorsList()
Methods in com.smartfoxserver.v2.mmo with parameters of type User Modifier and Type Method Description void
MMORoom. addUser(User user, boolean asSpectator)
privatecom.smartfoxserver.v2.mmo.P3D
MMORoom. findUserLocation(User user)
privatejava.util.List<BaseMMOItem>
MMORoom. getProximityItems(User target)
Get the list of MMOItems falling within the User's AoIjava.util.List<BaseMMOItem>
MMORoom. getProximityItems(User target, Vec3D aoi)
Get the list of MMOItems falling within a custom AoIjava.util.List<User>
MMORoom. getProximityList(User target)
Returns the List of Users falling within the target's AOIjava.util.List<User>
MMORoom. getProximityList(User target, Vec3D aoi)
Returns the List of Users falling within the a custom AOI around the targetvoid
MMORoom. removeUser(User user)
privatevoid
MMORoom. updateUser(User user)
privateConstructor parameters in com.smartfoxserver.v2.mmo with type arguments of type User Constructor Description PreviousMMORoomState(int roomId, java.util.List<User> proxyList)
-
Uses of User in com.smartfoxserver.v2.security
Methods in com.smartfoxserver.v2.security with parameters of type User Modifier and Type Method Description boolean
PrivilegeManager. isFlagSet(User user, SystemPermission permission)
boolean
SFSPrivilegeManager. isFlagSet(User user, SystemPermission permission)
boolean
PrivilegeManager. isRequestAllowed(User user, SystemRequest request)
boolean
SFSPrivilegeManager. isRequestAllowed(User user, SystemRequest request)
-
Uses of User in com.smartfoxserver.v2.util
Methods in com.smartfoxserver.v2.util that return User Modifier and Type Method Description static User
UsersUtil. getServerAdmin()
static User
UsersUtil. getServerModerator()
Methods in com.smartfoxserver.v2.util with parameters of type User Modifier and Type Method Description com.smartfoxserver.v2.util.filters.FilteredMessage
IWordFilter. apply(java.lang.String message, User user)
com.smartfoxserver.v2.util.filters.FilteredMessage
SFSWordFilter. apply(java.lang.String message, User user)
Applies the filter to a message/string of a User.void
IFloodFilter. filterRequest(T reqType, User user)
void
SFSFloodFilter. filterRequest(SystemRequest reqType, User user)
static boolean
UsersUtil. isAllowedToPerformNewSearch(User user)
static boolean
UsersUtil. usersSeeEachOthers(User sender, User recipient)
-