T - public static class AppUserFactory.SignupFormCreator<T extends AppUser> extends Creator<T> implements UpdateTemplate<T>
DEFAULT_FORBID_HTML, factory| Constructor and Description |
|---|
SignupFormCreator(AppUserFactory<T> fac,
java.lang.String realm,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
customiseCreationForm(Form f)
Perform target specific customisation of a creation Form.
|
protected AppUserFactory<T> |
getAppUserFactory() |
java.util.Map<java.lang.String,java.lang.Object> |
getDefaults()
Get a set of default values for the form fields
|
FormResult |
getResult(java.lang.String type_name,
T dat,
Form f)
select the
FormResult after an update. |
protected java.util.Set<java.lang.String> |
getSupress()
generate the set of suppressed fields to be used in form creation/update
|
void |
postCreate(T dat,
Form f)
Take any action after object commit.
|
void |
postUpdate(T o,
Form f,
java.util.Map<java.lang.String,java.lang.Object> orig,
boolean changed)
perform side-effects after a form update
|
void |
preCommit(T dat,
Form f)
Populate target from creation form.
|
void |
preCommit(T dat,
Form f,
java.util.Map<java.lang.String,java.lang.Object> orig)
extension point for update side effects that should be applied before the commit.
|
void |
setAction(java.lang.String type_name,
Form f) |
buildCreationForm, getActionText, getConfirmaddOptionalFromComposites, addSelectors, addTranslations, buildForm, buildForm, buildForm, buildForm, buildForm, customiseForm, find, find, getContext, getFactory, getFieldConstraints, getFieldHelp, getFields, getID, getIndex, getInputFromName, getInputFromType, getLogger, getOptional, getSelectors, getTarget, getTranslations, isMyReference, makeReference, makeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextgetContextgetFactorypublic SignupFormCreator(AppUserFactory<T> fac, java.lang.String realm, java.lang.String name)
fac - AppUserFactoryrealm - String realm to set webname inname - String webname from external authentication.public void customiseCreationForm(Form f) throws java.lang.Exception
CreatorDataObjectFormFactory.customiseForm(Form) callcustomiseCreationForm in interface CreateCustomizer<T extends AppUser>customiseCreationForm in class Creator<T extends AppUser>f - Form to be modifiedjava.lang.Exceptionpublic void preCommit(T dat, Form f) throws DataException, ActionException
CreateCustomizerpreCommit in interface CreateCustomizer<T extends AppUser>preCommit in class Creator<T extends AppUser>dat - Object being createdf - Form providing parametersDataExceptionActionExceptionpublic void postCreate(T dat, Form f) throws java.lang.Exception
CreateCustomizerpostCreate in interface CreateCustomizer<T extends AppUser>postCreate in class Creator<T extends AppUser>java.lang.Exceptionprotected AppUserFactory<T> getAppUserFactory()
public void setAction(java.lang.String type_name,
Form f)
public FormResult getResult(java.lang.String type_name, T dat, Form f)
UpdateTemplateFormResult after an update.protected java.util.Set<java.lang.String> getSupress()
DataObjectFormFactorygetSupress in class DataObjectFormFactory<T extends AppUser>public java.util.Map<java.lang.String,java.lang.Object> getDefaults()
DataObjectFormFactorygetDefaults in interface CreateTemplate<T extends AppUser>getDefaults in class DataObjectFormFactory<T extends AppUser>public void postUpdate(T o, Form f, java.util.Map<java.lang.String,java.lang.Object> orig, boolean changed) throws java.lang.Exception
UpdateTemplatepostUpdate in interface UpdateTemplate<T extends AppUser>o - object being updatedf - Form used for updateorig - Map of object state before update.changed - Did the update commit change the database objectjava.lang.Exceptionpublic final void preCommit(T dat, Form f, java.util.Map<java.lang.String,java.lang.Object> orig) throws DataException
UpdateTemplatepreCommit in interface UpdateTemplate<T extends AppUser>DataException