public abstract class BaseUIComponent extends PentahoMessenger implements IUIComponent
Modifier and Type | Field and Description |
---|---|
protected HashMap |
contentTypes |
static boolean |
debug |
protected IPentahoUrlFactory |
urlFactory |
protected HashMap |
xslProperties |
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
Constructor and Description |
---|
BaseUIComponent(IPentahoUrlFactory urlFactory,
List messages,
String sourcePath) |
Modifier and Type | Method and Description |
---|---|
void |
done() |
abstract String |
getContent(String mimeType) |
abstract org.apache.commons.logging.Log |
getLogger() |
Object |
getObjectParameter(String name,
Object defaultValue) |
String |
getParameter(String name,
String defaultValue) |
String[] |
getParameterAsArray(String name) |
HashMap |
getParameterProviders() |
protected IActionRequestHandler |
getRequestHandler() |
protected IPentahoSession |
getSession() |
protected String |
getSourcePath() |
protected IPentahoUrlFactory |
getUrlFactory() |
String |
getXsl(String mimeType) |
HashMap |
getXslProperties() |
void |
handleRequest(OutputStream outputStream,
IActionRequestHandler actionRequestHandler,
String contentType,
HashMap requestParameterProviders) |
void |
setParameterProvider(String name,
IParameterProvider parameterProvider) |
void |
setParameterProviders(HashMap parameterProviders) |
void |
setRequestHandler(IActionRequestHandler actionRequestHandler) |
protected void |
setSourcePath(String sourcePath) |
void |
setUrlFactory(IPentahoUrlFactory urlFactory) |
void |
setXsl(String mimeType,
String xslName) |
void |
setXslProperty(String name,
String value) |
abstract boolean |
validate() |
boolean |
validate(IPentahoSession session,
IActionRequestHandler actionRequestHandler)
Set the userSession member, generate a Log Id, set the requestHandler, and validate the component's
configuration.
|
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, setLoggingLevel, setLogId
public static final boolean debug
protected HashMap xslProperties
protected HashMap contentTypes
protected IPentahoUrlFactory urlFactory
public BaseUIComponent(IPentahoUrlFactory urlFactory, List messages, String sourcePath)
public abstract org.apache.commons.logging.Log getLogger()
getLogger
in class PentahoBase
public void handleRequest(OutputStream outputStream, IActionRequestHandler actionRequestHandler, String contentType, HashMap requestParameterProviders) throws IOException
handleRequest
in interface IUIComponent
IOException
protected void setSourcePath(String sourcePath)
protected String getSourcePath()
public void setUrlFactory(IPentahoUrlFactory urlFactory)
public void setRequestHandler(IActionRequestHandler actionRequestHandler)
public void setParameterProvider(String name, IParameterProvider parameterProvider)
public void setParameterProviders(HashMap parameterProviders)
protected IPentahoUrlFactory getUrlFactory()
protected IActionRequestHandler getRequestHandler()
public HashMap getParameterProviders()
protected IPentahoSession getSession()
public abstract boolean validate()
validate
in interface IUIComponent
public boolean validate(IPentahoSession session, IActionRequestHandler actionRequestHandler)
validate
in interface IUIComponent
session
- actionRequestHandler
- public HashMap getXslProperties()
public void done()
Copyright © 2017 Hitachi Vantara. All rights reserved.