|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.dispatching.service.DefaultRequestContext
it.eng.spago.dispatching.module.AbstractModule
it.eng.spagobi.services.modules.DetailParameterModule
public class DetailParameterModule
Implements a module which handles all parameters management: has methods for parameters load
detail, modify/insertion and deleting operations. The service
method has a
switch for all these operations, differentiated the ones from the others by a message
String.
Field Summary | |
---|---|
(package private) it.eng.spago.error.EMFErrorHandler |
errorHandler
|
private java.lang.String |
modalita
|
(package private) it.eng.spago.base.SessionContainer |
session
|
Constructor Summary | |
---|---|
DetailParameterModule()
|
Method Summary | |
---|---|
private Parameter |
clone(Parameter parameter)
|
private ParameterUse |
clone(ParameterUse paruse)
|
private Parameter |
createNewParameter()
Create a new empty Parameter |
private ParameterUse |
createNewParameterUse(java.lang.Integer parId)
|
private void |
delDetailParameter(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Deletes a parameter choosed by user from the parameters list. |
private void |
exitFromDetail(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Clean the SessionContainer from no more useful objects. |
int |
findParuseId(java.lang.Object paruseIdObj)
|
private void |
getDetailParameter(java.lang.String key,
it.eng.spago.base.SourceBean response)
Gets the detail of a parameter choosed by the user from the parameters list. |
void |
init(it.eng.spago.base.SourceBean config)
|
private void |
loadValuesDomain(it.eng.spago.base.SourceBean response)
Loads all possible domain values which can be choosed for a parameter. |
private void |
lookupLoadHandler(it.eng.spago.base.SourceBean request,
java.lang.String modality,
it.eng.spago.base.SourceBean response)
|
private void |
lookupReturnBackHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
|
private void |
lookupReturnHandler(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
|
private void |
modDetailParameter(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Inserts/Modifies the detail of a parameter according to the user request. |
private void |
newDetailParameter(it.eng.spago.base.SourceBean response)
Instantiates a new Parameter |
private void |
parameterLabelControl(Parameter parameter,
java.lang.String operation)
Controls if the name of the Parameter is already in use. |
private void |
parameterUseLabelControl(ParameterUse paruse,
java.lang.String operation)
Controls if the name of the ParameterUse is already in use. |
private void |
prepareParameterDetailPage(it.eng.spago.base.SourceBean response,
Parameter parameter,
ParameterUse paruse,
java.lang.String selected_paruse_idStr,
java.lang.String modality,
boolean initialParameter,
boolean initialParameterUse)
Fills the response SourceBean with the elements that will be displayed in the Parameter detail page: the Parameter itself and the required ParameterUse. |
private Parameter |
recoverParameterDetails(it.eng.spago.base.SourceBean request,
java.lang.String mod)
|
private ParameterUse |
recoverParameterUseDetails(it.eng.spago.base.SourceBean request,
java.lang.Integer parIdInt,
java.lang.Integer paruseIdInt)
|
private Parameter |
reloadParameter(java.lang.String label)
Reload a Parameter from its label. |
private ParameterUse |
reloadParuse(java.lang.Integer parIdInt,
java.lang.String label)
Reload a ParameterUse from its Parameter id and its label. |
void |
service(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Reads the operation asked by the user and calls the insertion, modify, detail and deletion methods |
Methods inherited from class it.eng.spago.dispatching.module.AbstractModule |
---|
getConfig, getModule, getPage, getSharedData, setModule, setPage, setSharedData |
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext |
---|
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse, setRequestContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String modalita
it.eng.spago.error.EMFErrorHandler errorHandler
it.eng.spago.base.SessionContainer session
Constructor Detail |
---|
public DetailParameterModule()
Method Detail |
---|
public void init(it.eng.spago.base.SourceBean config)
init
in interface it.eng.spago.init.InitializerIFace
init
in class it.eng.spago.dispatching.module.AbstractModule
public void service(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
request
- The Source Bean containing all request parametersresponse
- The Source Bean containing all response parameters
exception
- If an exception occurs
java.lang.Exception
private void getDetailParameter(java.lang.String key, it.eng.spago.base.SourceBean response) throws EMFUserError
loadForDetailByParameterID
.
key
- The choosed engine id keyresponse
- The response Source Bean
EMFUserError
- If an exception occursprivate void prepareParameterDetailPage(it.eng.spago.base.SourceBean response, Parameter parameter, ParameterUse paruse, java.lang.String selected_paruse_idStr, java.lang.String modality, boolean initialParameter, boolean initialParameterUse) throws EMFUserError, it.eng.spago.base.SourceBeanException
response
- The response SourceBean to be filledparameter
- The Parameter to be displayedparuse
- The ParameterUse to be displayed: if it is null the selected_paruse_idStr will be considered.selected_paruse_idStr
- The id of the ParameterUse to be displayed.
If it is blank or null the first ParameterUse will be diplayed but in case the Parameter
has no ParameterUse a new empty ParameterUse will be displayed.
If it is "-1" a new empty ParameterUse will be displayed.initialParameter
- Boolean: if true the Parameter to be visualized is the initial Parameter and
a clone will be put in session.initialParameterUse
- Boolean: if true the ParameterUse to be visualized is the initial ParameterUse and
a clone will be put in session.detail_mod
- The modality
EMFUserError
it.eng.spago.base.SourceBeanException
private Parameter clone(Parameter parameter)
private ParameterUse clone(ParameterUse paruse)
private ParameterUse createNewParameterUse(java.lang.Integer parId)
private void modDetailParameter(it.eng.spago.base.SourceBean request, java.lang.String mod, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
modifyParameter
method is called; when a new
parameter is added, the insertParameter
method is called. These two cases are
differentiated by the mod
String input value
request
- The request information contained in a SourceBean Objectmod
- A request string used to differentiate insert/modify operationsresponse
- The response SourceBean
EMFUserError
- If an exception occurs
it.eng.spago.base.SourceBeanException
- If a SourceBean exception occursprivate ParameterUse reloadParuse(java.lang.Integer parIdInt, java.lang.String label) throws it.eng.spago.error.EMFInternalError
parIdInt
- The Parameter idlabel
- The ParameterUse label
it.eng.spago.error.EMFInternalError
private Parameter reloadParameter(java.lang.String label) throws it.eng.spago.error.EMFInternalError
label
- The Parameter label
it.eng.spago.error.EMFInternalError
private ParameterUse recoverParameterUseDetails(it.eng.spago.base.SourceBean request, java.lang.Integer parIdInt, java.lang.Integer paruseIdInt) throws java.lang.NumberFormatException, EMFUserError
java.lang.NumberFormatException
EMFUserError
public int findParuseId(java.lang.Object paruseIdObj)
private Parameter recoverParameterDetails(it.eng.spago.base.SourceBean request, java.lang.String mod)
private void delDetailParameter(it.eng.spago.base.SourceBean request, java.lang.String mod, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
request
- The request SourceBeanmod
- A request string used to differentiate delete operationresponse
- The response SourceBean
EMFUserError
- If an Exception occurs
it.eng.spago.base.SourceBeanException
- If a SourceBean Exception occursprivate void newDetailParameter(it.eng.spago.base.SourceBean response) throws EMFUserError
Parameter object when a new parameter insertion is required, in order
to prepare the page for the insertion.
- Parameters:
response
- The response SourceBean
- Throws:
EMFUserError
- If an Exception occurred
private Parameter createNewParameter()
private void loadValuesDomain(it.eng.spago.base.SourceBean response) throws EMFUserError
Domain
objects put into response.
When the isertion/modify parameters page is loaded, the user selects a domain value for the
parameter by the Data Selection CD Check Button.
response
- The response SourceBean
EMFUserError
- If an Exception occurredprivate void parameterLabelControl(Parameter parameter, java.lang.String operation) throws EMFUserError
parameter
- The Parameter to checkoperation
- Defines if the operation is of insertion or modify
EMFUserError
- If any Exception occurredprivate void parameterUseLabelControl(ParameterUse paruse, java.lang.String operation) throws EMFUserError
paruse
- The paruse to checkoperation
- Defines if the operation is of insertion or modify
EMFUserError
- If any Exception occurredprivate void lookupLoadHandler(it.eng.spago.base.SourceBean request, java.lang.String modality, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
EMFUserError
it.eng.spago.base.SourceBeanException
private void lookupReturnHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws it.eng.spago.base.SourceBeanException, EMFUserError
it.eng.spago.base.SourceBeanException
EMFUserError
private void lookupReturnBackHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws it.eng.spago.base.SourceBeanException, EMFUserError
it.eng.spago.base.SourceBeanException
EMFUserError
private void exitFromDetail(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws it.eng.spago.base.SourceBeanException
request
- The request SourceBeanresponse
- The response SourceBean
it.eng.spago.base.SourceBeanException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |