public class XactionUtil extends Object
Constructor and Description |
---|
XactionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createOutputFileName(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
org.pentaho.platform.api.engine.IOutputHandler outputHandler) |
static HttpOutputHandler |
createOutputHandler(javax.servlet.http.HttpServletResponse response,
OutputStream outputStream) |
static String |
doParameter(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
org.pentaho.platform.api.engine.IParameterProvider parameterProvider,
org.pentaho.platform.api.engine.IPentahoSession userSession) |
static String |
execute(String returnContentType,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.pentaho.platform.api.engine.IPentahoSession userSession,
org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) |
static String |
executeHtml(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.pentaho.platform.api.engine.IPentahoSession userSession,
org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) |
protected static org.pentaho.platform.api.engine.IRuntimeContext |
executeInternal(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
org.pentaho.platform.api.engine.IParameterProvider requestParams,
javax.servlet.http.HttpServletRequest httpServletRequest,
org.pentaho.platform.api.engine.IOutputHandler outputHandler,
Map<String,org.pentaho.platform.api.engine.IParameterProvider> parameterProviders,
org.pentaho.platform.api.engine.IPentahoSession userSession,
boolean forcePrompt,
List messages) |
static String |
executeScheduleUi(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.pentaho.platform.api.engine.IPentahoSession userSession,
org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener)
This method executes an xaction with forcePrompt=true and outputPreference=PARAMETERS, allowing for the xaction to
render the secure filter appropriately when being executed in the background or while being scheduled.
|
static String |
executeXml(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.pentaho.platform.api.engine.IPentahoSession userSession) |
static OutputStream |
getOutputStream(javax.servlet.http.HttpServletResponse response,
boolean doMessages) |
static String |
postExecute(org.pentaho.platform.api.engine.IRuntimeContext runtime,
boolean debugMessages,
boolean doWrapper,
org.pentaho.platform.api.engine.IOutputHandler outputHandler,
Map<String,org.pentaho.platform.api.engine.IParameterProvider> parameterProviders,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
List<?> messages,
boolean deleteGeneratedFiles) |
static void |
setupOutputHandler(HttpOutputHandler outputHandler,
org.pentaho.platform.api.engine.IParameterProvider requestParameters) |
public static void createOutputFileName(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.engine.IOutputHandler outputHandler)
public static OutputStream getOutputStream(javax.servlet.http.HttpServletResponse response, boolean doMessages) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public static void setupOutputHandler(HttpOutputHandler outputHandler, org.pentaho.platform.api.engine.IParameterProvider requestParameters)
public static HttpOutputHandler createOutputHandler(javax.servlet.http.HttpServletResponse response, OutputStream outputStream)
public static String postExecute(org.pentaho.platform.api.engine.IRuntimeContext runtime, boolean debugMessages, boolean doWrapper, org.pentaho.platform.api.engine.IOutputHandler outputHandler, Map<String,org.pentaho.platform.api.engine.IParameterProvider> parameterProviders, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, List<?> messages, boolean deleteGeneratedFiles) throws Exception
Exception
public static String executeHtml(org.pentaho.platform.api.repository2.unified.RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, org.pentaho.platform.api.engine.IPentahoSession userSession, org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) throws Exception
Exception
public static String executeScheduleUi(org.pentaho.platform.api.repository2.unified.RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, org.pentaho.platform.api.engine.IPentahoSession userSession, org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) throws Exception
file
- the location of the xactionhttpServletRequest
- the request objecthttpServletResponse
- the response objectuserSession
- the user sessionException
protected static org.pentaho.platform.api.engine.IRuntimeContext executeInternal(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.engine.IParameterProvider requestParams, javax.servlet.http.HttpServletRequest httpServletRequest, org.pentaho.platform.api.engine.IOutputHandler outputHandler, Map<String,org.pentaho.platform.api.engine.IParameterProvider> parameterProviders, org.pentaho.platform.api.engine.IPentahoSession userSession, boolean forcePrompt, List messages) throws Exception
Exception
public static String executeXml(org.pentaho.platform.api.repository2.unified.RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, org.pentaho.platform.api.engine.IPentahoSession userSession) throws Exception
Exception
public static String execute(String returnContentType, org.pentaho.platform.api.repository2.unified.RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, org.pentaho.platform.api.engine.IPentahoSession userSession, org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) throws Exception
Exception
public static String doParameter(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.engine.IParameterProvider parameterProvider, org.pentaho.platform.api.engine.IPentahoSession userSession) throws IOException
IOException
Copyright © 2021 Hitachi Vantara. All rights reserved.