|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LoginEventHandler
Custom login event handler.
Implement this class, implementing the
executeLogin method,
and use as a server extension to customize
logins. See the LoginEventHandler example plug-in.
| Method Summary | |
|---|---|
ChainAction |
executeLogin(LoginContext context)
Custom login event handler. |
void |
userDidLogin(String userName)
Custom event handler that is triggered after a user logs in successfully. |
| Methods inherited from interface com.electrotank.electroserver5.extensions.EventHandler |
|---|
getApi, setApi |
| Method Detail |
|---|
ChainAction executeLogin(LoginContext context)
Custom login event handler. See the LoginEventHandler example plug-in.
Note: UserVariables, ExtensionBoundUserServerVariables and UserServerVariables
cannot be set using getApi() during executeLogin, because the user has not finished logging in.
If you need to set one or more
of these, use the LoginContext instead, or set them
in the userDidLogin method.
context - LoginContext from user attempting to login
void userDidLogin(String userName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||