|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.spray.loader.task.Action
org.norther.tammi.spray.loader.task.ActionEvent
org.norther.tammi.spray.template.step.FlowStepAction
org.norther.tammi.spray.template.step.NextStepAction
org.norther.tammi.spray.template.step.FormStepAction
org.norther.tammi.spray.db.step.RepositoryStepAction
org.norther.tammi.spray.db.step.SelectionStepAction
org.norther.tammi.spray.db.step.UserAccountAction
public class UserAccountAction
A flow step action for editing user accounts.
Note that an optional locale variant is interpreted as a user specific skin.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.spray.db.step.SelectionStepAction |
|---|
DELETE_ACTION, INSERT_ACTION, MARKED_NAME_PROPERTY, SELECTED_NAME_PROPERTY, UPDATE_ACTION |
| Fields inherited from class org.norther.tammi.spray.db.step.RepositoryStepAction |
|---|
NULL_PK, ROOT_PK |
| Fields inherited from interface org.norther.tammi.spray.template.flow.StepFlowConstants |
|---|
ADAPTABLE_STATE, DISPOSABLE_STATE, EXPLICIT_STATE, FINISHED_STATE, HELP_PIPE_PROPERTY, QUALIFIED_STATE, READ_ONLY_STATE, REPOSITORY_PROPERTY, SELECTABLE_STATE |
| Constructor Summary | |
|---|---|
UserAccountAction()
Constructs a new flow step action. |
|
| Method Summary | |
|---|---|
protected String |
digest(String username,
String password,
FilterChain chain)
Digests the password for the specified username by applying the current realm. |
Variable |
getAccountVariable(int index,
Identity id,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Gets an imported account variable for the selected user. |
Variable |
getAccountVariable(int index,
Identity id,
String fkField,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Gets an imported account variable for the selected user and foreign key. |
Variable |
getAccountVariable(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Gets an imported account variable for the current user. |
static List |
getPostDependencies()
Gets the post-dependencies of the account class. |
static List |
getPreDependencies()
Gets the pre-dependencies of the account class. |
void |
prepare(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Prepares the current account variable. |
void |
submitDeleteAccount(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Deletes the selected user account. |
void |
submitInsertAccount(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Inserts the selected user account. |
void |
submitUpdateAccount(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates the selected user account. |
void |
submitUpdateForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Executes the default submit. |
| Methods inherited from class org.norther.tammi.spray.template.step.FormStepAction |
|---|
disableNextStep, enableNextStep, isStepFinished, parseUploadedFile, parseUploadedFile, setStepFinished, submit, submitCancelStep, submitFinishStep, submitNextStep, submitPreviousStep, submitRenewForm, submitResetForm, update, update |
| Methods inherited from class org.norther.tammi.spray.template.step.NextStepAction |
|---|
submitBackStep |
| Methods inherited from class org.norther.tammi.spray.template.step.FlowStepAction |
|---|
checkPermission, checkPermission, done, execute, execute, finish, forward, getPermissibleRoles, getSignature, include, initialize, initialize, pushError, submit, submitOpenHelp |
| Methods inherited from class org.norther.tammi.spray.loader.task.ActionEvent |
|---|
getAction, getAction, getAction, invoke |
| Methods inherited from class org.norther.tammi.spray.loader.task.Action |
|---|
find, getFilter, getMBeanServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserAccountAction()
| Method Detail |
|---|
public static List getPreDependencies()
public static List getPostDependencies()
public Variable getAccountVariable(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
index - the variable index.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errros.
public Variable getAccountVariable(int index,
Identity id,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
index - the variable index.id - the selected identity.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errros.
public Variable getAccountVariable(int index,
Identity id,
String fkField,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
index - the variable index.id - the selected identity.fkField - the foreign key field.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errros.
public void prepare(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
prepare in class FlowStepActionrequest - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void submitUpdateForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
submitUpdateForm in class FormStepActionrequest - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void submitInsertAccount(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
index - the variable index.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void submitUpdateAccount(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
index - the variable index.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void submitDeleteAccount(int index,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
index - the variable index.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
protected String digest(String username,
String password,
FilterChain chain)
throws Exception
username - the username.password - the password.chain - the filter chain.
Exception - on errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||