public class HTMLUserGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected FormManager |
fm
Form Logic Manager.
|
protected static String |
GLOBAL_LOCATION
The default
Location , which is global. |
static String |
HIDEN_DIALOG_NAME |
protected Set |
missingInputs
the set of missing inputs of the last form.
|
protected ModelMapper |
modelMapper
The
ModelMapper in order to find the correct Model for
each rdf class. |
protected Properties |
properties
The parent service that contains the properties.
|
Modifier | Constructor and Description |
---|---|
protected |
HTMLUserGenerator()
Only to be used by TestCases.
|
|
HTMLUserGenerator(ModuleContext mc,
Properties props,
User usr)
Constructor for one Renderer on a certain file.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Terminate current dialog and all pending dialogs.
|
Form |
getCurrentForm()
Gets the form being displayed right now.
|
User |
getCurrentUser()
Get the logged in user, the one that is in theory receiving and
manipulating the dialogs.
|
FormManager |
getFormManagement()
Get the
FormManager being used, useful to access the current
UIResquest and current form. |
Handler |
getHandler()
get the
Handler of this HTMLUserGenerator . |
String |
getHTML()
Check if there is a form available, if there is it models it and
generates HTML.
|
String |
getLanguage()
Get the Language that should be used.
|
ModelMapper |
getModelMapper()
Returns the ModelMapper that automatically assigns this Renderer to the
Models.
|
ModuleContext |
getModuleContext()
get the
ModuleContext . |
String |
getProperty(String key)
Access to the property file.
|
String |
getProperty(String key,
String defaultVal)
Access to the property file.
|
AbsLocation |
getUserLocation()
Get the location of the user, always a global location.
|
boolean |
hasImpairment(AccessImpairment impariment)
Check if impairment is listed as present impairments for the current user
and form.
|
boolean |
isMissingInput(Input i) |
void |
processInput(Map parameters)
Get the input from user and send it.
|
protected static final String GLOBAL_LOCATION
Location
, which is global.public static final String HIDEN_DIALOG_NAME
protected ModelMapper modelMapper
ModelMapper
in order to find the correct Model
for
each rdf class.protected FormManager fm
protected Properties properties
protected Set missingInputs
protected HTMLUserGenerator()
public HTMLUserGenerator(ModuleContext mc, Properties props, User usr)
mc
- the ModuleContext
to work in universAAL.usr
- the user for which this renderer is working.mc
- the ModuleContext
to create UIHandler
and send
logspublic final ModuleContext getModuleContext()
ModuleContext
.HTMLUserGenerator#moduleContext
public void finish()
public final String getProperty(String key)
key
- Key of property to accessproperties
public final String getProperty(String key, String defaultVal)
key
- Key of property to accessdefaultVal
- default value for the propertie if isn't int he property file.properties
public final Form getCurrentForm()
Form
being processed.public final User getCurrentUser()
public final boolean hasImpairment(AccessImpairment impariment)
impariment
- the AccessImpairment
to be checkedAccessImpairment
,
UIRequest
public final String getLanguage()
public FormManager getFormManagement()
FormManager
being used, useful to access the current
UIResquest and current form.fm
public final ModelMapper getModelMapper()
public final Handler getHandler()
Handler
of this HTMLUserGenerator
.Handler
public final AbsLocation getUserLocation()
public String getHTML()
public void processInput(Map parameters)
parameters
- public boolean isMissingInput(Input i)
Copyright © 2018 universAAL Consortium. All rights reserved.