it.eng.spagobi.wapp.services
Class DetailMenuModule

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.module.AbstractModule
          extended by it.eng.spagobi.wapp.services.DetailMenuModule
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 DetailMenuModule
extends it.eng.spago.dispatching.module.AbstractModule

Author:
Gavardi Giulio
See Also:
Serialized Form

Field Summary
static java.lang.String EXT_APP_URL
           
static java.lang.String LOOKUP
           
static java.lang.String MENU
           
static java.lang.String MENU_ID
           
static java.lang.String MENU_OBJ
           
static java.lang.String messageBundle
           
static java.lang.String MODULE_PAGE
           
static java.lang.String PARENT_ID
           
static java.lang.String PATH
           
static java.lang.String ROLES
           
 
Constructor Summary
DetailMenuModule()
           
 
Method Summary
static java.lang.String assignImage(Menu menu)
           
 Menu eraseRolesFromMenu(Menu menu, java.lang.String roleId)
          Erases the defined input role from a functionality object, if this one has the role.The updated functionality object is returned.
static java.lang.String findFunctionalityUrl(Menu menu, java.lang.String contextPath)
           
 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 insertion, modify, detail and deletion methods.
 
Methods inherited from class it.eng.spago.dispatching.module.AbstractModule
getConfig, getModule, getModuleMethod, getPage, getSharedData, setModule, setModuleMethod, 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

MODULE_PAGE

public static final java.lang.String MODULE_PAGE
See Also:
Constant Field Values

MENU_OBJ

public static final java.lang.String MENU_OBJ
See Also:
Constant Field Values

MENU_ID

public static final java.lang.String MENU_ID
See Also:
Constant Field Values

PARENT_ID

public static final java.lang.String PARENT_ID
See Also:
Constant Field Values

MENU

public static final java.lang.String MENU
See Also:
Constant Field Values

ROLES

public static final java.lang.String ROLES
See Also:
Constant Field Values

LOOKUP

public static final java.lang.String LOOKUP
See Also:
Constant Field Values

messageBundle

public static final java.lang.String messageBundle
See Also:
Constant Field Values

PATH

public static final java.lang.String PATH
See Also:
Constant Field Values

EXT_APP_URL

public static final java.lang.String EXT_APP_URL
See Also:
Constant Field Values
Constructor Detail

DetailMenuModule

public DetailMenuModule()
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 insertion, modify, detail and deletion 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 - the exception

eraseRolesFromMenu

public Menu eraseRolesFromMenu(Menu menu,
                               java.lang.String roleId)
Erases the defined input role from a functionality object, if this one has the role.The updated functionality object is returned.

Parameters:
func - the input functionality object
roleId - the role id for the role to erase
roleType - the type of the role to erase
Returns:
the updated functionality

assignImage

public static java.lang.String assignImage(Menu menu)

findFunctionalityUrl

public static java.lang.String findFunctionalityUrl(Menu menu,
                                                    java.lang.String contextPath)