| Package | Description |
|---|---|
| org.alfresco.web.scripts.forms |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
FormUIGet.discoverArguments(FormUIGet.ModelContext context)
Determines the "arguments" that should be used for the form.
|
protected boolean |
FormUIGet.discoverBooleanParam(FormUIGet.ModelContext context,
String name)
Returns the value of the given boolean parameter.
|
protected boolean |
FormUIGet.discoverBooleanParam(FormUIGet.ModelContext context,
String name,
boolean defaultValue)
Returns the value of the given boolean parameter.
|
protected Map<String,Object> |
FormUIGet.discoverData(FormUIGet.ModelContext context)
Determines the "data" that should be used for the form.
|
protected String |
FormUIGet.discoverEncodingFormat(FormUIGet.ModelContext context)
Determines the "enctype" that should be used for the form.
|
protected org.json.JSONObject |
FormUIGet.discoverFieldDefinition(FormUIGet.ModelContext context,
String fieldName)
Returns the field definition for the given field name.
|
protected Map<String,List<String>> |
FormUIGet.discoverSetMembership(FormUIGet.ModelContext context)
Determines the set membership hierarchy.
|
protected String |
FormUIGet.discoverSubmissionUrl(FormUIGet.ModelContext context)
Determines the "submissionUrl" that should be used for the form.
|
protected FormUIGet.Constraint |
FormUIGet.generateConstraintModel(FormUIGet.ModelContext context,
FormUIGet.Field field,
FormField fieldConfig,
String constraintId,
org.json.JSONObject constraintParams,
ConstraintHandlerDefinition defaultConstraintConfig)
Generates the model for a single constraint.
|
protected FormUIGet.Constraint |
FormUIGet.generateConstraintModel(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig,
org.json.JSONObject constraintDefinition)
Generates the model for a single constraint.
|
protected FormUIGet.Constraint |
FormUIGet.generateConstraintModel(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig,
String constraintId)
Generates the model for a single constraint.
|
protected FormUIGet.Set |
FormUIGet.generateDefaultSetModelUsingServerFields(FormUIGet.ModelContext context)
Generates the model for the default set, this will contain all the fields
returned from the server.
|
protected FormUIGet.Field |
FormUIGet.generateFieldModel(FormUIGet.ModelContext context,
String fieldName,
FormField fieldConfig)
Generates the model for the given field.
|
protected Map<String,Object> |
FormUIGet.generateFormUIModel(FormUIGet.ModelContext context)
Generates the model that will be processed by the FreeMarker engine
and thus render the form UI.
|
protected FormUIGet.Set |
FormUIGet.generateSetModel(FormUIGet.ModelContext context,
FormSet setConfig,
List<String> fields)
Generates the model for the given set and it's fields.
|
protected FormUIGet.Set |
FormUIGet.generateSetModelUsingServerFields(FormUIGet.ModelContext context,
FormSet setConfig,
Map<String,List<String>> setMembership)
Generates the model for the given set, this method also recursively generates any
child sets the given set has.
|
protected FormUIGet.Set |
FormUIGet.generateSetModelUsingVisibleFields(FormUIGet.ModelContext context,
FormSet setConfig)
Generates the model for the given set, this method also recursively generates any
child sets the given set has.
|
protected FormUIGet.Field |
FormUIGet.generateTransientFieldModel(FormUIGet.ModelContext context,
String fieldName,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Generates a model for a "transient" field.
|
protected String |
FormUIGet.getProxyPath(FormUIGet.ModelContext context)
Returns the base path to the proxy to use
|
protected List<String> |
FormUIGet.getVisibleFieldsInSet(FormUIGet.ModelContext context,
FormSet setConfig)
Returns the list of visible field names for the given set.
|
protected boolean |
FormUIGet.isFieldAmbiguous(FormUIGet.ModelContext context,
String fieldName)
Determines whether the given field is ambiguous (a property and association
have the same name).
|
protected void |
FormUIGet.processCapabilities(FormUIGet.ModelContext context,
Map<String,Object> formUIModel)
Processes the "js" parameter, if present.
|
protected void |
FormUIGet.processFieldConstraintControl(FormUIGet.ModelContext context,
FormUIGet.Field field,
FormField fieldConfig,
FormUIGet.Constraint constraint)
Processes the given constraint to ensure the field's control
adheres to the constraint.
|
protected void |
FormUIGet.processFieldConstraintHelp(FormUIGet.ModelContext context,
FormUIGet.Field field,
FormField fieldConfig,
FormUIGet.Constraint constraint)
Processes the given constraint to add help text to the field's control
if relevant.
|
protected void |
FormUIGet.processFieldConstraints(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the constraints for the field.
|
protected void |
FormUIGet.processFieldContent(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the field for content.
|
protected void |
FormUIGet.processFieldControl(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the control for the field.
|
protected void |
FormUIGet.processFieldData(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the "data" part of the field model.
|
protected void |
FormUIGet.processFieldIdentification(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the identification part of the field model.
|
protected void |
FormUIGet.processFields(FormUIGet.ModelContext context,
Map<String,Object> formUIModel)
Processes the "fields" section of the model.
|
protected void |
FormUIGet.processFieldState(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the "state" part of the field model i.e.
|
protected void |
FormUIGet.processFieldText(FormUIGet.ModelContext context,
FormUIGet.Field field,
org.json.JSONObject fieldDefinition,
FormField fieldConfig)
Processes the "text" part of the field model i.e.
|
protected void |
FormUIGet.processServerFields(FormUIGet.ModelContext context)
Processes the fields returned from the server (the form definition), this
method is called when there are no visible fields configured.
|
protected void |
FormUIGet.processTemplates(FormUIGet.ModelContext context,
Map<String,Object> formUIModel)
Processes the optional custom templates configuration.
|
protected void |
FormUIGet.processVisibleFields(FormUIGet.ModelContext context)
Processes the fields configured to be visible for the form.
|
Copyright © 2005–2014 Alfresco Software. All rights reserved.