com.googlecode.fascinator.portal.report
Class Report

java.lang.Object
  extended by com.googlecode.fascinator.portal.report.Report
Direct Known Subclasses:
CustomReport

public abstract class Report
extends Object


Field Summary
protected  JsonSimple config
           
protected  String configPath
           
protected static String FLD_QUERY
           
protected static String FLD_QUERY_FILTER
           
protected static String FLD_QUERY_FILTER_COND
           
protected static String FLD_QUERY_FILTER_COND_AND
           
protected static String FLD_QUERY_FILTER_COND_OR
           
protected static String FLD_QUERY_FILTER_UIKEY
           
protected static String FLD_QUERY_FILTER_VALUE
           
protected  String label
           
protected  JsonObject query
           
protected  String reportName
           
 
Constructor Summary
Report()
           
Report(File reportConfigFile)
           
Report(JsonSimple config)
           
Report(String reportName, String label)
           
 
Method Summary
 void addAndQueryCond(String filterName)
           
 void addOrQueryCond(String filterName)
           
protected  void addQueryCond(String cond, String filterName)
           
 String getConfigPath()
           
 String getLabel()
           
abstract  String getQueryAsString()
           
protected  JsonObject getQueryFilter(String key)
           
 Object getQueryFilterVal(String key)
           
 String getQueryUiKey(String key)
           
 String getReportName()
           
 void setConfig(JsonSimple config)
           
 void setConfigPath(String configPath)
           
 void setLabel(String label)
           
 void setQueryFilterVal(String key, Object value, String uiKey, String uiLabel)
           
 void setReportName(String reportName)
           
 String toJsonString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected JsonSimple config

reportName

protected String reportName

label

protected String label

query

protected JsonObject query

configPath

protected String configPath

FLD_QUERY

protected static String FLD_QUERY

FLD_QUERY_FILTER

protected static String FLD_QUERY_FILTER

FLD_QUERY_FILTER_VALUE

protected static String FLD_QUERY_FILTER_VALUE

FLD_QUERY_FILTER_UIKEY

protected static String FLD_QUERY_FILTER_UIKEY

FLD_QUERY_FILTER_COND

protected static String FLD_QUERY_FILTER_COND

FLD_QUERY_FILTER_COND_AND

protected static String FLD_QUERY_FILTER_COND_AND

FLD_QUERY_FILTER_COND_OR

protected static String FLD_QUERY_FILTER_COND_OR
Constructor Detail

Report

public Report()

Report

public Report(String reportName,
              String label)

Report

public Report(File reportConfigFile)
       throws IOException
Throws:
IOException

Report

public Report(JsonSimple config)
Method Detail

setConfig

public void setConfig(JsonSimple config)

getQueryFilter

protected JsonObject getQueryFilter(String key)

setQueryFilterVal

public void setQueryFilterVal(String key,
                              Object value,
                              String uiKey,
                              String uiLabel)

getQueryFilterVal

public Object getQueryFilterVal(String key)

getQueryUiKey

public String getQueryUiKey(String key)

addAndQueryCond

public void addAndQueryCond(String filterName)

addOrQueryCond

public void addOrQueryCond(String filterName)

addQueryCond

protected void addQueryCond(String cond,
                            String filterName)

toJsonString

public String toJsonString()

getQueryAsString

public abstract String getQueryAsString()

getReportName

public String getReportName()

setReportName

public void setReportName(String reportName)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getConfigPath

public String getConfigPath()

setConfigPath

public void setConfigPath(String configPath)


Copyright © 2009-2014. All Rights Reserved.