All Packages Class Hierarchy This Package Previous Next Index
Interface net.tabuleiro.nebulae.ServerUser
- public abstract interface ServerUser
-
creationTime()
-
Gets this user's creationTime on the server, equivalent to the user login
-
deleteUser()
-
Deletes this user, disconnecting him from the server.
-
getGroupNames()
-
Gets a list of the groups this user is a member of.
-
getGroupsCount()
-
Gets the number of groups this user is a member of.
-
groupJoined(ServerGroup)
-
Called by the Nebulae server when the user joins a group.
-
groupLeft(ServerGroup)
-
Called by the Nebulae server when the user leaves a group.
-
ipAddress()
-
Gets this user's IP address as a String
-
name()
-
Returns the name of the user as a String
-
postMessage(MUSMessage)
-
Posts a message to the Nebulae server dispatcher.
-
sendMessage(MUSMessage)
-
Sends a message to this server user directly.
-
serverMovie()
-
Retrieves the ServerMovie object representing the movie this user is connected to.
-
setuserLevel(int)
-
Sets the user access level for this user.
-
userLevel()
-
Gets the user access level for this user
sendMessage
public abstract void sendMessage(net.tabuleiro.nebulae.MUSMessage msg)
- Sends a message to this server user directly.
- Parameters:
- msg - Message to send
postMessage
public abstract void postMessage(net.tabuleiro.nebulae.MUSMessage msg)
- Posts a message to the Nebulae server dispatcher.
Scripts can use this method to post messages to the server as if they were a connected user, since the ServerSideScript class implements the ServerUser interface.
- Parameters:
- msg - Message to post
name
public abstract java.lang.String name()
- Returns the name of the user as a String
userLevel
public abstract int userLevel()
- Gets the user access level for this user
setuserLevel
public abstract void setuserLevel(int level)
- Sets the user access level for this user.
- Parameters:
- level - new user access level
serverMovie
public abstract net.tabuleiro.nebulae.ServerMovie serverMovie()
- Retrieves the ServerMovie object representing the movie this user is connected to.
Server side scripts can use this method to retrieve a pointer to the movie that created them.
creationTime
public abstract long creationTime()
- Gets this user's creationTime on the server, equivalent to the user login
ipAddress
public abstract java.lang.String ipAddress()
- Gets this user's IP address as a String
getGroupNames
public abstract java.util.Vector getGroupNames()
- Gets a list of the groups this user is a member of.
By default all users are at least members of one group, @AllUsers
- Returns:
- Java Vector with the group names as Strings.
getGroupsCount
public abstract int getGroupsCount()
- Gets the number of groups this user is a member of.
By default all users are at least members of one group, @AllUsers
- Returns:
- the number of groups
deleteUser
public abstract void deleteUser()
- Deletes this user, disconnecting him from the server.
groupJoined
public abstract void groupJoined(net.tabuleiro.nebulae.ServerGroup grp)
- Called by the Nebulae server when the user joins a group.
- Parameters:
- grp - ServerGroup reference
groupLeft
public abstract void groupLeft(net.tabuleiro.nebulae.ServerGroup grp)
- Called by the Nebulae server when the user leaves a group.
- Parameters:
- grp - ServerGroup reference
All Packages Class Hierarchy This Package Previous Next Index