|
||||||||||
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.DetailFunctionalityModule
public class DetailFunctionalityModule
Implements a module which handles all low functionalities management: has methods
for low functionalities 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 | |
---|---|
static java.lang.String |
FUNCTIONALITY_OBJ
|
private java.lang.String |
modality
|
static java.lang.String |
MODULE_PAGE
|
static java.lang.String |
PATH
|
private java.lang.String |
typeFunct
|
Constructor Summary | |
---|---|
DetailFunctionalityModule()
|
Method Summary | |
---|---|
private void |
delFunctionality(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Deletes a low functionality choosed by user from the low functionality list. |
LowFunctionality |
eraseRolesFromFunctionality(LowFunctionality func,
java.lang.String roleId,
java.lang.String roleType)
Erases the defined input role from a functionality object, if this one has the role.The updated functionality object is returned. |
private void |
getDetailFunctionality(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Gets the detail of a low functionality choosed by the user from the low functionalities list. |
void |
init(it.eng.spago.base.SourceBean config)
|
boolean |
isParentRule(java.lang.String rule,
LowFunctionality parentLowFunct,
java.lang.String roleType)
Controls if a particular role belongs to the parent functionality. |
void |
loadRolesToErase(LowFunctionality lowFuncParent,
java.util.Set rolesToErase)
Defines all roles that have to be erased in order to keep functionalities tree consistence. |
private void |
modDettaglioFunctionality(it.eng.spago.base.SourceBean request,
java.lang.String mod,
it.eng.spago.base.SourceBean response)
Inserts/Modifies the detail of a low functionality according to the user request. |
private void |
newDettaglioFunctionality(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Instantiates a new LowFunctionalitye |
private LowFunctionality |
recoverLowFunctionalityDetails(it.eng.spago.base.SourceBean request,
java.lang.String mod)
|
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 modality
public static final java.lang.String MODULE_PAGE
public static final java.lang.String FUNCTIONALITY_OBJ
public static final java.lang.String PATH
private java.lang.String typeFunct
Constructor Detail |
---|
public DetailFunctionalityModule()
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 getDetailFunctionality(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws EMFUserError
loadLowFunctionalityByPath
.
key
- The choosed low functionality id keyresponse
- The response Source Bean
EMFUserError
- If an exception occursprivate void modDettaglioFunctionality(it.eng.spago.base.SourceBean request, java.lang.String mod, it.eng.spago.base.SourceBean response) throws EMFUserError, it.eng.spago.base.SourceBeanException
modifyLowFunctionality
method is called; when a new parameter use mode is added, the insertLowFunctionality
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 delFunctionality(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 newDettaglioFunctionality(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws EMFUserError
LowFunctionalitye object when a new low functionality
insertion is required, in order to prepare the page for the insertion.
- Parameters:
response
- The response SourceBean
- Throws:
EMFUserError
- If an Exception occurred
private LowFunctionality recoverLowFunctionalityDetails(it.eng.spago.base.SourceBean request, java.lang.String mod) throws EMFUserError, it.eng.spago.base.SourceBeanException
EMFUserError
it.eng.spago.base.SourceBeanException
public boolean isParentRule(java.lang.String rule, LowFunctionality parentLowFunct, java.lang.String roleType)
rule
- The role id string identifying the roleparentLowFunct
- the parent low functionality objectroleType
- The role's type
public void loadRolesToErase(LowFunctionality lowFuncParent, java.util.Set rolesToErase) throws EMFUserError, it.eng.spago.cms.exceptions.BuildOperationException, it.eng.spago.cms.exceptions.OperationExecutionException
lowFuncParent
- the parent FunctionalityrolesToErase
- the set containing all roles to erase
EMFUserError
- if any EMFUserError exception occurs
it.eng.spago.cms.exceptions.BuildOperationException
- if any BuildOperationException exception occurs
it.eng.spago.cms.exceptions.OperationExecutionException
- if any OperationExecutionException exception occurspublic LowFunctionality eraseRolesFromFunctionality(LowFunctionality func, java.lang.String roleId, java.lang.String roleType)
func
- the input functionality objectroleId
- the role id for the role to eraseroleType
- the type of the role to erase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |