|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.handler.forms.foundation.FormHandlerBase
nl.gx.webmanager.handler.forms.handling.SubscriptionHandler
public class SubscriptionHandler
Update subscriptions of a user. The old list of subscriptions will be replaced by the newly selected list of descriptions.
| Variable | Type | Mode | Default | Description |
|---|---|---|---|---|
| countquery | Parameter | Required | - | Select query for the subscriptions of the user to find out which subscriptions this user already has. |
| insertstatement | Parameter | Required | - | Insert query for new subscription. |
| useridselectstatement | Parameter | Required | - | Query to find the userid that belong to a given username. |
| updatestatement | Parameter | Required | - | Update the format (text / HTML). |
| deletestatement | Parameter | Required | - | Delete query of the form: DELETE FROM tablename WHERE userid=? AND subscriptionid=? AND format=?. |
| connectionname | Parameter | Required | - | Name of the connection |
| usernameformpart | Parameter | Optional | - | Returns whatever is stored under GX_username in the session. The value of 'usernameformpart' will be used if the GX_username cannot be found in the session. |
| subscriptionformpartcode | Multiple Parameter | Optional | - | Formpart codes of the formparts containing the subscription ids (e.g. newsletters). |
| subscriptionformpartcode_hidden | Parameter | Optional | - | The subscription value (not subscribed / subscribed) for this subscription id. |
| subscriptionformpartcode_format | Parameter | Optional | - | The format (text or HTML) for this subscription id. |
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.handler.forms.foundation.FormHandlerBase |
|---|
DEFAULT_STATEMENT_TIMEOUT, log, staticlog |
| Constructor Summary | |
|---|---|
SubscriptionHandler()
|
|
| Method Summary | |
|---|---|
void |
doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Processes the form. |
void |
init(FormComponentConfig config)
Passes the initialization parameters to the component. |
| Methods inherited from class nl.gx.webmanager.handler.forms.foundation.FormHandlerBase |
|---|
close, close, close, executeInsertWithIdentityMSSQLMYSQL, executeInsertWithIdentityOracle, executeIntegerQuery, executeIntegerQuery, executeIntegersQuery, executeIntegersQuery, executeQuery, executeStringQuery, executeUpdate, fillValues, getDataSource, setArguments, setArguments |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubscriptionHandler()
| Method Detail |
|---|
public void init(FormComponentConfig config)
throws InitializationException
FormComponent
init in interface FormComponentconfig - The FormComponentConfig object that contains
configutation information for this component.
InitializationException - If initialization failed
public void doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws HandleException
Handler
doHandle in interface Handlerform - The definition of the form for which the submitted values
should be handled.formState - The session values for the formreq - The http requestres - The http response
HandleException - If the form values could not be handled correctly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||