public class ComponentImplementationExample extends Object implements org.pentaho.platform.api.engine.IComponent
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug |
String |
EMPTYLOGID |
protected int |
loggingLevel |
static String |
LOGID_MASK1 |
static String |
LOGID_MASK2 |
static String |
LOGID_SEPARATOR |
Constructor and Description |
---|
ComponentImplementationExample() |
Modifier and Type | Method and Description |
---|---|
protected String |
applyInputsToFormat(String format) |
protected void |
audit(String messageType,
String message,
String value,
int duration) |
protected void |
createFeedbackParameter(org.pentaho.platform.api.engine.IActionParameter actionParam) |
protected void |
createFeedbackParameter(org.pentaho.platform.api.engine.ISelectionMapper selMap,
String fieldName,
Object defaultValues) |
void |
createFeedbackParameter(String fieldName,
String displayName,
String hint,
Object defaultValues,
List values,
Map dispNames,
String displayStyle) |
protected void |
createFeedbackParameter(String fieldName,
String displayName,
String hint,
String defaultValue,
boolean visible) |
String |
createNewInstance(boolean persisted,
Map parameters,
boolean forceImmediateWrite) |
void |
debug(String message) |
void |
debug(String message,
Throwable error) |
void |
done() |
void |
error(String message) |
void |
error(String message,
Throwable error) |
int |
execute() |
protected boolean |
executeAction() |
void |
fatal(String message) |
void |
fatal(String message,
Throwable error) |
protected boolean |
feedbackAllowed() |
void |
genLogIdFromInfo(String sessId,
String procId,
String actName) |
void |
genLogIdFromInfo(String sessId,
String procId,
String actName,
String instId) |
void |
genLogIdFromSession(org.pentaho.platform.api.engine.IPentahoSession sess) |
org.pentaho.actionsequence.dom.IActionDefinition |
getActionDefinition() |
String |
getActionName() |
String |
getActionTitle() |
org.dom4j.Node |
getComponentDefinition() |
protected OutputStream |
getDefaultOutputStream(String mimeType) |
protected OutputStream |
getFeedbackOutputStream() |
String |
getId() |
String |
getInitFailMessage() |
boolean |
getInitOk() |
protected boolean |
getInputBooleanValue(String inputName,
boolean defaultValue) |
protected long |
getInputLongValue(String inputName,
long defaultValue) |
protected Set |
getInputNames() |
protected org.pentaho.platform.api.engine.IActionParameter |
getInputParameter(String parameterName) |
protected InputStream |
getInputStream(String inputName) |
protected String |
getInputStringValue(String inputName) |
protected Object |
getInputValue(String inputName) |
String |
getInstanceId() |
org.apache.commons.logging.Log |
getLogger() |
int |
getLoggingLevel() |
String |
getLogId() |
List |
getMessages() |
String |
getObjectName() |
protected org.pentaho.platform.api.repository.IContentItem |
getOutputContentItem(String mimeType) |
protected org.pentaho.platform.api.repository.IContentItem |
getOutputContentItem(String outputName,
String mimeType) |
protected org.pentaho.platform.api.engine.IActionParameter |
getOutputItem(String outputName) |
protected org.pentaho.platform.api.repository.IContentItem |
getOutputItem(String outputName,
String mimeType,
String extension) |
protected Set |
getOutputNames() |
protected int |
getOutputPreference() |
String |
getProcessId() |
protected org.pentaho.platform.api.engine.IActionSequenceResource |
getResource(String resourceName) |
String |
getResourceAsString(org.pentaho.platform.api.engine.IActionSequenceResource resource) |
protected org.pentaho.commons.connection.IPentahoStreamSource |
getResourceDataSource(org.pentaho.platform.api.engine.IActionSequenceResource resource) |
protected InputStream |
getResourceInputStream(org.pentaho.platform.api.engine.IActionSequenceResource resource) |
protected Set |
getResourceNames() |
org.pentaho.platform.api.engine.IRuntimeContext |
getRuntimeContext() |
org.pentaho.platform.api.engine.IPentahoSession |
getSession() |
protected Object |
getSetting(String name) |
protected String |
getSolutionName() |
protected String |
getSolutionPath() |
protected String |
getStringSetting(String name) |
static String |
getUserString(String type) |
void |
info(String message) |
void |
info(String message,
Throwable error) |
boolean |
init() |
void |
inputMissingError(String paramName) |
protected boolean |
isDefinedInput(String inputName) |
protected boolean |
isDefinedOutput(String outputName) |
protected boolean |
isDefinedResource(String resourceName) |
protected boolean |
isPromptPending() |
void |
outputMissingError(String paramName) |
void |
promptNeeded() |
void |
promptNow() |
void |
resourceComponentSettingError(String paramName) |
void |
resourceMissingError(String paramName) |
protected void |
saveSetting(String name,
Object value) |
void |
setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition) |
void |
setActionName(String actionName) |
void |
setComponentDefinition(org.dom4j.Node componentDefinition) |
void |
setComponentDefinitionMap(Map<String,String> componentDefinitionMap) |
protected void |
setFeedbackMimeType(String mimeType) |
void |
setInstanceId(String instanceId) |
void |
setLoggingLevel(int logLevel) |
void |
setLogId(String lId) |
void |
setMessages(List messages) |
protected void |
setOutputMimeType(String mimeType) |
protected void |
setOutputValue(String outputName,
Object value) |
void |
setProcessId(String processId) |
void |
setRuntimeContext(org.pentaho.platform.api.engine.IRuntimeContext runtimeContext) |
void |
setSession(org.pentaho.platform.api.engine.IPentahoSession session) |
void |
trace(String message) |
void |
trace(String message,
Throwable error) |
int |
validate() |
boolean |
validateAction() |
protected boolean |
validateSystemSettings() |
void |
warn(String message) |
void |
warn(String message,
Throwable error) |
protected int loggingLevel
public static final String LOGID_MASK1
public static final String LOGID_MASK2
public static final String LOGID_SEPARATOR
public String EMPTYLOGID
protected static final boolean debug
public boolean validateAction()
protected boolean validateSystemSettings()
public void done()
done
in interface org.pentaho.platform.api.engine.IComponent
public boolean init()
init
in interface org.pentaho.platform.api.engine.IComponent
public void setLogId(String lId)
public org.apache.commons.logging.Log getLogger()
public void genLogIdFromSession(org.pentaho.platform.api.engine.IPentahoSession sess)
public void genLogIdFromInfo(String sessId, String procId, String actName, String instId)
public String getObjectName()
getObjectName
in interface org.pentaho.platform.api.engine.IAuditable
public int getLoggingLevel()
getLoggingLevel
in interface org.pentaho.platform.api.engine.ILogger
public void setLoggingLevel(int logLevel)
setLoggingLevel
in interface org.pentaho.platform.api.engine.ILogger
public List getMessages()
getMessages
in interface org.pentaho.platform.api.engine.IComponent
public void setMessages(List messages)
setMessages
in interface org.pentaho.platform.api.engine.IComponent
public void trace(String message)
trace
in interface org.pentaho.platform.api.engine.ILogger
public void debug(String message)
debug
in interface org.pentaho.platform.api.engine.ILogger
public void info(String message)
info
in interface org.pentaho.platform.api.engine.ILogger
public void warn(String message)
warn
in interface org.pentaho.platform.api.engine.ILogger
public void error(String message)
error
in interface org.pentaho.platform.api.engine.ILogger
public void fatal(String message)
fatal
in interface org.pentaho.platform.api.engine.ILogger
public void trace(String message, Throwable error)
trace
in interface org.pentaho.platform.api.engine.ILogger
public void debug(String message, Throwable error)
debug
in interface org.pentaho.platform.api.engine.ILogger
public void info(String message, Throwable error)
info
in interface org.pentaho.platform.api.engine.ILogger
public void warn(String message, Throwable error)
warn
in interface org.pentaho.platform.api.engine.ILogger
public void error(String message, Throwable error)
error
in interface org.pentaho.platform.api.engine.ILogger
public void fatal(String message, Throwable error)
fatal
in interface org.pentaho.platform.api.engine.ILogger
public void setInstanceId(String instanceId)
setInstanceId
in interface org.pentaho.platform.api.engine.IComponent
public String getInstanceId()
getInstanceId
in interface org.pentaho.platform.api.engine.IComponent
public void setActionName(String actionName)
setActionName
in interface org.pentaho.platform.api.engine.IComponent
public String getActionName()
getActionName
in interface org.pentaho.platform.api.engine.IAuditable
getActionName
in interface org.pentaho.platform.api.engine.IComponent
public void setProcessId(String processId)
setProcessId
in interface org.pentaho.platform.api.engine.IComponent
public String getProcessId()
getProcessId
in interface org.pentaho.platform.api.engine.IAuditable
getProcessId
in interface org.pentaho.platform.api.engine.IComponent
public void setComponentDefinitionMap(Map<String,String> componentDefinitionMap)
setComponentDefinitionMap
in interface org.pentaho.platform.api.engine.IComponent
public void setComponentDefinition(org.dom4j.Node componentDefinition)
setComponentDefinition
in interface org.pentaho.platform.api.engine.IComponent
public org.dom4j.Node getComponentDefinition()
getComponentDefinition
in interface org.pentaho.platform.api.engine.IComponent
public void setRuntimeContext(org.pentaho.platform.api.engine.IRuntimeContext runtimeContext)
setRuntimeContext
in interface org.pentaho.platform.api.engine.IComponent
public org.pentaho.platform.api.engine.IRuntimeContext getRuntimeContext()
getRuntimeContext
in interface org.pentaho.platform.api.engine.IComponent
public void setSession(org.pentaho.platform.api.engine.IPentahoSession session)
setSession
in interface org.pentaho.platform.api.engine.IComponent
public org.pentaho.platform.api.engine.IPentahoSession getSession()
getSession
in interface org.pentaho.platform.api.engine.IComponent
public String getLogId()
protected boolean isDefinedInput(String inputName)
protected boolean isDefinedOutput(String outputName)
protected boolean isDefinedResource(String resourceName)
public final int validate()
validate
in interface org.pentaho.platform.api.engine.IComponent
public boolean getInitOk()
protected Set getOutputNames()
protected Set getInputNames()
protected Set getResourceNames()
protected boolean feedbackAllowed()
protected org.pentaho.platform.api.engine.IActionSequenceResource getResource(String resourceName)
protected InputStream getResourceInputStream(org.pentaho.platform.api.engine.IActionSequenceResource resource) throws FileNotFoundException
FileNotFoundException
protected InputStream getInputStream(String inputName)
protected int getOutputPreference()
protected org.pentaho.platform.api.repository.IContentItem getOutputItem(String outputName, String mimeType, String extension)
protected boolean getInputBooleanValue(String inputName, boolean defaultValue)
protected long getInputLongValue(String inputName, long defaultValue)
public void promptNeeded()
public void promptNow()
public String getResourceAsString(org.pentaho.platform.api.engine.IActionSequenceResource resource)
public String getInitFailMessage()
public String createNewInstance(boolean persisted, Map parameters, boolean forceImmediateWrite)
public void inputMissingError(String paramName)
public void outputMissingError(String paramName)
public void resourceMissingError(String paramName)
public void resourceComponentSettingError(String paramName)
public int execute()
execute
in interface org.pentaho.platform.api.engine.IComponent
public String getId()
getId
in interface org.pentaho.platform.api.engine.IAuditable
public String getActionTitle()
protected org.pentaho.platform.api.repository.IContentItem getOutputContentItem(String mimeType)
protected org.pentaho.platform.api.repository.IContentItem getOutputContentItem(String outputName, String mimeType)
protected OutputStream getDefaultOutputStream(String mimeType)
protected org.pentaho.platform.api.engine.IActionParameter getOutputItem(String outputName)
protected String getSolutionName()
protected String getSolutionPath()
protected org.pentaho.platform.api.engine.IActionParameter getInputParameter(String parameterName)
protected boolean isPromptPending()
protected void setFeedbackMimeType(String mimeType)
protected void setOutputMimeType(String mimeType)
protected OutputStream getFeedbackOutputStream()
protected void createFeedbackParameter(org.pentaho.platform.api.engine.IActionParameter actionParam)
protected void createFeedbackParameter(org.pentaho.platform.api.engine.ISelectionMapper selMap, String fieldName, Object defaultValues)
protected void createFeedbackParameter(String fieldName, String displayName, String hint, String defaultValue, boolean visible)
public void createFeedbackParameter(String fieldName, String displayName, String hint, Object defaultValues, List values, Map dispNames, String displayStyle)
protected org.pentaho.commons.connection.IPentahoStreamSource getResourceDataSource(org.pentaho.platform.api.engine.IActionSequenceResource resource) throws FileNotFoundException
FileNotFoundException
public void setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition)
setActionDefinition
in interface org.pentaho.platform.api.engine.IComponent
public org.pentaho.actionsequence.dom.IActionDefinition getActionDefinition()
getActionDefinition
in interface org.pentaho.platform.api.engine.IComponent
Copyright © 2021 Hitachi Vantara. All rights reserved.