|
| AttachmentIndicator () |
|
void | initIndicator () |
|
void | prepareIndicator () |
|
void | generateSiblings () |
|
String | getRoot () |
|
List< IndicatorVariable > | getVariables () |
|
List< IndicatorVariable > | getAllVariables () |
|
IndicatorVariable | getVariable (String name) |
|
List< IndicatorVariable > | getAllRankingVariables (String root) |
|
List< IndicatorVariable > | getAllMatchingVariables (String root) |
|
double | getValue (IndicatorVariable variable, Object entity) |
|
double | getValue (IndicatorVariable variable, Object entity, String relatedPath) |
|
IndicatorResult | readIndicator (String storeClass, String indicator) |
|
void | preprocess (IndicatorVariable variable, IPreprocessor preprocessor, String entityRoot, String relatedRoot) |
|
void | postprocess (IndicatorVariable variable, IPreprocessor postprocessor, String entityRoot, String relatedRoot) |
|
Stream< String > | getEntityPaths (String root) |
|
Stream< GenericSiblings > | getSiblingPaths (String entityPath) |
|
Dao | getDao () |
|
boolean | itsMine (String root) |
|
boolean | itsMine (IndicatorVariable variable) |
|
|
void | initVariables () |
|
void | initExternalVariables () |
|
Dao | createDao () |
|
void | processRankingVariable (Dao dao, IPreprocessor preprocessor, IndicatorVariable variable, String entityRoot) |
|
void | processMatchingVariable (Dao dao, IPreprocessor preprocessor, IndicatorVariable variable, String entityRoot, String relatedRoot) |
|
void | addVariable (String name, VariableType type) |
|
void | addVariable (String name, VariableType type, boolean reversed) |
|
void | addVariable (String name, VariableType type, String avoid) |
|
void | addVariable (String name, boolean preprocess, VariableType type) |
|
void | addVariable (String name, boolean preprocess, VariableType type, boolean reversed) |
|
void | addVariable (String name, boolean preprocess, VariableType type, String avoid) |
|
void | addExternalVariable (String root, String name) |
|
String | getPath (Object entity) |
|
void | postprocessRankingVariable (Dao dao, IPreprocessor postprocessor, IndicatorVariable variable, String entityRoot) |
|
void | postprocessMatchingVariable (Dao dao, IPreprocessor postprocessor, IndicatorVariable variable, String entityRoot, String relatedRoot) |
|
◆ AttachmentIndicator()
org.turro.indicator.AttachmentIndicator.AttachmentIndicator |
( |
| ) |
|
◆ createDao()
Dao org.turro.indicator.AttachmentIndicator.createDao |
( |
| ) |
|
|
protected |
◆ initExternalVariables()
void org.turro.indicator.AttachmentIndicator.initExternalVariables |
( |
| ) |
|
|
protected |
◆ initVariables()
void org.turro.indicator.AttachmentIndicator.initVariables |
( |
| ) |
|
|
protected |
◆ processMatchingVariable()
void org.turro.indicator.AttachmentIndicator.processMatchingVariable |
( |
Dao |
dao, |
|
|
IPreprocessor |
preprocessor, |
|
|
IndicatorVariable |
variable, |
|
|
String |
entityRoot, |
|
|
String |
relatedRoot |
|
) |
| |
|
protected |
Reimplemented from org.turro.indicator.AbstractIndicator.
Definition at line 80 of file AttachmentIndicator.java.
81 WhereClause wc =
null;
82 if(
"contact".equals(relatedRoot)) {
83 switch(variable.getName()) {
85 wc = PreprocessClause.load(
"Attachment")
86 .setRankingRoot(entityRoot)
87 .setMatchingRoot(relatedRoot)
88 .setRankingField(
"path")
89 .setMatchingField(
"owner")
90 .setVariable(variable)
91 .setAggregate(
"count(id)")
97 try(Stream<GenericMatching> stream = dao.stream(GenericMatching.class, wc, 1000)) {
99 preprocessor.poolInstance(r.copyTo((IMatching) preprocessor.createInstance()));
101 preprocessor.finishPreprocessor();
◆ processRankingVariable()
Reimplemented from org.turro.indicator.AbstractIndicator.
Definition at line 57 of file AttachmentIndicator.java.
58 WhereClause wc =
null;
59 switch(variable.getName()) {
61 wc = PreprocessClause.load(
"Attachment")
62 .setRankingRoot(entityRoot)
63 .setRankingField(
"path")
64 .setVariable(variable)
65 .setAggregate(
"count(id)")
70 try(Stream<GenericRanking> stream = dao.stream(GenericRanking.class, wc, 1000)) {
72 preprocessor.poolInstance(r.copyTo((IRanking) preprocessor.createInstance()));
74 preprocessor.finishPreprocessor();
The documentation for this class was generated from the following file: