|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestDataPrivate
File: RequestDataPrivate.java
Created: 2012-05-10
The API of the requestData private to components of MTP framework.
The protocol implementations of the requestData must implements both RequestData
and
RequestDataPrivate
.
RequestData
Field Summary | |
---|---|
static java.lang.String |
REQUEST_MODEL_ATTRIBUTE
The request attribute name for the model instance object of application. |
static java.lang.String |
SESSION_LANGUAGE_ATTRIBUTE
The session attribute name for the language of the session. |
static java.lang.String |
SESSION_ROLES_ATTRIBUTE
The session attribute name for roles granted to a session. |
Fields inherited from interface edu.uoc.pfc.j2ee.jalonsod.mtp.request.RequestData |
---|
MTP_LOGGER, REQUEST_EXCEPTION, REQUEST_REQUESTDATA_ATTRIBUTE, VALIDATION_ERROR_LOADING_PARAMETER_VALUES_INTO_MODEL, VALIDATION_ERROR_STAGE_1_DATATYPE_CONVERSION, VALIDATION_ERROR_STAGE_2_REQUIRED_FIELDS, VALIDATION_ERROR_STAGE_3_FIELD_VALIDATION_FUNCTIONS, VALIDATION_ERROR_STAGE_4_MODEL_VALIDATION_FUNCTION, VALIDATION_NO_VALIDATED, VALIDATION_OK |
Method Summary | |
---|---|
void |
authorize(boolean authorized)
Sets the request authorization status to run the model. |
void |
setFormInstance(FormInstance formInstance)
Sets the formInstance object with the parameters of the request associated with
the model . |
void |
setModel(Model model)
Sets the model configuration object for the request. |
void |
setModelInstance(java.lang.Object modelInstance)
Sets the application model object. |
void |
setModelResponse(java.lang.String modelResponse)
Sets the response string returned by the run method of the application model
object. |
void |
setResult(Result result)
Sets the result object of the request. |
void |
setValidationStatus(int validationStatus)
Sets the request validation status. |
void |
setView(java.lang.String view)
Sets the view name to which response will be redirected. |
Methods inherited from interface edu.uoc.pfc.j2ee.jalonsod.mtp.request.RequestData |
---|
createSession, deleteSessionAttribute, getConfigurator, getFormInstance, getLanguages, getMessage, getModel, getModelInstance, getModelResponse, getRequestAttribute, getRequestParameter, getResult, getRoles, getSessionAttribute, getUserLanguage, getValidationStatus, getView, hasValidSession, isAuthorized, isValidated, logoutSession, setRequestAttribute, setRoles, setSessionAttribute, setUserLanguage |
Field Detail |
---|
static final java.lang.String SESSION_ROLES_ATTRIBUTE
getRoles()
to
read it and setRoles()
to set.
RequestData.getRoles()
,
RequestData.setRoles(Hashtable)
,
Constant Field Valuesstatic final java.lang.String SESSION_LANGUAGE_ATTRIBUTE
setUserLanguage()
.
RequestData.getUserLanguage()
,
RequestData.setUserLanguage(Language)
,
Constant Field Valuesstatic final java.lang.String REQUEST_MODEL_ATTRIBUTE
getModelInstance
method.
RequestData.getModelInstance()
,
Constant Field ValuesMethod Detail |
---|
void setModel(Model model)
model
configuration object for the request.
This is done by the modelMapper
.
model
- the model
configuration object to set into the request.Model
void setModelInstance(java.lang.Object modelInstance)
This is done by the modelMapper
.
modelInstance
- the application model object.ModelMapper
void setFormInstance(FormInstance formInstance)
formInstance
object with the parameters of the request associated with
the model
.
This is done in the validation stage by the validator
.
formInstance
- the formInstance object with the parameters of the request associated
with the model
.void setModelResponse(java.lang.String modelResponse)
string
returned by the run method of the application model
object.
This is done by the framework when the model run method finishes.
modelResponse
- the response string
returned by the run method of the
application model object.void setResult(Result result)
This is done by the viewMapper
.
result
- the result object of the request.ViewMapper
void setView(java.lang.String view)
This is done by the viewMapper
.
view
- void authorize(boolean authorized)
This is done by the accessControl
of the framework.
authorized
- true
if request is authorized, false
otherwise.void setValidationStatus(int validationStatus)
This is done by the framework in validation stage.
validationStatus
- the validation status of the framework. It's one of the
RequestData.VALIDATION_*
values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |