01: package de.schlund.pfixcore.example.bank.ihandler;
02:
03: import de.schlund.pfixcore.example.bank.context.ContextAccount;
04: import de.schlund.pfixcore.generator.IHandler;
05: import de.schlund.pfixcore.generator.IWrapper;
06: import de.schlund.pfixcore.workflow.Context;
07:
08: public class EditAccountHandler implements IHandler {
09:
10: public void handleSubmittedData(Context context, IWrapper wrapper)
11: throws Exception {
12: }
13:
14: public boolean isActive(Context context) throws Exception {
15: ContextAccount contextAccount = context
16: .getContextResourceManager().getResource(
17: ContextAccount.class);
18: return contextAccount.getAccount() != null;
19: }
20:
21: public boolean prerequisitesMet(Context context) throws Exception {
22: return true;
23: }
24:
25: public boolean needsData(Context context) throws Exception {
26: return true;
27: }
28:
29: public void retrieveCurrentStatus(Context context, IWrapper wrapper)
30: throws Exception {
31:
32: }
33:
34: }
|