BrightSide Workbench Full Report + Source Code
org.turro.ranking.Rankings Class Reference

Static Public Member Functions

static void process ()
 
static void processFor (Object entity)
 
static void addJoin (WhereClause wc, String table, String entityRoot, String entityId, String sortOrder)
 
static String getOrdering ()
 

Detailed Description

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

Definition at line 30 of file Rankings.java.

Member Function Documentation

◆ addJoin()

static void org.turro.ranking.Rankings.addJoin ( WhereClause  wc,
String  table,
String  entityRoot,
String  entityId,
String  sortOrder 
)
static

Definition at line 46 of file Rankings.java.

46  {
47  String entityPath = "concat('/" + entityRoot + "/', " + entityRoot + "." + entityId + ")";
48  wc.addClause("left outer join " + table + " ranking on ranking.entityPath = " + entityPath + " and ranking.concept = :rankconcept");
49  wc.addNamedValue("rankconcept", Strings.isBlank(sortOrder) ? "*" : sortOrder);
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOrdering()

static String org.turro.ranking.Rankings.getOrdering ( )
static

Definition at line 52 of file Rankings.java.

52  {
53  return "ranking.ranking desc";
54  }
Here is the caller graph for this function:

◆ process()

static void org.turro.ranking.Rankings.process ( )
static

Definition at line 32 of file Rankings.java.

32  {
33  for(IProcess process : Instances.cached().byAnnotation(ElephantRanking.class, IProcess.class)) {
34  process.startProcess();
35  }
36  }
Here is the caller graph for this function:

◆ processFor()

static void org.turro.ranking.Rankings.processFor ( Object  entity)
static

Definition at line 38 of file Rankings.java.

38  {
39  for(IProcess process : Instances.cached().byAnnotation(ElephantRanking.class, IProcess.class)) {
40  if(process.itsMine(entity)) {
41  process.startProcessFor(entity);
42  }
43  }
44  }
Here is the call graph for this function:

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