it.eng.spagobi.services.modules
Class DetailRolesModule

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.module.AbstractModule
          extended by it.eng.spagobi.services.modules.DetailRolesModule
All Implemented Interfaces:
it.eng.spago.dispatching.module.ModuleIFace, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable

public class DetailRolesModule
extends it.eng.spago.dispatching.module.AbstractModule

This class implements a module which handles roles management.

See Also:
Serialized Form

Constructor Summary
DetailRolesModule()
           
 
Method Summary
private  void deleteRole(it.eng.spago.base.SourceBean request, java.lang.String mod, it.eng.spago.base.SourceBean response)
          Deletes a role choosed by user from the roles list.
 void init(it.eng.spago.base.SourceBean config)
           
 void service(it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
          Reads the operation asked by the user and calls the deletion and synchronization methods
private  void synchronizeRoles(it.eng.spago.base.SourceBean response)
          Synchronizes roles importing portal roles missing into SpagoBI
 
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
 

Constructor Detail

DetailRolesModule

public DetailRolesModule()
Method Detail

init

public void init(it.eng.spago.base.SourceBean config)
Specified by:
init in interface it.eng.spago.init.InitializerIFace
Overrides:
init in class it.eng.spago.dispatching.module.AbstractModule

service

public void service(it.eng.spago.base.SourceBean request,
                    it.eng.spago.base.SourceBean response)
             throws java.lang.Exception
Reads the operation asked by the user and calls the deletion and synchronization methods

Parameters:
request - The Source Bean containing all request parameters
response - The Source Bean containing all response parameters
Throws:
exception - If an exception occurs
java.lang.Exception

deleteRole

private void deleteRole(it.eng.spago.base.SourceBean request,
                        java.lang.String mod,
                        it.eng.spago.base.SourceBean response)
                 throws EMFUserError,
                        it.eng.spago.base.SourceBeanException
Deletes a role choosed by user from the roles list.

Parameters:
request - The request SourceBean
mod - A request string used to differentiate delete operation
response - The response SourceBean
Throws:
EMFUserError - If an Exception occurs
it.eng.spago.base.SourceBeanException - If a SourceBean Exception occurs

synchronizeRoles

private void synchronizeRoles(it.eng.spago.base.SourceBean response)
                       throws it.eng.spago.base.SourceBeanException
Synchronizes roles importing portal roles missing into SpagoBI

Parameters:
response - The spago framework response sourcebean object
Throws:
it.eng.spago.base.SourceBeanException