All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface net.tabuleiro.nebulae.ServerUser

public abstract interface ServerUser

Method Index

 o creationTime()
Gets this user's creationTime on the server, equivalent to the user login
 o deleteUser()
Deletes this user, disconnecting him from the server.
 o getGroupNames()
Gets a list of the groups this user is a member of.
 o getGroupsCount()
Gets the number of groups this user is a member of.
 o groupJoined(ServerGroup)
Called by the Nebulae server when the user joins a group.
 o groupLeft(ServerGroup)
Called by the Nebulae server when the user leaves a group.
 o ipAddress()
Gets this user's IP address as a String
 o name()
Returns the name of the user as a String
 o postMessage(MUSMessage)
Posts a message to the Nebulae server dispatcher.
 o sendMessage(MUSMessage)
Sends a message to this server user directly.
 o serverMovie()
Retrieves the ServerMovie object representing the movie this user is connected to.
 o setuserLevel(int)
Sets the user access level for this user.
 o userLevel()
Gets the user access level for this user

Methods

 o sendMessage
 public abstract void sendMessage(net.tabuleiro.nebulae.MUSMessage msg)
Sends a message to this server user directly.

Parameters:
msg - Message to send
 o 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
 o name
 public abstract java.lang.String name()
Returns the name of the user as a String

 o userLevel
 public abstract int userLevel()
Gets the user access level for this user

 o setuserLevel
 public abstract void setuserLevel(int level)
Sets the user access level for this user.

Parameters:
level - new user access level
 o 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.

 o creationTime
 public abstract long creationTime()
Gets this user's creationTime on the server, equivalent to the user login

 o ipAddress
 public abstract java.lang.String ipAddress()
Gets this user's IP address as a String

 o 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.
 o 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
 o deleteUser
 public abstract void deleteUser()
Deletes this user, disconnecting him from the server.

 o 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
 o 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