|
||||||||||
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.DetailEngineModule
public class DetailEngineModule
This class implements a module which handles all engine management: has methos for engine load,
details,moodify/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 | |
---|---|
private java.lang.String |
modalita
|
Constructor Summary | |
---|---|
DetailEngineModule()
|
Method Summary | |
---|---|
private void |
delDettaglioEngine(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Deletes an engine choosed by user from the engines list. |
private void |
getDettaglioEngine(java.lang.String key,
it.eng.spago.base.SourceBean response)
Gets the detail of an engine choosed by the user from the engines list. |
void |
init(it.eng.spago.base.SourceBean config)
|
private void |
modDettaglioEngine(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Inserts/Modifies the detail of an engine according to the user request. |
private void |
newDettaglioEngine(it.eng.spago.base.SourceBean response)
Instantiates a new engine |
private Engine |
recoverEngineDetails(it.eng.spago.base.SourceBean request)
|
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
Constructor Detail |
---|
public DetailEngineModule()
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 getDettaglioEngine(java.lang.String key, it.eng.spago.base.SourceBean response) throws EMFUserError
loadEngineByID
.
key
- The choosed engine id keyresponse
- The response Source Bean
EMFUserError
- If an exception occursprivate void modDettaglioEngine(it.eng.spago.base.SourceBean request, java.lang.String mod, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
modifyEngine
method is called; when a new
engine is added, the insertEngine
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 void delDettaglioEngine(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 newDettaglioEngine(it.eng.spago.base.SourceBean response) throws EMFUserError
engine object when a new engine insertion is required, in order
to prepare the page for the insertion.
- Parameters:
response
- The response SourceBean
- Throws:
EMFUserError
- If an Exception occurred
private Engine recoverEngineDetails(it.eng.spago.base.SourceBean request) throws EMFUserError
EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |