public class RunReport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
adminEngineClassname |
private static boolean |
categoriesShared |
private static boolean |
customersShared |
private static KKAdminIf |
eng |
private static int |
engineMode |
static org.apache.commons.logging.Log |
log
logger
|
private static java.lang.String |
logFileName |
private static java.lang.String |
outputFormat |
private static java.lang.String |
outputName |
private static java.util.HashMap<java.lang.String,java.lang.Object> |
params |
private static java.lang.String |
password |
private static java.lang.String |
platform |
private static boolean |
productsShared |
(package private) static java.lang.String |
propsFileName |
private static java.lang.String |
reportName |
private static java.lang.String |
resources |
private static java.lang.String |
storeId |
(package private) static java.lang.String |
usage |
private static java.lang.String |
username |
Constructor and Description |
---|
RunReport() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAdminEngineClassname() |
private static KKAdminIf |
getAnEng() |
static KKAdminIf |
getEng() |
static int |
getEngineMode() |
static org.apache.commons.logging.Log |
getLog() |
static java.lang.String |
getLogFileName() |
static java.lang.String |
getOutputFormat() |
static java.lang.String |
getOutputName() |
static java.util.HashMap<java.lang.String,java.lang.Object> |
getParams() |
static java.lang.String |
getPassword() |
static java.lang.String |
getPlatform() |
static java.lang.String |
getPropsFileName() |
static java.lang.String |
getReportName() |
static java.lang.String |
getResources() |
static java.lang.String |
getStoreId() |
static java.lang.String |
getUsername() |
static boolean |
isCategoriesShared() |
static boolean |
isCustomersShared() |
static boolean |
isProductsShared() |
static void |
main(java.lang.String[] args) |
private static void |
parseParams(org.eclipse.birt.report.engine.api.ReportEngine engine,
org.eclipse.birt.report.engine.api.IReportRunnable report,
java.util.HashMap<java.lang.String,java.lang.Object> values) |
static void |
run()
Run a report.
|
static boolean |
runReport()
Run the report
|
static void |
setAdminEngineClassname(java.lang.String adminEngineClassname) |
static void |
setCategoriesShared(boolean categoriesShared) |
static void |
setCustomersShared(boolean customersShared) |
static void |
setEng(KKAdminIf eng) |
static void |
setEngineMode(int engineMode) |
static void |
setLog(org.apache.commons.logging.Log log) |
static void |
setLogFileName(java.lang.String logFileName) |
static void |
setOutputFormat(java.lang.String outputFormat) |
static void |
setOutputName(java.lang.String outputName) |
static void |
setParams(java.util.HashMap<java.lang.String,java.lang.Object> params) |
static void |
setPassword(java.lang.String password) |
static void |
setPlatform(java.lang.String platform) |
static void |
setProductsShared(boolean productsShared) |
static void |
setPropsFileName(java.lang.String propsFileName) |
static void |
setReportName(java.lang.String reportName) |
static void |
setResources(java.lang.String resources) |
static void |
setStoreId(java.lang.String storeId) |
static void |
setUsername(java.lang.String username) |
private static void |
showParam(org.eclipse.birt.report.engine.api.IGetParameterDefinitionTask task,
org.eclipse.birt.report.engine.api.IParameterDefnBase defn,
java.lang.String prefix) |
(package private) static void |
showReportInfo(org.eclipse.birt.report.engine.api.ReportEngine engine,
org.eclipse.birt.report.engine.api.IReportRunnable report) |
public static org.apache.commons.logging.Log log
static final java.lang.String usage
static java.lang.String propsFileName
private static java.lang.String storeId
private static java.lang.String username
private static java.lang.String password
private static java.lang.String platform
private static java.lang.String resources
private static java.lang.String adminEngineClassname
private static java.lang.String reportName
private static java.lang.String outputName
private static java.lang.String logFileName
private static java.lang.String outputFormat
private static int engineMode
private static boolean customersShared
private static boolean productsShared
private static boolean categoriesShared
private static KKAdminIf eng
private static java.util.HashMap<java.lang.String,java.lang.Object> params
public static void main(java.lang.String[] args) throws java.text.ParseException
args
- the argsjava.text.ParseException
- an unexpected ParseException exceptionpublic static boolean runReport()
public static void run() throws java.lang.IllegalArgumentException, KKAdminException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.InstantiationException
- an unexpected InstantiationException exceptionKKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionstatic void showReportInfo(org.eclipse.birt.report.engine.api.ReportEngine engine, org.eclipse.birt.report.engine.api.IReportRunnable report)
private static void showParam(org.eclipse.birt.report.engine.api.IGetParameterDefinitionTask task, org.eclipse.birt.report.engine.api.IParameterDefnBase defn, java.lang.String prefix)
private static void parseParams(org.eclipse.birt.report.engine.api.ReportEngine engine, org.eclipse.birt.report.engine.api.IReportRunnable report, java.util.HashMap<java.lang.String,java.lang.Object> values)
private static KKAdminIf getAnEng() throws KKAdminException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
KKAdminException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
public static org.apache.commons.logging.Log getLog()
public static void setLog(org.apache.commons.logging.Log log)
log
- the log to setpublic static java.lang.String getPropsFileName()
public static void setPropsFileName(java.lang.String propsFileName)
propsFileName
- the propsFileName to setpublic static java.lang.String getStoreId()
public static void setStoreId(java.lang.String storeId)
storeId
- the storeId to setpublic static java.lang.String getUsername()
public static void setUsername(java.lang.String username)
username
- the username to setpublic static java.lang.String getPassword()
public static void setPassword(java.lang.String password)
password
- the password to setpublic static java.lang.String getAdminEngineClassname()
public static void setAdminEngineClassname(java.lang.String adminEngineClassname)
adminEngineClassname
- the adminEngineClassname to setpublic static int getEngineMode()
public static void setEngineMode(int engineMode)
engineMode
- the engineMode to setpublic static boolean isCustomersShared()
public static void setCustomersShared(boolean customersShared)
customersShared
- the customersShared to setpublic static boolean isProductsShared()
public static void setProductsShared(boolean productsShared)
productsShared
- the productsShared to setpublic static boolean isCategoriesShared()
public static void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setpublic static KKAdminIf getEng()
public static void setEng(KKAdminIf eng)
eng
- the eng to setpublic static java.lang.String getReportName()
public static void setReportName(java.lang.String reportName)
reportName
- the reportName to setpublic static java.lang.String getOutputName()
public static void setOutputName(java.lang.String outputName)
outputName
- the outputName to setpublic static java.lang.String getOutputFormat()
public static void setOutputFormat(java.lang.String outputFormat)
outputFormat
- the outputFormat to setpublic static java.lang.String getPlatform()
public static void setPlatform(java.lang.String platform)
platform
- the platform to setpublic static java.util.HashMap<java.lang.String,java.lang.Object> getParams()
public static void setParams(java.util.HashMap<java.lang.String,java.lang.Object> params)
params
- the params to setpublic static java.lang.String getResources()
public static void setResources(java.lang.String resources)
resources
- the resources to setpublic static java.lang.String getLogFileName()
public static void setLogFileName(java.lang.String logFileName)
logFileName
- the logFileName to setCopyright © 2018 DS Data Systems UK Ltd.