|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerObject
Interface representing the OpenSMUS server instance.
ServerSideScript classes can use the serverObject() method to retrieve a pointer to a ServerObject.
Method Summary | |
---|---|
ServerMovie |
createServerMovie(java.lang.String moviename)
Creates a new movie on the server and returns a pointer to it. |
void |
deleteServerMovie(java.lang.String moviename)
Deletes a movie from the server. |
ServerMovie |
getServerMovie(int movieidx)
Retrieves a pointer to a ServerMovie object active on the server. |
ServerMovie |
getServerMovie(java.lang.String moviename)
Retrieves a pointer to a ServerMovie object active on the server. |
ServerUserDatabase |
getServerUserDatabase()
Returns a pointer to the ServerUserDatabase interface representing the default user authentication table. |
SQLGateway |
getSQLGateway()
Returns a pointer to the SQLGateway interface representing the default SQL connection. |
int |
language()
This method is reserved. |
java.lang.String |
path()
Gets the path of the server executable in the system |
void |
put(java.lang.String msg)
Displays a message to the server active output (log file or terminal window) |
int |
serverMovieCount()
Gets the number of active movies in the server. |
void |
setuserLevel(int level)
Sets the default user levels for users that connect to the server and do not have a user account in the DB. |
int |
timeStamp()
Gets the current server time as an int |
java.lang.String |
timeString()
Gets the current server time formatted as a String |
int |
userLevel()
Gets the default user levels for users that connect to the server and do not have a user account in the DB. |
Method Detail |
---|
void put(java.lang.String msg)
ServerMovie getServerMovie(java.lang.String moviename) throws MovieNotFoundException
moviename
- String with the name of the movie to be returned
MovieNotFoundException
ServerMovie getServerMovie(int movieidx) throws MovieNotFoundException
movieidx
- index of the movie to be returned
MovieNotFoundException
ServerMovie createServerMovie(java.lang.String moviename) throws MUSErrorCode
moviename
- String with the name of the movie to be created
MUSErrorCode
void deleteServerMovie(java.lang.String moviename)
moviename
- String with the name of the movie to be deletedint serverMovieCount()
java.lang.String path()
java.lang.String timeString()
int timeStamp()
int language()
int userLevel()
void setuserLevel(int level)
SQLGateway getSQLGateway()
ServerUserDatabase getServerUserDatabase()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |