|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.plugin.action.examples.ComponentImplementationExample
public class ComponentImplementationExample
| Field Summary | |
|---|---|
String |
EMPTYLOGID
|
static String |
LOGID_MASK1
|
static String |
LOGID_MASK2
|
static String |
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 |
| Constructor Summary | |
|---|---|
ComponentImplementationExample()
|
|
| Method Summary | |
|---|---|
void |
createFeedbackParameter(String fieldName,
String displayName,
String hint,
Object defaultValues,
List values,
Map dispNames,
String displayStyle)
|
String |
createNewInstance(boolean persisted,
Map parameters,
boolean forceImmediateWrite)
|
void |
debug(String message)
Log a message object with the DEBUG Level. |
void |
debug(String message,
Throwable error)
Log a message with the DEBUG level including the stack
trace of the Throwable error passed as parameter. |
void |
done()
Allows the component to perform any cleanup after the execution of the action. |
void |
error(String message)
Log a message object with the ERROR Level. |
void |
error(String message,
Throwable error)
Log a message with the ERROR level including the stack
trace of the Throwable error passed as parameter. |
int |
execute()
Perform the Component execution; logic for what this Component does goes here. |
void |
fatal(String message)
Log a message object with the FATAL Level. |
void |
fatal(String message,
Throwable error)
Log a message with the FATAL level including the stack
trace of the Throwable error passed as parameter. |
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()
Return the name of the action sequence. |
String |
getActionTitle()
|
org.dom4j.Node |
getComponentDefinition()
|
String |
getId()
Returns a unique id (across classes and instances) for this auditable object. |
String |
getInitFailMessage()
|
boolean |
getInitOk()
|
String |
getInstanceId()
|
org.apache.commons.logging.Log |
getLogger()
|
int |
getLoggingLevel()
Return the logging level for this Logger. |
String |
getLogId()
|
List |
getMessages()
|
String |
getObjectName()
Returns the Java class name for this object. |
String |
getProcessId()
Return the id for the execution of a given action sequence document. |
String |
getResourceAsString(IActionSequenceResource resource)
|
IRuntimeContext |
getRuntimeContext()
|
IPentahoSession |
getSession()
|
static String |
getUserString(String type)
|
void |
info(String message)
Log a message object with the INFO Level. |
void |
info(String message,
Throwable error)
Log a message with the INFO level including the stack trace
of the Throwable error passed as parameter. |
boolean |
init()
Initialize the Component. |
void |
inputMissingError(String paramName)
|
void |
outputMissingError(String paramName)
|
void |
promptNeeded()
|
void |
promptNow()
|
void |
resourceComponentSettingError(String paramName)
|
void |
resourceMissingError(String paramName)
|
void |
setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition)
|
void |
setActionName(String actionName)
|
void |
setComponentDefinition(org.dom4j.Node componentDefinition)
|
void |
setComponentDefinitionMap(Map<String,String> componentDefinitionMap)
|
void |
setInstanceId(String instanceId)
|
void |
setLoggingLevel(int logLevel)
Set the logging level for this Logger. |
void |
setLogId(String lId)
|
void |
setMessages(List messages)
|
void |
setProcessId(String processId)
|
void |
setRuntimeContext(IRuntimeContext runtimeContext)
|
void |
setSession(IPentahoSession session)
|
void |
trace(String message)
Log a message object with the TRACE Level. |
void |
trace(String message,
Throwable error)
Log a message with the TRACE level including the stack
trace of the Throwable error passed as parameter. |
int |
validate()
Validate that the Component has all the necessary inputs, outputs and resources it needs to execute successfully. |
boolean |
validateAction()
|
void |
warn(String message)
Log a message object with the WARN Level. |
void |
warn(String message,
Throwable error)
Log a message with the WARN level including the stack trace
of the Throwable error passed as parameter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOGID_MASK1
public static final String LOGID_MASK2
public static final String LOGID_SEPARATOR
public String EMPTYLOGID
| Constructor Detail |
|---|
public ComponentImplementationExample()
| Method Detail |
|---|
public boolean validateAction()
public void done()
IComponent
done in interface IComponentpublic boolean init()
IComponent
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)
public void genLogIdFromInfo(String sessId,
String procId,
String actName,
String instId)
public String getObjectName()
IAuditable
getObjectName in interface IAuditablepublic int getLoggingLevel()
ILogger
getLoggingLevel in interface ILoggerpublic void setLoggingLevel(int logLevel)
ILogger
Valid logging levels are TRACE, DEBUG,
INFO, WARN, ERROR, and
FATAL.
setLoggingLevel in interface ILoggerpublic List getMessages()
getMessages in interface IComponentpublic void setMessages(List messages)
setMessages in interface IComponentpublic void trace(String message)
ILoggerTRACE Level.
trace in interface ILoggermessage - the message object to log.public void debug(String message)
ILoggerDEBUG Level.
debug in interface ILoggermessage - the message object to log.public void info(String message)
ILoggerINFO Level.
info in interface ILoggermessage - the message object to log.public void warn(String message)
ILoggerWARN Level.
warn in interface ILoggermessage - the message object to log.public void error(String message)
ILoggerERROR Level.
error in interface ILoggermessage - the message object to log.public void fatal(String message)
ILoggerFATAL Level.
fatal in interface ILoggermessage - the message object to log.
public void trace(String message,
Throwable error)
ILoggerTRACE level including the stack
trace of the Throwable error passed as parameter.
trace in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.
public void debug(String message,
Throwable error)
ILoggerDEBUG level including the stack
trace of the Throwable error passed as parameter.
debug in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.
public void info(String message,
Throwable error)
ILoggerINFO level including the stack trace
of the Throwable error passed as parameter.
info in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.
public void warn(String message,
Throwable error)
ILoggerWARN level including the stack trace
of the Throwable error passed as parameter.
warn in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.
public void error(String message,
Throwable error)
ILoggerERROR level including the stack
trace of the Throwable error passed as parameter.
error in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.
public void fatal(String message,
Throwable error)
ILoggerFATAL level including the stack
trace of the Throwable error passed as parameter.
fatal in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.public static String getUserString(String type)
public void setInstanceId(String instanceId)
setInstanceId in interface IComponentpublic String getInstanceId()
getInstanceId in interface IComponentpublic void setActionName(String actionName)
setActionName in interface IComponentpublic String getActionName()
IAuditable
getActionName in interface IAuditablegetActionName in interface IComponentpublic void setProcessId(String processId)
setProcessId in interface IComponentpublic String getProcessId()
IAuditable
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()
public final int validate()
IComponent
validate in interface IComponentIRuntimeContextpublic boolean getInitOk()
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()
IComponent
execute in interface IComponentIRuntimeContextpublic String getId()
IAuditable
getId in interface IAuditablepublic String getActionTitle()
public void createFeedbackParameter(String fieldName,
String displayName,
String hint,
Object defaultValues,
List values,
Map dispNames,
String displayStyle)
public void setActionDefinition(org.pentaho.actionsequence.dom.IActionDefinition actionDefinition)
setActionDefinition in interface IComponentpublic org.pentaho.actionsequence.dom.IActionDefinition getActionDefinition()
getActionDefinition in interface IComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||