upd: enforce a more strict Form call pattern.
authorFelix Dörre <felix@dogcraft.de>
Fri, 9 Sep 2016 23:37:33 +0000 (01:37 +0200)
committerFelix Dörre <felix@dogcraft.de>
Mon, 12 Sep 2016 16:40:58 +0000 (18:40 +0200)
commitabff88a2bf173198fe55c35ead97c9c7cdb5924c
tree17dec7736133efca700ace2837711fb90d2a23f2
parent17a15662212d973d12ed4cea3f5eaa9c0d1169ed
upd: enforce a more strict Form call pattern.

form management is now split into:
- initial generation (typically in doGet)
- actual submitting (typically in beforePost) resulting in
 - an error (permament or non-permament)
 - a submission result
   - redirect
   - success message
   - custom
- re-emitting if needed (typically in doPost)

Change-Id: Ic226bb886a513b6dfbd844294d2092b653c5df5b
55 files changed:
src/org/cacert/gigi/Gigi.java
src/org/cacert/gigi/output/template/Form.java
src/org/cacert/gigi/pages/LoginPage.java
src/org/cacert/gigi/pages/ManagedFormPage.java [new file with mode: 0644]
src/org/cacert/gigi/pages/ManagedMultiFormPage.java [new file with mode: 0644]
src/org/cacert/gigi/pages/OneFormPage.java
src/org/cacert/gigi/pages/PasswordResetPage.java
src/org/cacert/gigi/pages/Verify.java
src/org/cacert/gigi/pages/account/ChangeForm.java
src/org/cacert/gigi/pages/account/ChangePasswordPage.java
src/org/cacert/gigi/pages/account/FindAgentAccess.java
src/org/cacert/gigi/pages/account/MyDetails.java
src/org/cacert/gigi/pages/account/MyDetailsForm.java
src/org/cacert/gigi/pages/account/MyOrganisationsForm.java
src/org/cacert/gigi/pages/account/certs/CertificateAdd.java
src/org/cacert/gigi/pages/account/certs/CertificateIssueForm.java
src/org/cacert/gigi/pages/account/certs/CertificateModificationForm.java
src/org/cacert/gigi/pages/account/certs/Certificates.java
src/org/cacert/gigi/pages/account/certs/RevokeSingleCertForm.java
src/org/cacert/gigi/pages/account/domain/DomainAddForm.java
src/org/cacert/gigi/pages/account/domain/DomainManagementForm.java
src/org/cacert/gigi/pages/account/domain/DomainOverview.java
src/org/cacert/gigi/pages/account/domain/DomainPinglogForm.java
src/org/cacert/gigi/pages/account/domain/EditDomain.java [new file with mode: 0644]
src/org/cacert/gigi/pages/account/domain/PingConfigForm.java
src/org/cacert/gigi/pages/account/mail/MailAddForm.java
src/org/cacert/gigi/pages/account/mail/MailManagementForm.java
src/org/cacert/gigi/pages/account/mail/MailOverview.java
src/org/cacert/gigi/pages/admin/TTPAdminForm.java
src/org/cacert/gigi/pages/admin/TTPAdminPage.java
src/org/cacert/gigi/pages/admin/support/FindCertForm.java
src/org/cacert/gigi/pages/admin/support/FindCertPage.java
src/org/cacert/gigi/pages/admin/support/FindUserByDomainForm.java
src/org/cacert/gigi/pages/admin/support/FindUserByDomainPage.java
src/org/cacert/gigi/pages/admin/support/FindUserByEmailForm.java
src/org/cacert/gigi/pages/admin/support/FindUserByEmailPage.java
src/org/cacert/gigi/pages/admin/support/SupportEnterTicketForm.java
src/org/cacert/gigi/pages/admin/support/SupportEnterTicketPage.java
src/org/cacert/gigi/pages/admin/support/SupportRevokeCertificatesForm.java
src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.java
src/org/cacert/gigi/pages/admin/support/SupportUserDetailsPage.java
src/org/cacert/gigi/pages/main/RegisterPage.java
src/org/cacert/gigi/pages/main/Signup.java
src/org/cacert/gigi/pages/orga/AffiliationForm.java
src/org/cacert/gigi/pages/orga/CreateOrgForm.java
src/org/cacert/gigi/pages/orga/CreateOrgPage.java
src/org/cacert/gigi/pages/orga/OrgDomainAddForm.java
src/org/cacert/gigi/pages/orga/ViewOrgPage.java
src/org/cacert/gigi/pages/wot/AssuranceForm.java
src/org/cacert/gigi/pages/wot/AssurePage.java
src/org/cacert/gigi/pages/wot/RequestTTPForm.java
src/org/cacert/gigi/pages/wot/RequestTTPPage.java
tests/org/cacert/gigi/testUtils/ManagedTest.java
tests/org/cacert/gigi/testUtils/PingTest.java
util-testing/org/cacert/gigi/localisation/conf.txt