PARAM_META
- as The Meta information to describe the input paramspublic class ReporterMeta<PARAM_META> extends Object implements Serializable
Constructor and Description |
---|
ReporterMeta() |
ReporterMeta(Reporter reporter) |
ReporterMeta(ReporterMeta reporterMeta) |
Modifier and Type | Method and Description |
---|---|
Map<Object,Object> |
getAttributes()
For each Column displayName in the Reporter define any specific attributes for presentation
Key is fieldName/Column Index and value could be a String, Transformer,PARAM_META type |
List<PARAM_META> |
getBulkActions()
Any Bulk actions to perform on the Report
|
Map<Integer,Object> |
getColumnToEntityValueMapping()
Each column position (starting @ 0) needs to be mapped to the entity name or a Transformer(entity) or even a FacetMeta
to tell the presentation layer which Column maps to which field / value(output from the
Transformer , in case on complex relations)
Additionally a FacetMeta (value object) can be Authorizable also |
String |
getDisplayName()
Display Name corresponding to the Reporter
|
Map<ExportType,ExportMeta> |
getExportableFormats()
The export process may require some additional information supplied by
ExportMeta
Map of Key is ExportType and Value of type ExportMeta |
String |
getId()
Handle to this ReporterMeta
|
List<PARAM_META> |
getInputParamsMetas()
The REPORTER may demand input parameters; we can define the input parameters and present them using
additional info from PARAM_META (like
FacetMeta )Example for a SEARCH PANEL to accept INPUT Search terms for "First Name": PARAM_META = com.neurosys.template.model.Template$FacetMeta <property name="name" value="0" /> <!-- Index in params array, since Entity is Object array type --> <property name="displayName" value="First Name" /> <property name="type" value="INPUT" /> <property name="submitTransformer"><bean class="com.neurosys.etl.common.transformers.PrefixSuffixTransformer"> <!-- To support LIKE clause --> <property name="prefix" value="%" /> <property name="suffix" value="%" /> |
ReporterMeta<PARAM_META> |
getNoParamsReporterMeta()
If
inputParamsMetas is not null; then by default to generate a Report params are needed. |
Class |
getRecordType()
What is the nature of the records returned.
|
Reporter |
getReporter()
The actual backend service / component responsible for Reporting
|
List<Object> |
getRowDecorators()
A Row Decorator mentions the fieldName(s)/Column(s) whose value will be used to change the state of the row, like highlight etc.
|
void |
setAttributes(Map<Object,Object> attributes)
For each Column displayName in the Reporter define any specific attributes for presentation
Key is fieldName/Column Index and value could be a String, Transformer,PARAM_META type |
void |
setBulkActions(List<PARAM_META> bulkActions)
Any Bulk actions to perform on the Report
|
void |
setColumnToEntityValueMapping(Map<Integer,Object> columnToEntityValueMapping)
Each column position (starting @ 0) needs to be mapped to the entity name or a Transformer(entity) or even a FacetMeta
to tell the presentation layer which Column maps to which field / value(output from the
Transformer , in case on complex relations)
Additionally a FacetMeta (value object) can be Authorizable also |
void |
setDisplayName(String displayName)
Display Name corresponding to the Reporter
|
void |
setExportableFormats(Map<ExportType,ExportMeta> exportableFormats)
The export process may require some additional information supplied by
ExportMeta
Map of Key is ExportType and Value of type ExportMeta |
void |
setId(String id)
Handle to this ReporterMeta
|
void |
setInputParamsMetas(List<PARAM_META> inputParamsMetas)
The REPORTER may demand input parameters; we can define the input parameters and present them using
additional info from PARAM_META (like
FacetMeta )Example for a SEARCH PANEL to accept INPUT Search terms for "First Name": PARAM_META = com.neurosys.template.model.Template$FacetMeta <property name="name" value="0" /> <!-- Index in params array, since Entity is Object array type --> <property name="displayName" value="First Name" /> <property name="type" value="INPUT" /> <property name="submitTransformer"><bean class="com.neurosys.etl.common.transformers.PrefixSuffixTransformer"> <!-- To support LIKE clause --> <property name="prefix" value="%" /> <property name="suffix" value="%" /> |
void |
setNoParamsReporterMeta(ReporterMeta<PARAM_META> noParamsReporterMeta)
If
inputParamsMetas is not null; then by default to generate a Report params are needed. |
void |
setRecordType(Class recordType)
What is the nature of the records returned.
|
void |
setReporter(Reporter reporter)
The actual backend service / component responsible for Reporting
|
void |
setRowDecorators(List<Object> rowDecorators)
A Row Decorator mentions the fieldName(s)/Column(s) whose value will be used to change the state of the row, like highlight etc.
|
public ReporterMeta()
public ReporterMeta(Reporter reporter)
public ReporterMeta(ReporterMeta reporterMeta)
public Map<ExportType,ExportMeta> getExportableFormats()
ExportMeta
Map
of Key is ExportType
and Value of type ExportMeta
public void setExportableFormats(Map<ExportType,ExportMeta> exportableFormats)
ExportMeta
Map
of Key is ExportType
and Value of type ExportMeta
public Map<Object,Object> getAttributes()
public void setAttributes(Map<Object,Object> attributes)
public List<Object> getRowDecorators()
public void setRowDecorators(List<Object> rowDecorators)
public Reporter getReporter()
public void setReporter(Reporter reporter)
public List<PARAM_META> getInputParamsMetas()
FacetMeta
)noParamsReporterMeta
public void setInputParamsMetas(List<PARAM_META> inputParamsMetas)
FacetMeta
)noParamsReporterMeta
public ReporterMeta<PARAM_META> getNoParamsReporterMeta()
inputParamsMetas
is not null; then by default to generate a Report params are needed.
However by setting this optional field we can present a Default Report that requires no params on init
to show an initial display.inputParamsMetas
public void setNoParamsReporterMeta(ReporterMeta<PARAM_META> noParamsReporterMeta)
inputParamsMetas
is not null; then by default to generate a Report params are needed.
However by setting this optional field we can present a Default Report that requires no params on init
to show an initial display.inputParamsMetas
public String getDisplayName()
public void setDisplayName(String displayName)
public String getId()
public void setId(String id)
public Map<Integer,Object> getColumnToEntityValueMapping()
Transformer
, in case on complex relations)
Authorizable
alsopublic void setColumnToEntityValueMapping(Map<Integer,Object> columnToEntityValueMapping)
Transformer
, in case on complex relations)
Authorizable
alsopublic Class getRecordType()
Reporter
public void setRecordType(Class recordType)
Reporter
public List<PARAM_META> getBulkActions()
public void setBulkActions(List<PARAM_META> bulkActions)
Copyright © 2018. All rights reserved.