org.locomotive.module.userpref
Class PersonalPrefHandler
java.lang.Object
|
+--org.locomotive.loco.handler.GenericHandler
|
+--org.locomotive.module.userpref.PersonalPrefHandler
- public class PersonalPrefHandler
- extends GenericHandler
A simple User Preference System. Allows a user to modify his
preferences/personal info. To use this module, add the handler
to your hrt.conf file. An example would be:
usrpref org.locomotive.module.userpref.PersonalPrefHandler
entry point from UserPrefHandler.java - main logic of handler
This handler accepts the following URLS:
usrpref or displays personal page. if permissions allow,
usrpref?personal modifications may be made to certain fields.
Fields inherited from class org.locomotive.loco.handler.GenericHandler |
already_displayed_page,
conn,
DEBUG,
ERROR,
form_data,
handler_uri,
hd,
NORMAL,
session,
steam_vars,
url_tokens,
user,
WARNING |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PersonalPrefHandler
public PersonalPrefHandler()
handleRequest
public void handleRequest(HandlerData hd_in)
- determines whether hit requires handling new data,
then displays the page
- Overrides:
- handleRequest in class GenericHandler
saveFormValuesToUserPref
public static boolean saveFormValuesToUserPref(FormData formData,
UserPref upi,
java.lang.StringBuffer errorBuf)
formatUserPrefsToSteam
public static void formatUserPrefsToSteam(UserPref info,
java.util.Hashtable steamVars)
init
public boolean init(Log log)
- Required to implement Handler. Doesn't currently do anything
- Overrides:
- init in class GenericHandler