Class RuntimeContext
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.PentahoBase
-
- org.pentaho.platform.engine.services.PentahoMessenger
-
- org.pentaho.platform.engine.services.runtime.RuntimeContext
-
- All Implemented Interfaces:
Serializable
,org.pentaho.platform.api.engine.IAuditable
,org.pentaho.platform.api.engine.ILogger
,org.pentaho.platform.api.engine.IRuntimeContext
public class RuntimeContext extends PentahoMessenger implements org.pentaho.platform.api.engine.IRuntimeContext
- Author:
- James Dixon TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.platform.api.engine.IActionSequence
actionSequence
protected static Map
componentClassMap
static boolean
debug
protected org.pentaho.platform.api.engine.IOutputHandler
outputHandler
protected static String
PARAMETER_FORM
protected Map
parameterProviders
protected String
parameterTarget
protected String
parameterTemplate
protected String
parameterXsl
protected org.pentaho.platform.api.engine.IParameterManager
paramManager
protected org.pentaho.platform.api.engine.ISolutionEngine
solutionEngine
protected org.pentaho.platform.api.engine.IPentahoUrlFactory
urlFactory
protected StringBuffer
xformBody
protected Map<String,String>
xformFields
protected StringBuffer
xformHeader
-
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
-
Fields inherited from interface org.pentaho.platform.api.engine.ILogger
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
-
Fields inherited from interface org.pentaho.platform.api.engine.IRuntimeContext
FEEDBACK_OUTPUT, PARAMETERS_FAIL, PARAMETERS_OK, PARAMETERS_UI_NEEDED, PROMPT_NO, PROMPT_NOW, PROMPT_WAITING, RUNTIME_CONTEXT_RESOLVE_FAIL, RUNTIME_CONTEXT_RESOLVE_OK, RUNTIME_CONTEXT_VALIDATE_FAIL, RUNTIME_CONTEXT_VALIDATE_OK, RUNTIME_STATUS_FAILURE, RUNTIME_STATUS_INITIALIZE_FAIL, RUNTIME_STATUS_INITIALIZE_OK, RUNTIME_STATUS_NOT_STARTED, RUNTIME_STATUS_RUNNING, RUNTIME_STATUS_SETUP_FAIL, RUNTIME_STATUS_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description RuntimeContext(String instanceId, org.pentaho.platform.api.engine.ISolutionEngine solutionEngine, String solutionName, org.pentaho.platform.api.repository.IRuntimeElement runtimeData, org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IOutputHandler outputHandler, String processId, org.pentaho.platform.api.engine.IPentahoUrlFactory urlFactory, Map parameterProviders, List messages, org.pentaho.platform.api.engine.ICreateFeedbackParameterCallback createFeedbackParameterCallback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addInputParameter(String name, org.pentaho.platform.api.engine.IActionParameter param)
void
addTempParameter(String name, org.pentaho.platform.api.engine.IActionParameter param)
String
applyInputsToFormat(String format)
String
applyInputsToFormat(String format, org.pentaho.platform.api.engine.IParameterResolver resolver)
void
audit(String messageType, String message, String value, long duration)
void
audit(List auditList)
boolean
checkForFieldInTemplate(String fieldName)
void
createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValue, boolean visible)
void
createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValue, boolean visible, boolean optional)
void
createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValues, List values, Map dispNames, String displayStyle)
void
createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValues, List values, Map dispNames, String displayStyle, boolean optional)
void
createFeedbackParameter(org.pentaho.platform.api.engine.IActionParameter actionParam)
Deprecated.Unusedvoid
createFeedbackParameter(org.pentaho.platform.api.engine.ISelectionMapper selMap, String fieldName, Object defaultValues)
void
createFeedbackParameter(org.pentaho.platform.api.engine.ISelectionMapper selMap, String fieldName, Object defaultValues, boolean optional)
String
createNewInstance(boolean persisted)
String
createNewInstance(boolean persisted, Map parameters)
String
createNewInstance(boolean persisted, Map parameters, boolean forceImmediateWrite)
void
dispose()
void
dispose(List actionParameters)
protected void
executeComponent(org.pentaho.platform.api.engine.ISolutionActionDefinition actionDefinition)
void
executeSequence(org.pentaho.platform.api.engine.IActionCompleteListener doneListener, org.pentaho.platform.api.engine.IExecutionListener execListener, boolean async)
void
executeSequence(org.pentaho.platform.api.engine.IActionSequence sequence, org.pentaho.platform.api.engine.IActionCompleteListener doneListener, org.pentaho.platform.api.engine.IExecutionListener execListener, boolean async)
boolean
feedbackAllowed()
void
forceSaveRuntimeData()
Forces the immediate write of runtime data to underlying persistence mechanism.String
getActionName()
org.pentaho.platform.api.engine.IActionSequence
getActionSequence()
String
getActionTitle()
protected static Map
getComponentClassMap()
protected static String
getComponentClassName(String rawClassName, org.pentaho.platform.api.engine.IRuntimeContext runtime)
String
getCurrentComponentName()
org.pentaho.commons.connection.IPentahoStreamSource
getDataSource(String parameterName)
int
getErrorLevel()
org.pentaho.platform.api.repository.IContentItem
getFeedbackContentItem()
String
getHandle()
String
getId()
Set
getInputNames()
org.pentaho.platform.api.engine.IActionParameter
getInputParameter(String name)
String
getInputParameterStringValue(String name)
Object
getInputParameterValue(String name)
InputStream
getInputStream(String parameterName)
String
getInstanceId()
org.apache.commons.logging.Log
getLogger()
String
getLogId()
org.pentaho.platform.api.repository.IContentItem
getOutputContentItem(String mimeType)
org.pentaho.platform.api.repository.IContentItem
getOutputContentItem(String outputName, String mimeType)
List<org.pentaho.platform.api.repository.IContentItem>
getOutputContentItems()
org.pentaho.platform.api.repository.IContentItem
getOutputItem(String outputName, String mimeType, String extension)
Set
getOutputNames()
org.pentaho.platform.api.engine.IActionParameter
getOutputParameter(String name)
int
getOutputPreference()
Gets the output type preferred by the handler.org.pentaho.platform.api.engine.IParameterManager
getParameterManager()
Map
getParameterProviders()
String
getProcessId()
org.dom4j.Document
getResourceAsDocument(org.pentaho.platform.api.engine.IActionSequenceResource actionResource)
String
getResourceAsString(org.pentaho.platform.api.engine.IActionSequenceResource actionResource)
org.pentaho.commons.connection.IPentahoStreamSource
getResourceDataSource(org.pentaho.platform.api.engine.IActionSequenceResource actionResource)
org.pentaho.platform.api.engine.IActionSequenceResource
getResourceDefintion(String name)
InputStream
getResourceInputStream(org.pentaho.platform.api.engine.IActionSequenceResource actionResource)
Set
getResourceNames()
org.pentaho.platform.api.engine.IPentahoSession
getSession()
String
getSolutionPath()
int
getStatus()
String
getStringParameter(String name, String defaultValue)
org.pentaho.platform.api.engine.IPentahoUrlFactory
getUrlFactory()
boolean
isPromptPending()
Tells if a component is waiting for a promptvoid
promptNeeded()
Sets the prompt flag but continue processing Actionsvoid
promptNow()
protected org.pentaho.platform.api.engine.IComponent
resolveComponent(org.pentaho.platform.api.engine.ISolutionActionDefinition actionDefinition, String currentInstanceId, String currentProcessId, org.pentaho.platform.api.engine.IPentahoSession currentSession)
void
sendFeedbackForm()
void
setActionSequence(org.pentaho.platform.api.engine.IActionSequence sequence)
void
setCreateFeedbackParameterCallback(org.pentaho.platform.api.engine.ICreateFeedbackParameterCallback callback)
protected void
setCurrentActionDef(org.pentaho.platform.api.engine.ISolutionActionDefinition actionDefinition)
protected void
setCurrentComponent(String componentClassName)
void
setOutputHandler(org.pentaho.platform.api.engine.IOutputHandler outputHandler)
void
setOutputValue(String name, Object output)
void
setParameterTarget(String target)
void
setParameterXsl(String xsl)
void
setPromptStatus(int status)
void
validateSequence(String sequenceName, org.pentaho.platform.api.engine.IExecutionListener execListener)
-
Methods inherited from class org.pentaho.platform.engine.services.PentahoMessenger
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
-
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getObjectName, setLoggingLevel, setLogId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
PARAMETER_FORM
protected static final String PARAMETER_FORM
- See Also:
- Constant Field Values
-
solutionEngine
protected org.pentaho.platform.api.engine.ISolutionEngine solutionEngine
-
xformHeader
protected StringBuffer xformHeader
-
xformBody
protected StringBuffer xformBody
-
parameterXsl
protected String parameterXsl
-
parameterTemplate
protected String parameterTemplate
-
parameterTarget
protected String parameterTarget
-
urlFactory
protected org.pentaho.platform.api.engine.IPentahoUrlFactory urlFactory
-
parameterProviders
protected Map parameterProviders
-
componentClassMap
protected static Map componentClassMap
-
actionSequence
protected org.pentaho.platform.api.engine.IActionSequence actionSequence
-
debug
public static final boolean debug
- See Also:
- Constant Field Values
-
outputHandler
protected org.pentaho.platform.api.engine.IOutputHandler outputHandler
-
paramManager
protected org.pentaho.platform.api.engine.IParameterManager paramManager
-
-
Constructor Detail
-
RuntimeContext
public RuntimeContext(String instanceId, org.pentaho.platform.api.engine.ISolutionEngine solutionEngine, String solutionName, org.pentaho.platform.api.repository.IRuntimeElement runtimeData, org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IOutputHandler outputHandler, String processId, org.pentaho.platform.api.engine.IPentahoUrlFactory urlFactory, Map parameterProviders, List messages, org.pentaho.platform.api.engine.ICreateFeedbackParameterCallback createFeedbackParameterCallback)
-
-
Method Detail
-
getLogger
public org.apache.commons.logging.Log getLogger()
- Specified by:
getLogger
in classPentahoBase
-
createNewInstance
public String createNewInstance(boolean persisted)
- Specified by:
createNewInstance
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createNewInstance
public String createNewInstance(boolean persisted, Map parameters)
- Specified by:
createNewInstance
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createNewInstance
public String createNewInstance(boolean persisted, Map parameters, boolean forceImmediateWrite)
- Specified by:
createNewInstance
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
promptNow
public void promptNow()
- Specified by:
promptNow
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
promptNeeded
public void promptNeeded()
Sets the prompt flag but continue processing Actions- Specified by:
promptNeeded
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
isPromptPending
public boolean isPromptPending()
Tells if a component is waiting for a prompt- Specified by:
isPromptPending
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Returns:
- true if a prompt is pending
-
getUrlFactory
public org.pentaho.platform.api.engine.IPentahoUrlFactory getUrlFactory()
- Specified by:
getUrlFactory
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
feedbackAllowed
public boolean feedbackAllowed()
- Specified by:
feedbackAllowed
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getFeedbackContentItem
public org.pentaho.platform.api.repository.IContentItem getFeedbackContentItem()
- Specified by:
getFeedbackContentItem
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputItem
public org.pentaho.platform.api.repository.IContentItem getOutputItem(String outputName, String mimeType, String extension)
- Specified by:
getOutputItem
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputContentItem
public org.pentaho.platform.api.repository.IContentItem getOutputContentItem(String mimeType)
- Specified by:
getOutputContentItem
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputContentItem
public org.pentaho.platform.api.repository.IContentItem getOutputContentItem(String outputName, String mimeType)
- Specified by:
getOutputContentItem
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getHandle
public String getHandle()
- Specified by:
getHandle
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getSession
public org.pentaho.platform.api.engine.IPentahoSession getSession()
- Specified by:
getSession
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getSolutionPath
public String getSolutionPath()
- Specified by:
getSolutionPath
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getCurrentComponentName
public String getCurrentComponentName()
- Specified by:
getCurrentComponentName
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceId
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getErrorLevel
public int getErrorLevel()
-
setActionSequence
public void setActionSequence(org.pentaho.platform.api.engine.IActionSequence sequence)
- Specified by:
setActionSequence
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
validateSequence
public void validateSequence(String sequenceName, org.pentaho.platform.api.engine.IExecutionListener execListener) throws org.pentaho.platform.api.engine.ActionValidationException
- Specified by:
validateSequence
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
org.pentaho.platform.api.engine.ActionValidationException
-
getDataSource
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource(String parameterName)
- Specified by:
getDataSource
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getComponentClassMap
protected static Map getComponentClassMap()
-
setCurrentComponent
protected void setCurrentComponent(String componentClassName)
-
setCurrentActionDef
protected void setCurrentActionDef(org.pentaho.platform.api.engine.ISolutionActionDefinition actionDefinition)
-
getComponentClassName
protected static String getComponentClassName(String rawClassName, org.pentaho.platform.api.engine.IRuntimeContext runtime)
-
resolveComponent
protected org.pentaho.platform.api.engine.IComponent resolveComponent(org.pentaho.platform.api.engine.ISolutionActionDefinition actionDefinition, String currentInstanceId, String currentProcessId, org.pentaho.platform.api.engine.IPentahoSession currentSession) throws ClassNotFoundException, org.pentaho.platform.api.engine.PluginBeanException, InstantiationException, IllegalAccessException
- Throws:
ClassNotFoundException
org.pentaho.platform.api.engine.PluginBeanException
InstantiationException
IllegalAccessException
-
executeSequence
public void executeSequence(org.pentaho.platform.api.engine.IActionCompleteListener doneListener, org.pentaho.platform.api.engine.IExecutionListener execListener, boolean async) throws org.pentaho.platform.api.engine.ActionSequenceException
- Specified by:
executeSequence
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
org.pentaho.platform.api.engine.ActionSequenceException
-
setPromptStatus
public void setPromptStatus(int status)
- Specified by:
setPromptStatus
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
executeSequence
public void executeSequence(org.pentaho.platform.api.engine.IActionSequence sequence, org.pentaho.platform.api.engine.IActionCompleteListener doneListener, org.pentaho.platform.api.engine.IExecutionListener execListener, boolean async) throws org.pentaho.platform.api.engine.ActionSequenceException
- Throws:
org.pentaho.platform.api.engine.ActionSequenceException
-
executeComponent
protected void executeComponent(org.pentaho.platform.api.engine.ISolutionActionDefinition actionDefinition) throws org.pentaho.platform.api.engine.ActionExecutionException
- Throws:
org.pentaho.platform.api.engine.ActionExecutionException
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
dispose
public void dispose(List actionParameters)
- Specified by:
dispose
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getInputParameterValue
public Object getInputParameterValue(String name)
- Specified by:
getInputParameterValue
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getInputParameterStringValue
public String getInputParameterStringValue(String name)
- Specified by:
getInputParameterStringValue
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getInputParameter
public org.pentaho.platform.api.engine.IActionParameter getInputParameter(String name)
- Specified by:
getInputParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputParameter
public org.pentaho.platform.api.engine.IActionParameter getOutputParameter(String name)
- Specified by:
getOutputParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getResourceDefintion
public org.pentaho.platform.api.engine.IActionSequenceResource getResourceDefintion(String name)
- Specified by:
getResourceDefintion
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getInputNames
public Set getInputNames()
- Specified by:
getInputNames
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
addTempParameter
public void addTempParameter(String name, org.pentaho.platform.api.engine.IActionParameter param)
- Specified by:
addTempParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
setOutputValue
public void setOutputValue(String name, Object output)
- Specified by:
setOutputValue
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getInputStream
public InputStream getInputStream(String parameterName)
- Specified by:
getInputStream
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputNames
public Set getOutputNames()
- Specified by:
getOutputNames
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getResourceNames
public Set getResourceNames()
- Specified by:
getResourceNames
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getResourceInputStream
public InputStream getResourceInputStream(org.pentaho.platform.api.engine.IActionSequenceResource actionResource) throws FileNotFoundException
- Specified by:
getResourceInputStream
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
FileNotFoundException
-
getResourceAsString
public String getResourceAsString(org.pentaho.platform.api.engine.IActionSequenceResource actionResource) throws IOException
- Specified by:
getResourceAsString
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
IOException
-
getResourceAsDocument
public org.dom4j.Document getResourceAsDocument(org.pentaho.platform.api.engine.IActionSequenceResource actionResource) throws IOException
- Specified by:
getResourceAsDocument
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
IOException
-
getResourceDataSource
public org.pentaho.commons.connection.IPentahoStreamSource getResourceDataSource(org.pentaho.platform.api.engine.IActionSequenceResource actionResource) throws FileNotFoundException
- Specified by:
getResourceDataSource
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
FileNotFoundException
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.pentaho.platform.api.engine.IAuditable
-
getProcessId
public String getProcessId()
- Specified by:
getProcessId
in interfaceorg.pentaho.platform.api.engine.IAuditable
-
getActionName
public String getActionName()
- Specified by:
getActionName
in interfaceorg.pentaho.platform.api.engine.IAuditable
-
getActionTitle
public String getActionTitle()
- Specified by:
getActionTitle
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
audit
public void audit(List auditList)
-
audit
public void audit(String messageType, String message, String value, long duration)
- Specified by:
audit
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
addInputParameter
public void addInputParameter(String name, org.pentaho.platform.api.engine.IActionParameter param)
- Specified by:
addInputParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
applyInputsToFormat
public String applyInputsToFormat(String format)
- Specified by:
applyInputsToFormat
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
applyInputsToFormat
public String applyInputsToFormat(String format, org.pentaho.platform.api.engine.IParameterResolver resolver)
- Specified by:
applyInputsToFormat
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
sendFeedbackForm
public void sendFeedbackForm() throws org.pentaho.platform.api.engine.ActionSequencePromptException
- Specified by:
sendFeedbackForm
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Throws:
org.pentaho.platform.api.engine.ActionSequencePromptException
-
createFeedbackParameter
@Deprecated public void createFeedbackParameter(org.pentaho.platform.api.engine.IActionParameter actionParam)
Deprecated.Unused- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createFeedbackParameter
public void createFeedbackParameter(org.pentaho.platform.api.engine.ISelectionMapper selMap, String fieldName, Object defaultValues)
- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createFeedbackParameter
public void createFeedbackParameter(org.pentaho.platform.api.engine.ISelectionMapper selMap, String fieldName, Object defaultValues, boolean optional)
- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createFeedbackParameter
public void createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValues, List values, Map dispNames, String displayStyle)
- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createFeedbackParameter
public void createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValues, List values, Map dispNames, String displayStyle, boolean optional)
- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
checkForFieldInTemplate
public boolean checkForFieldInTemplate(String fieldName)
-
createFeedbackParameter
public void createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValue, boolean visible)
- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
createFeedbackParameter
public void createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValue, boolean visible, boolean optional)
- Specified by:
createFeedbackParameter
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
setParameterXsl
public void setParameterXsl(String xsl)
- Specified by:
setParameterXsl
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
setParameterTarget
public void setParameterTarget(String target)
- Specified by:
setParameterTarget
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getLogId
public String getLogId()
- Overrides:
getLogId
in classPentahoBase
-
forceSaveRuntimeData
public void forceSaveRuntimeData()
Forces the immediate write of runtime data to underlying persistence mechanism. In the case of using Hibernate for the runtime data persistence, this works out to a call to HibernateUtil.flush().- Specified by:
forceSaveRuntimeData
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputPreference
public int getOutputPreference()
Gets the output type preferred by the handler. Values are defined in org.pentaho.core.solution.IOutputHander and are OUTPUT_TYPE_PARAMETERS, OUTPUT_TYPE_CONTENT, or OUTPUT_TYPE_DEFAULT- Specified by:
getOutputPreference
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
- Returns:
- Output type
-
setOutputHandler
public void setOutputHandler(org.pentaho.platform.api.engine.IOutputHandler outputHandler)
- Specified by:
setOutputHandler
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getActionSequence
public org.pentaho.platform.api.engine.IActionSequence getActionSequence()
- Specified by:
getActionSequence
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getParameterManager
public org.pentaho.platform.api.engine.IParameterManager getParameterManager()
- Specified by:
getParameterManager
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getParameterProviders
public Map getParameterProviders()
- Specified by:
getParameterProviders
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
setCreateFeedbackParameterCallback
public void setCreateFeedbackParameterCallback(org.pentaho.platform.api.engine.ICreateFeedbackParameterCallback callback)
- Specified by:
setCreateFeedbackParameterCallback
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
getOutputContentItems
public List<org.pentaho.platform.api.repository.IContentItem> getOutputContentItems()
- Specified by:
getOutputContentItems
in interfaceorg.pentaho.platform.api.engine.IRuntimeContext
-
-