|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerMovie
Interface representing a movie connected to the OpenSMUS server.
ServerSideScript classes can use the serverMovie() method to retrieve a pointer to the ServerMovie object that created them.
Scripts can also use methods of the ServerObject interface to retrieve pointers to other movies connected to the server.
Method Summary | |
---|---|
ServerGroup |
createServerGroup(java.lang.String groupname)
Creates a new group on the movie and returns a pointer to it. |
void |
deleteServerGroup(java.lang.String groupname)
Deletes a group from the movie. |
void |
disableGroup(java.lang.String gname)
Disables this group so new users can not join it. |
void |
enableGroup(java.lang.String gname)
Enables this group to receive new users. |
ServerGroup |
getServerGroup(int groupidx)
Retrieves a pointer to a ServerGroup object representing a group that exists on this ServerMovie. |
ServerGroup |
getServerGroup(java.lang.String groupname)
Retrieves a pointer to a ServerGroup object representing a group that exists on this ServerMovie. |
java.lang.String |
name()
Returns the name of the movie as a String |
boolean |
persists()
Checks if the movie is set to persist on the server even when no users are connected to it. |
int |
serverGroupCount()
Gets the number of groups in this movie. |
int |
serverUserCount()
Gets the number of users connected to this movie. |
void |
setpersists(boolean persistflag)
Toggles the movie persistent flag for this movie. |
void |
setuserLevel(int level)
Sets the default user levels for users that connect to this movie and do not have a user account in the DB. |
int |
userLevel()
Gets the default user levels for users that connect to this movie and do not have a user account in the DB. |
Method Detail |
---|
ServerGroup getServerGroup(java.lang.String groupname) throws GroupNotFoundException
groupname
- String with the name of the group to be returned
GroupNotFoundException
ServerGroup getServerGroup(int groupidx) throws GroupNotFoundException
groupidx
- index of the movie to be returned
GroupNotFoundException
ServerGroup createServerGroup(java.lang.String groupname) throws MUSErrorCode
groupname
- String with the name of the group to be created
MUSErrorCode
void deleteServerGroup(java.lang.String groupname)
groupname
- String with the name of the group to be deletedint serverGroupCount()
int serverUserCount()
java.lang.String name()
int userLevel()
void setuserLevel(int level)
void enableGroup(java.lang.String gname)
void disableGroup(java.lang.String gname)
boolean persists()
void setpersists(boolean persistflag)
persistflag
- TRUE if the movie needs to persist on the server, FALSE otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |