|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WordHoardSession
Session remote object.
Method Summary | |
---|---|
java.lang.Long |
createOrUpdateAccount(Account account)
Creates or updates an account. |
java.lang.Long |
createUserDataObject(UserDataObject userDataObject)
Creates a user data object. |
void |
deleteAccount(java.lang.Long id)
Deletes an account. |
void |
deleteUserDataObject(java.lang.Class udoClass,
java.lang.Long id)
Deletes a user data object. |
void |
deleteWordSet(WordSet wordSet)
Deletes a word set. |
void |
endSession()
Ends the session. |
java.util.List |
getAccounts()
Gets all the accounts. |
Account |
login(java.lang.String username,
java.lang.String password)
Logs in. |
void |
logMessage(int level,
java.lang.String msg)
Logs a message. |
void |
logout()
Logs out. |
int |
performBatchInserts(java.lang.String[] insertStatements)
Performs batch inserts using prepared MySQL insert statements. |
void |
tickle()
Tickles the session. |
java.lang.Long |
updateUserDataObject(UserDataObject userDataObject,
UserDataObjectUpdater userDataObjectUpdater)
Updates a user data object. |
Method Detail |
---|
void endSession() throws java.rmi.RemoteException
java.rmi.RemoteException
void tickle() throws java.rmi.RemoteException
Clients should tickle their sessions every 30 minutes. Sessions which go untickled for 2 hours are considered to be dead and are timed out and terminated.
java.rmi.RemoteException
void logMessage(int level, java.lang.String msg) throws java.rmi.RemoteException
level
- Log message level.msg
- Log message.
java.rmi.RemoteException
Account login(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
username
- Username.password
- Password.
java.rmi.RemoteException
void logout() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List getAccounts() throws java.rmi.RemoteException, WordHoardError
java.rmi.RemoteException
WordHoardError
java.lang.Long createOrUpdateAccount(Account account) throws java.rmi.RemoteException, WordHoardError
account
- Account.
java.rmi.RemoteException
WordHoardError
void deleteAccount(java.lang.Long id) throws java.rmi.RemoteException, WordHoardError
id
- Account id.
java.rmi.RemoteException
WordHoardError
java.lang.Long createUserDataObject(UserDataObject userDataObject) throws java.rmi.RemoteException, WordHoardError, BadOwnerException, PersistenceException
userDataObject
- User data object.
java.rmi.RemoteException
WordHoardError
BadOwnerException
PersistenceException
java.lang.Long updateUserDataObject(UserDataObject userDataObject, UserDataObjectUpdater userDataObjectUpdater) throws java.rmi.RemoteException, WordHoardError, BadOwnerException, PersistenceException
userDataObject
- The user data object to update.userDataObjectUpdater
- Method which updates fields of
user data object.
BadOwnerException
- if user is not
logged in or is not the owner of the
user data object.
java.rmi.RemoteException
WordHoardError
PersistenceException
void deleteUserDataObject(java.lang.Class udoClass, java.lang.Long id) throws java.rmi.RemoteException, WordHoardError, PersistenceException
udoClass
- Class of user data object to delete.id
- ID of user data object to delete.
java.rmi.RemoteException
WordHoardError
PersistenceException
void deleteWordSet(WordSet wordSet) throws java.rmi.RemoteException, WordHoardError, PersistenceException
wordSet
- Word set to delete.
java.rmi.RemoteException
WordHoardError
PersistenceException
int performBatchInserts(java.lang.String[] insertStatements) throws java.rmi.RemoteException, WordHoardError, PersistenceException
insertStatements
- String array of MySQL insert statements.
PersistenceException
java.rmi.RemoteException
WordHoardError
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |