|
||||||||||
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.DetailBIObjectModule
public class DetailBIObjectModule
Implements a module which handles all BI objects management:
has methods for BI Objects 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 | |
---|---|
private java.lang.String |
actor
|
private it.eng.spago.error.EMFErrorHandler |
errorHandler
|
static java.lang.String |
MODULE_PAGE
|
static java.lang.String |
NAME_ATTR_LIST_ENGINES
|
static java.lang.String |
NAME_ATTR_LIST_OBJ_TYPES
|
static java.lang.String |
NAME_ATTR_LIST_STATES
|
static java.lang.String |
NAME_ATTR_OBJECT
|
static java.lang.String |
NAME_ATTR_OBJECT_PAR
|
protected it.eng.spago.security.IEngUserProfile |
profile
|
(package private) it.eng.spago.base.SessionContainer |
session
|
Constructor Summary | |
---|---|
DetailBIObjectModule()
|
Method Summary | |
---|---|
private void |
checkForDependancies(java.lang.Integer objParFatherId)
Controls if there are some BIObjectParameter objects that depend by the BIObjectParameter object at input, given its id. |
private BIObject |
clone(BIObject obj)
|
private BIObjectParameter |
clone(BIObjectParameter biObjPar)
|
private BIObjectParameter |
createNewBIObjectParameter(java.lang.Integer objId)
|
private void |
delateLoopbackContext()
|
private void |
delDetailObject(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Deletes a BI Object choosed by user. |
void |
eraseVersion(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
|
private void |
exitFromDetail(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Clean the SessionContainer from no more useful objects. |
void |
fillRequestContainer(it.eng.spago.base.SourceBean request,
it.eng.spago.error.EMFErrorHandler errorHandler)
Fills the request container object with some BIObject and BIObjectParameter information contained into the request Source Bean (they are all attributes). |
private void |
fillResponse(it.eng.spago.base.SourceBean response)
Fills the response SourceBean with some needed BI Objects information. |
int |
findBIObjParId(java.lang.Object objParIdObj)
|
private java.lang.Integer |
getBIObjectIdFromLoopbackContext()
|
private void |
getDetailObject(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Gets the detail of a BI object choosed by the user from the BI objects list. |
void |
init(it.eng.spago.base.SourceBean config)
|
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 |
modBIObject(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Inserts/Modifies the detail of a BI Object according to the user request. |
private void |
newBIObject(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Instantiates a new BIObject |
private void |
prepareBIObjectDetailPage(it.eng.spago.base.SourceBean response,
BIObject obj,
BIObjectParameter biObjPar,
java.lang.String selectedObjParIdStr,
java.lang.String detail_mod,
boolean initialBIObject,
boolean initialBIObjectParameter)
Fills the response SourceBean with the elements that will be displayed in the BIObject detail page: the BIObject itself and the required BIObjectParameter. |
private BIObject |
recoverBIObjectDetails(it.eng.spago.base.SourceBean request,
java.lang.String mod)
|
private BIObjectParameter |
recoverBIObjectParameterDetails(it.eng.spago.base.SourceBean request,
java.lang.Integer biobjIdInt)
|
private BIObjectParameter |
reloadBIObjectParameter(java.lang.Integer objId,
java.lang.String objParUrlName)
|
private void |
reloadCMSInformation(BIObject obj)
Reloads the CMS information of a BIObject: the versioned templates. |
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. |
private void |
setLoopbackContext(it.eng.spago.base.SourceBean request,
java.lang.String message)
|
private void |
startLinksLookupHandler(it.eng.spago.base.SourceBean request,
java.lang.String message,
it.eng.spago.base.SourceBean response)
|
private void |
startParametersLookupHandler(it.eng.spago.base.SourceBean request,
java.lang.String message,
it.eng.spago.base.SourceBean response)
|
private void |
urlNameControl(java.lang.Integer objId,
BIObjectParameter biObjPar)
Controls that the BIObjectParameter url name is not in use by another BIObjectParameter |
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 |
---|
public static final java.lang.String MODULE_PAGE
public static final java.lang.String NAME_ATTR_OBJECT
public static final java.lang.String NAME_ATTR_LIST_OBJ_TYPES
public static final java.lang.String NAME_ATTR_LIST_ENGINES
public static final java.lang.String NAME_ATTR_LIST_STATES
public static final java.lang.String NAME_ATTR_OBJECT_PAR
private java.lang.String actor
private it.eng.spago.error.EMFErrorHandler errorHandler
protected it.eng.spago.security.IEngUserProfile profile
it.eng.spago.base.SessionContainer session
Constructor Detail |
---|
public DetailBIObjectModule()
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 setLoopbackContext(it.eng.spago.base.SourceBean request, java.lang.String message) throws EMFUserError
EMFUserError
private void delateLoopbackContext()
private java.lang.Integer getBIObjectIdFromLoopbackContext()
private void startParametersLookupHandler(it.eng.spago.base.SourceBean request, java.lang.String message, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
EMFUserError
it.eng.spago.base.SourceBeanException
private void startLinksLookupHandler(it.eng.spago.base.SourceBean request, java.lang.String message, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
EMFUserError
it.eng.spago.base.SourceBeanException
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 lookupReturnHandler(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
EMFUserError
it.eng.spago.base.SourceBeanException
private void getDetailObject(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws EMFUserError
loadBIObjectForDetail
.
request
- The request Source Beanresponse
- The response Source Bean
EMFUserError
- If an exception occursprivate void modBIObject(it.eng.spago.base.SourceBean request, java.lang.String mod, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
modifyBIObject
method is
called; when a new BI Object is added, the insertBIObject
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 checkForDependancies(java.lang.Integer objParFatherId) throws EMFUserError
objParFatherId
- The id of the BIObjectParameter object to check
EMFUserError
private void urlNameControl(java.lang.Integer objId, BIObjectParameter biObjPar)
objId
- The id of the documentbiObjPar
- The BIObjectParameter to control before inserting/modifyingprivate BIObjectParameter reloadBIObjectParameter(java.lang.Integer objId, java.lang.String objParUrlName) throws it.eng.spago.error.EMFInternalError, EMFUserError
it.eng.spago.error.EMFInternalError
EMFUserError
private void reloadCMSInformation(BIObject obj) throws EMFUserError
obj
- THe BIObject that will be filled with its own CMS information.
EMFUserError
private void prepareBIObjectDetailPage(it.eng.spago.base.SourceBean response, BIObject obj, BIObjectParameter biObjPar, java.lang.String selectedObjParIdStr, java.lang.String detail_mod, boolean initialBIObject, boolean initialBIObjectParameter) throws it.eng.spago.base.SourceBeanException, EMFUserError
response
- The response SourceBean to be filledobj
- The BIObject to be displayedbiObjPar
- The BIObjectParameter to be displayed: if it is null the selectedObjParIdStr will be considered.selectedObjParIdStr
- The id of the BIObjectParameter to be displayed.
If it is blank or null the first BIObjectParameter will be diplayed but in case the BIObject
has no BIObjectParameter a new empty BIObjectParameter will be displayed.
If it is "-1" a new empty BIObjectParameter will be displayed.detail_mod
- The modalityinitialBIObject
- Boolean: if true the BIObject to be visualized is the initial BIObject and
a clone will be put in session.initialBIObjectParameter
- Boolean: if true the BIObjectParameter to be visualized is the initial BIObjectParameter and
a clone will be put in session.
it.eng.spago.base.SourceBeanException
EMFUserError
private BIObjectParameter clone(BIObjectParameter biObjPar)
private BIObject clone(BIObject obj)
private BIObjectParameter recoverBIObjectParameterDetails(it.eng.spago.base.SourceBean request, java.lang.Integer biobjIdInt)
private BIObjectParameter createNewBIObjectParameter(java.lang.Integer objId) throws EMFUserError
EMFUserError
private BIObject recoverBIObjectDetails(it.eng.spago.base.SourceBean request, java.lang.String mod) throws EMFUserError
EMFUserError
public int findBIObjParId(java.lang.Object objParIdObj)
private void delDetailObject(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 newBIObject(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws EMFUserError
BIObject object when a new BI object insertion
is required, in order to prepare the page for the insertion.
- Parameters:
response
- The response SourceBean
- Throws:
EMFUserError
- If an Exception occurred
private void fillResponse(it.eng.spago.base.SourceBean response)
response
- The SourceBean to fillpublic void fillRequestContainer(it.eng.spago.base.SourceBean request, it.eng.spago.error.EMFErrorHandler errorHandler) throws java.lang.Exception
request
- The request Source Bean
it.eng.spago.base.SourceBeanException
- If any exception occurred
java.lang.Exception
public void eraseVersion(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws EMFUserError
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 |