BrightSide Workbench Full Report + Source Code
org.turro.indicator.model.IndicatorsVM Class Reference

Public Member Functions

IndicatorResult getRankingIndicator (String jpaClass, String indicatorClass, String entityPath, String indicator)
 
List< String > getRankingVariables (String indicatorClass)
 
Map< URI, Map< String, List< String > > > getRankingModel ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file IndicatorsVM.java.

Member Function Documentation

◆ getRankingIndicator()

IndicatorResult org.turro.indicator.model.IndicatorsVM.getRankingIndicator ( String  jpaClass,
String  indicatorClass,
String  entityPath,
String  indicator 
)

Definition at line 36 of file IndicatorsVM.java.

37  {
38  return Indicators.readIndicator(jpaClass, indicatorClass, entityPath, null, indicator);
39  }
Here is the call graph for this function:

◆ getRankingModel()

Map<URI, Map<String, List<String> > > org.turro.indicator.model.IndicatorsVM.getRankingModel ( )

Definition at line 48 of file IndicatorsVM.java.

48  {
49  return GroupedClasses.group()
50  .bySuper("jpa", RankingEntity.class.getName())
51  .byAnnotation("indicator", ElephantIndicator.class.getName())
52  .getURIs();
53  }

◆ getRankingVariables()

List<String> org.turro.indicator.model.IndicatorsVM.getRankingVariables ( String  indicatorClass)

Definition at line 41 of file IndicatorsVM.java.

41  {
42  return Indicators.getVariables(indicatorClass).stream()
43  .filter(v -> v.getType().isRanking())
44  .map(v -> v.getName())
45  .toList();
46  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: