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, getConfirm
addOptionalFromComposites, 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, makeReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
getContext
getFactory
public SignupFormCreator(AppUserFactory<T> fac, java.lang.String realm, java.lang.String name)
fac
- AppUserFactory
realm
- String realm to set webname inname
- String webname from external authentication.public void customiseCreationForm(Form f) throws java.lang.Exception
Creator
DataObjectFormFactory.customiseForm(Form)
callcustomiseCreationForm
in interface CreateCustomizer<T extends AppUser>
customiseCreationForm
in class Creator<T extends AppUser>
f
- Form to be modifiedjava.lang.Exception
public void preCommit(T dat, Form f) throws DataException, ActionException
CreateCustomizer
preCommit
in interface CreateCustomizer<T extends AppUser>
preCommit
in class Creator<T extends AppUser>
dat
- Object being createdf
- Form
providing parametersDataException
ActionException
public void postCreate(T dat, Form f) throws java.lang.Exception
CreateCustomizer
postCreate
in interface CreateCustomizer<T extends AppUser>
postCreate
in class Creator<T extends AppUser>
java.lang.Exception
protected 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)
UpdateTemplate
FormResult
after an update.protected java.util.Set<java.lang.String> getSupress()
DataObjectFormFactory
getSupress
in class DataObjectFormFactory<T extends AppUser>
public java.util.Map<java.lang.String,java.lang.Object> getDefaults()
DataObjectFormFactory
getDefaults
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
UpdateTemplate
postUpdate
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.Exception
public final void preCommit(T dat, Form f, java.util.Map<java.lang.String,java.lang.Object> orig) throws DataException
UpdateTemplate
preCommit
in interface UpdateTemplate<T extends AppUser>
DataException