public class ComponentImplementationExample extends Object implements 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 |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN| 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(IActionParameter actionParam) |
protected void |
createFeedbackParameter(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(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 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 IContentItem |
getOutputContentItem(String mimeType) |
protected IContentItem |
getOutputContentItem(String outputName,
String mimeType) |
protected IActionParameter |
getOutputItem(String outputName) |
protected IContentItem |
getOutputItem(String outputName,
String mimeType,
String extension) |
protected Set |
getOutputNames() |
protected int |
getOutputPreference() |
String |
getProcessId() |
protected IActionSequenceResource |
getResource(String resourceName) |
String |
getResourceAsString(IActionSequenceResource resource) |
protected org.pentaho.commons.connection.IPentahoStreamSource |
getResourceDataSource(IActionSequenceResource resource) |
protected InputStream |
getResourceInputStream(IActionSequenceResource resource) |
protected Set |
getResourceNames() |
IRuntimeContext |
getRuntimeContext() |
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(IRuntimeContext runtimeContext) |
void |
setSession(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 IComponentpublic boolean init()
init in interface IComponentpublic void setLogId(String lId)
public org.apache.commons.logging.Log getLogger()
public void genLogIdFromSession(IPentahoSession sess)
public void genLogIdFromInfo(String sessId, String procId, String actName, String instId)
public String getObjectName()
getObjectName in interface IAuditablepublic int getLoggingLevel()
getLoggingLevel in interface ILoggerpublic void setLoggingLevel(int logLevel)
setLoggingLevel in interface ILoggerpublic List getMessages()
getMessages in interface IComponentpublic void setMessages(List messages)
setMessages in interface IComponentpublic void setInstanceId(String instanceId)
setInstanceId in interface IComponentpublic String getInstanceId()
getInstanceId in interface IComponentpublic void setActionName(String actionName)
setActionName in interface IComponentpublic String getActionName()
getActionName in interface IAuditablegetActionName in interface IComponentpublic void setProcessId(String processId)
setProcessId in interface IComponentpublic String getProcessId()
getProcessId in interface IAuditablegetProcessId in interface IComponentpublic void setComponentDefinitionMap(Map<String,String> componentDefinitionMap)
setComponentDefinitionMap in interface IComponentpublic void setComponentDefinition(org.dom4j.Node componentDefinition)
setComponentDefinition in interface IComponentpublic org.dom4j.Node getComponentDefinition()
getComponentDefinition in interface IComponentpublic void setRuntimeContext(IRuntimeContext runtimeContext)
setRuntimeContext in interface IComponentpublic IRuntimeContext getRuntimeContext()
getRuntimeContext in interface IComponentpublic void setSession(IPentahoSession session)
setSession in interface IComponentpublic IPentahoSession getSession()
getSession in interface IComponentpublic String getLogId()
protected boolean isDefinedInput(String inputName)
protected boolean isDefinedOutput(String outputName)
protected boolean isDefinedResource(String resourceName)
public final int validate()
validate in interface IComponentpublic boolean getInitOk()
protected Set getOutputNames()
protected Set getInputNames()
protected Set getResourceNames()
protected boolean feedbackAllowed()
protected IActionSequenceResource getResource(String resourceName)
protected InputStream getResourceInputStream(IActionSequenceResource resource) throws FileNotFoundException
FileNotFoundExceptionprotected InputStream getInputStream(String inputName)
protected int getOutputPreference()
protected 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(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 IComponentpublic String getId()
getId in interface IAuditablepublic String getActionTitle()
protected IContentItem getOutputContentItem(String mimeType)
protected IContentItem getOutputContentItem(String outputName, String mimeType)
protected OutputStream getDefaultOutputStream(String mimeType)
protected IActionParameter getOutputItem(String outputName)
protected String getSolutionName()
protected String getSolutionPath()
protected IActionParameter getInputParameter(String parameterName)
protected boolean isPromptPending()
protected void setFeedbackMimeType(String mimeType)
protected void setOutputMimeType(String mimeType)
protected OutputStream getFeedbackOutputStream()
protected void createFeedbackParameter(IActionParameter actionParam)
protected void createFeedbackParameter(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(IActionSequenceResource resource) throws FileNotFoundException
FileNotFoundExceptionpublic void setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition)
setActionDefinition in interface IComponentpublic org.pentaho.actionsequence.dom.IActionDefinition getActionDefinition()
getActionDefinition in interface IComponentCopyright © 2017 Hitachi Vantara. All rights reserved.