| Modifier and Type | Class and Description |
|---|---|
class |
BureauAuthName
Represents an authenticated bureau client.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Name> |
ChatDirector.requestTell(T target,
String msg,
ResultListener<T> rl)
Requests that a tell message be delivered to the specified target user.
|
| Modifier and Type | Method and Description |
|---|---|
Name[] |
MuteDirector.getMuted() |
| Modifier and Type | Method and Description |
|---|---|
String |
MuteDirector.filter(String msg,
Name otherUser,
boolean outgoing) |
String |
CurseFilter.filter(String msg,
Name otherUser,
boolean outgoing) |
String |
ChatFilter.filter(String msg,
Name otherUser,
boolean outgoing)
Filter a chat message.
|
String |
ChatDirector.filter(String msg,
Name otherUser,
boolean outgoing)
Run a message through all the currently registered filters.
|
boolean |
ChatDirector.ChatterValidator.isChatterValid(Name username)
Returns whether the username may be added to the chatters list.
|
boolean |
MuteDirector.isMuted(Name username)
Check to see if the specified user is muted.
|
void |
MuteDirector.MuteObserver.muteChanged(Name playername,
boolean nowMuted)
The specified player was added or removed from the mutelist.
|
void |
MuteDirector.setMuted(Name username,
boolean mute)
Mute or unmute the specified user.
|
void |
ChatService.tell(Name target,
String message,
ChatService.TellListener listener)
Requests that a tell message be delivered to the user with username equal to
target. |
| Modifier and Type | Method and Description |
|---|---|
void |
ChatDirector.ChatterObserver.chattersUpdated(Iterator<Name> chatternames)
Called when the list of chatters has been changed.
|
| Constructor and Description |
|---|
MuteDirector(CrowdContext ctx,
Name[] list)
Set up the mute director with the specified list of initial mutees.
|
| Modifier and Type | Field and Description |
|---|---|
Name |
UserSystemMessage.speaker
The "speaker" of this message, the user that triggered that this message be sent to us.
|
Name |
UserMessage.speaker
The user that the message came from.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
UserMessage.getSpeakerDisplayName()
Returns the name to display for the speaker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpeakObject.ListenerOp.apply(SpeakObject sender,
Name username)
Call this method if you can provide usernames directly.
|
static UserMessage |
UserMessage.create(Name speaker,
String message)
Constructs a user message for a player originated tell (which has no bundle and is in the
default mode).
|
static UserSystemMessage |
UserSystemMessage.create(Name sender,
String message,
String bundle)
Construct a INFO-level UserSystemMessage.
|
void |
ChatMarshaller.tell(Name arg1,
String arg2,
ChatService.TellListener arg3) |
| Constructor and Description |
|---|
TellFeedbackMessage(Name target,
String message,
boolean failure)
A tell feedback message is only composed on the client.
|
UserMessage(Name speaker,
String bundle,
String message,
byte mode)
Construct a user message.
|
UserSystemMessage(Name sender,
String message,
String bundle,
byte attentionLevel)
Construct a UserSystemMessage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChatProvider.broadcast(Name from,
byte levelOrMode,
String bundle,
String msg,
boolean forward)
Broadcast with support for a customizable level or mode.
|
void |
ChatProvider.broadcast(Name from,
String bundle,
String msg,
boolean attention,
boolean forward)
Broadcasts the specified message to all place objects in the system.
|
void |
ChatHistory.clear(Name username)
Clears the chat history for the specified user.
|
void |
ChatChannelManager.collectChatHistory(Name user,
ResultListener<ChatChannelManager.ChatHistoryResult> lner)
Collects all chat messages heard by the given user on all peers.
|
void |
ChatProvider.deliverTell(UserMessage message,
Name target,
ChatService.TellListener listener)
Delivers a tell message to the specified target and notifies the supplied listener of the
result.
|
void |
ChatProvider.ChatForwarder.forwardBroadcast(Name from,
byte levelOrMode,
String bundle,
String msg)
Requests that the supplied broadcast message be delivered on other servers.
|
boolean |
ChatProvider.ChatForwarder.forwardTell(UserMessage message,
Name target,
ChatService.TellListener listener)
Requests that the supplied tell message be delivered to the appropriate destination.
|
List<ChatHistory.Entry> |
ChatHistory.get(Name username)
Returns a list of
ChatHistory.Entry objects, one for each message to which this user has been
privy in the recent past. |
void |
ChatHistory.hold(Name username)
Causes the chat history for the given user to be held briefly after the
ChatHistory.clear(com.threerings.util.Name)
call so that session observers can grab it. |
void |
SpeakUtil.MessageObserver.messageDelivered(String source,
Name hearer,
UserMessage message)
Called for each player that hears a particular chat message.
|
void |
ChatHistory.record(ChatChannel channel,
String source,
UserMessage msg,
Name... usernames)
Records the specified channel and message to the specified users' chat histories.
|
static void |
SpeakUtil.sendSpeak(DObject speakObj,
Name speaker,
String bundle,
String message)
Sends a speak notification to the specified place object originating with the specified
speaker (the speaker optionally being a server entity that wishes to fake a "speak" message)
and with the supplied message content.
|
static void |
SpeakUtil.sendSpeak(DObject speakObj,
Name speaker,
String bundle,
String message,
byte mode)
Sends a speak notification to the specified place object originating with the specified
speaker (the speaker optionally being a server entity that wishes to fake a "speak" message)
and with the supplied message content.
|
void |
ChatProvider.tell(ClientObject caller,
Name target,
String message,
ChatService.TellListener listener)
|
| Modifier and Type | Method and Description |
|---|---|
OccupantInfo |
OccupantDirector.getOccupantInfo(Name username)
Returns the occupant info for the user in question if it exists in
the currently occupied place.
|
| Modifier and Type | Field and Description |
|---|---|
Name |
OccupantInfo.username
The username of this occupant.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
BodyObject.getVisibleName()
Returns the name that should be displayed to other users.
|
| Modifier and Type | Method and Description |
|---|---|
OccupantInfo |
PlaceObject.getOccupantInfo(Name username)
Looks up a user's occupant info by name.
|
| Constructor and Description |
|---|
NameUpdater(Name name) |
| Modifier and Type | Method and Description |
|---|---|
void |
CrowdPeerService.deliverBroadcast(Name from,
byte levelOrMode,
String bundle,
String msg)
Dispatches a broadcast message on this peer.
|
void |
CrowdPeerService.deliverTell(UserMessage message,
Name target,
ChatService.TellListener listener)
Used to forward a tell request to the server on which the destination user actually
occupies.
|
| Modifier and Type | Field and Description |
|---|---|
Name |
CrowdClientInfo.visibleName
The client's visible name, which is used for chatting.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CrowdPeerMarshaller.deliverBroadcast(Name arg1,
byte arg2,
String arg3,
String arg4) |
void |
CrowdPeerMarshaller.deliverTell(UserMessage arg1,
Name arg2,
ChatService.TellListener arg3) |
| Modifier and Type | Method and Description |
|---|---|
void |
CrowdPeerProvider.deliverBroadcast(ClientObject caller,
Name arg1,
byte arg2,
String arg3,
String arg4)
|
void |
CrowdPeerManager.deliverBroadcast(ClientObject caller,
Name from,
byte levelOrMode,
String bundle,
String msg) |
void |
CrowdPeerProvider.deliverTell(ClientObject caller,
UserMessage arg1,
Name arg2,
ChatService.TellListener arg3)
|
void |
CrowdPeerManager.deliverTell(ClientObject caller,
UserMessage message,
Name target,
ChatService.TellListener listener) |
void |
CrowdPeerManager.forwardBroadcast(Name from,
byte levelOrMode,
String bundle,
String msg) |
boolean |
CrowdPeerManager.forwardTell(UserMessage message,
Name target,
ChatService.TellListener listener) |
| Modifier and Type | Method and Description |
|---|---|
BodyObject |
BodyLocator.lookupBody(Name visibleName)
Returns the body object for the user with the specified visible name, or null if they are
not online.
|
| Modifier and Type | Field and Description |
|---|---|
Name |
ClientObject.username
This client's authentication username.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientObject.setUsername(Name value)
Requests that the
username field be set to the
specified value. |
| Modifier and Type | Method and Description |
|---|---|
Name |
UsernamePasswordCreds.getUsername() |
| Constructor and Description |
|---|
UsernamePasswordCreds(Name username,
String password)
Construct credentials with the supplied username and password.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PeerAuthName
Represents an authenticated peer client.
|
| Modifier and Type | Field and Description |
|---|---|
Name |
ClientInfo.username
The username used by this client to authenticate.
|
| Modifier and Type | Method and Description |
|---|---|
ClientInfo |
PeerManager.locateClient(Name key)
Locates the client with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
PresentsSession.getAuthName()
Returns the username with which this client authenticated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientManager.applyToClient(Name username,
ClientManager.ClientOp clop)
Resolves the specified client, applies the supplied client operation to them and releases
the client.
|
void |
PresentsSession.clientResolved(Name username,
ClientObject clobj) |
void |
ClientResolutionListener.clientResolved(Name username,
ClientObject clobj)
Called when resolution completed successfully.
|
void |
ClientManager.clientResolved(Name username,
ClientObject clobj) |
void |
ClientManager.connectionEstablished(PresentsConnection conn,
Name authname,
AuthRequest req,
AuthResponse rsp)
Called by the connection manager to let us know when a new connection has been established.
|
PresentsSession |
ClientManager.getClient(Name authUsername)
Returns the client instance that manages the client session for the specified authentication
username or null if that client is not currently connected to the server.
|
ClientObject |
ClientManager.getClientObject(Name username)
Returns the client object associated with the specified username.
|
abstract Class<? extends ClientResolver> |
SessionFactory.getClientResolverClass(Name username)
Returns the
ClientResolver derived class to use to resolve a client with the
specified username or null if this factory does not handle clients of the supplied type. |
void |
ClientResolver.init(Name username)
Initializes this instance.
|
void |
ClientManager.releaseClientObject(Name username)
Releases a client object that was obtained via a call to
ClientManager.resolveClientObject(com.threerings.util.Name, com.threerings.presents.server.ClientResolutionListener). |
void |
PresentsSession.resolutionFailed(Name username,
Exception reason) |
void |
ClientResolutionListener.resolutionFailed(Name username,
Exception reason)
Called when resolution fails.
|
void |
ClientManager.resolutionFailed(Name username,
Exception reason) |
void |
ClientManager.resolveClientObject(Name username,
ClientResolutionListener listener)
Requests that the client object for the specified user be resolved.
|
void |
PresentsSession.setUsername(Name username,
PresentsSession.UserChangeListener ucl)
Danger: this method is not for general consumption.
|
boolean |
PresentsSession.updateUsername(Name username)
Double Danger: this method is not for general consumption.
|
| Modifier and Type | Method and Description |
|---|---|
static SessionFactory |
SessionFactory.newSessionFactory(Class<? extends Credentials> credsClass,
Class<? extends PresentsSession> sessionClass,
Class<? extends Name> nameClass,
Class<? extends ClientResolver> resolverClass)
Creates a session factory that handles clients with the supplied credentials and
authentication name.
|
| Constructor and Description |
|---|
ServiceAuthenticator(Class<T> credsClass,
Class<? extends Name> authNameClass)
Creates an authenticator that will handle requests using the supplied credentials class and
which will create instances of the supplied auth name class to identify those clients.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
AuthingConnection.getAuthName()
Returns the username that uniquely identifies this authenticated session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AuthingConnection.setAuthName(Name authname)
During the authentication process, the authenticator must establish the client's
authentication username and configure it via this method.
|
| Modifier and Type | Field and Description |
|---|---|
static Name |
Name.BLANK
A blank name for use in situations where it is needed.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Name.compareTo(Name other) |
static boolean |
Name.isBlank(Name name)
Returns true if this name is null or blank, false if it contains
useful data.
|
Copyright © 2015. All rights reserved.