org.pentaho.platform.scheduler
Class SecurityAwareBackgroundExecutionHelper
java.lang.Object
org.pentaho.platform.scheduler.QuartzBackgroundExecutionHelper
org.pentaho.platform.scheduler.SecurityAwareBackgroundExecutionHelper
- All Implemented Interfaces:
- IBackgroundExecution
- Direct Known Subclasses:
- SecurityAwareBackgroundSubscriptionHelper
public class SecurityAwareBackgroundExecutionHelper
- extends QuartzBackgroundExecutionHelper
SecurityAwareBackgroundExecutionHelper
public SecurityAwareBackgroundExecutionHelper()
getEffectiveUserSession
public IPentahoSession getEffectiveUserSession(String userName)
- Description copied from interface:
IBackgroundExecution
- When the job runs in background, gets the effective user session for the user executing the job
- Specified by:
getEffectiveUserSession
in interface IBackgroundExecution
- Overrides:
getEffectiveUserSession
in class QuartzBackgroundExecutionHelper
- Parameters:
userName
- The user name
- Returns:
- IPentahoSession for the user as if the user was clicking to run the job in realtime.
getContentOutputHandler
public IOutputHandler getContentOutputHandler(String location,
String fileName,
String solutionName,
IPentahoSession userSession,
IParameterProvider parameterProvider)
- Description copied from interface:
IBackgroundExecution
- Returns the output handler for content, specific to the implementation of the background execution helper.
- Specified by:
getContentOutputHandler
in interface IBackgroundExecution
- Overrides:
getContentOutputHandler
in class QuartzBackgroundExecutionHelper
- Parameters:
location
- Location for the contentfileName
- File name for the contentsolutionName
- Solution nameuserSession
- IPentahoSession of the callerparameterProvider
- parameter provider containing request parameters
- Returns:
- IOutputHandler implementation for storing the content.