it.eng.spagobi.engines.drivers.jpivot
Class JPivotDriver

java.lang.Object
  extended by it.eng.spagobi.engines.drivers.AbstractDriver
      extended by it.eng.spagobi.engines.drivers.jpivot.JPivotDriver
All Implemented Interfaces:
IEngineDriver

public class JPivotDriver
extends AbstractDriver
implements IEngineDriver

Driver Implementation (IEngineDriver Interface) for JPivot Engine.


Constructor Summary
JPivotDriver()
           
 
Method Summary
protected  java.util.Map addBIParameters(BIObject biobj, java.util.Map pars)
          Add into the parameters map the BIObject's BIParameter names and values
protected  java.util.Map addDataAccessParameter(it.eng.spago.security.IEngUserProfile profile, java.lang.String roleName, java.util.Map pars, byte[] templateBy)
          Adds parameter for data access based on the user functionalities
 EngineURL getEditDocumentTemplateBuildUrl(java.lang.Object biobject, it.eng.spago.security.IEngUserProfile profile)
          Returns the url to be invoked for editing template document.
protected  java.util.Map getMap(BIObject biobj, it.eng.spago.security.IEngUserProfile profile, java.lang.String roleName)
          Starting from a BIObject extracts from it the map of the paramaeters for the execution call
 EngineURL getNewDocumentTemplateBuildUrl(java.lang.Object biobject, it.eng.spago.security.IEngUserProfile profile)
          Returns the url to be invoked for creating a new template document.
 java.util.Map getParameterMap(java.lang.Object biobject, it.eng.spago.security.IEngUserProfile profile, java.lang.String roleName)
          Returns a map of parameters which will be send in the request to the engine application.
 java.util.Map getParameterMap(java.lang.Object object, java.lang.Object subObject, it.eng.spago.security.IEngUserProfile profile, java.lang.String roleName)
          Returns a map of parameters which will be send in the request to the engine application.
 
Methods inherited from class it.eng.spagobi.engines.drivers.AbstractDriver
applySecurity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPivotDriver

public JPivotDriver()
Method Detail

getParameterMap

public java.util.Map getParameterMap(java.lang.Object biobject,
                                     it.eng.spago.security.IEngUserProfile profile,
                                     java.lang.String roleName)
Returns a map of parameters which will be send in the request to the engine application.

Specified by:
getParameterMap in interface IEngineDriver
Parameters:
profile - Profile of the user
roleName - the name of the execution role
biobject - the biobject
Returns:
Map The map of the execution call parameters

getParameterMap

public java.util.Map getParameterMap(java.lang.Object object,
                                     java.lang.Object subObject,
                                     it.eng.spago.security.IEngUserProfile profile,
                                     java.lang.String roleName)
Returns a map of parameters which will be send in the request to the engine application.

Specified by:
getParameterMap in interface IEngineDriver
Parameters:
subObject - SubObject to execute
profile - Profile of the user
roleName - the name of the execution role
object - the object
Returns:
Map The map of the execution call parameters

getMap

protected java.util.Map getMap(BIObject biobj,
                               it.eng.spago.security.IEngUserProfile profile,
                               java.lang.String roleName)
Starting from a BIObject extracts from it the map of the paramaeters for the execution call

Parameters:
biobj - BIObject to execute
Returns:
Map The map of the execution call parameters

addDataAccessParameter

protected java.util.Map addDataAccessParameter(it.eng.spago.security.IEngUserProfile profile,
                                               java.lang.String roleName,
                                               java.util.Map pars,
                                               byte[] templateBy)
Adds parameter for data access based on the user functionalities

Parameters:
profile - Profile of the user
roleName - Role name of the user
pars - Map of previous parameters
template - bytes of the biobject template
Returns:
The parameter map containing parameter for data access control

addBIParameters

protected java.util.Map addBIParameters(BIObject biobj,
                                        java.util.Map pars)
Add into the parameters map the BIObject's BIParameter names and values

Parameters:
biobj - BIOBject to execute
pars - Map of the parameters for the execution call
Returns:
Map The map of the execution call parameters

getEditDocumentTemplateBuildUrl

public EngineURL getEditDocumentTemplateBuildUrl(java.lang.Object biobject,
                                                 it.eng.spago.security.IEngUserProfile profile)
                                          throws InvalidOperationRequest
Returns the url to be invoked for editing template document.

Specified by:
getEditDocumentTemplateBuildUrl in interface IEngineDriver
Parameters:
biobject - The biobject
profile - the profile
Returns:
the url to be invoked for editing template document
Throws:
InvalidOperationRequest - the invalid operation request

getNewDocumentTemplateBuildUrl

public EngineURL getNewDocumentTemplateBuildUrl(java.lang.Object biobject,
                                                it.eng.spago.security.IEngUserProfile profile)
                                         throws InvalidOperationRequest
Returns the url to be invoked for creating a new template document.

Specified by:
getNewDocumentTemplateBuildUrl in interface IEngineDriver
Parameters:
biobject - The biobject
profile - the profile
Returns:
the url to be invoked for creating a new template document
Throws:
InvalidOperationRequest - the invalid operation request