BrightSide Workbench Full Report + Source Code
org.turro.activity.ParticipationVM Class Reference

Public Member Functions

void init (@ExecutionArgParam("entityPath") String entityPath)
 
Object getEntityPath ()
 
void setEntityPath (@BindingParam("entityPath") String entityPath)
 
GroupsModel< IParticipation, Object, Object > getModel ()
 

Detailed Description

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

Definition at line 36 of file ParticipationVM.java.

Member Function Documentation

◆ getEntityPath()

Object org.turro.activity.ParticipationVM.getEntityPath ( )

Definition at line 48 of file ParticipationVM.java.

48  {
49  return entityPath;
50  }

◆ getModel()

GroupsModel<IParticipation, Object, Object> org.turro.activity.ParticipationVM.getModel ( )

Definition at line 58 of file ParticipationVM.java.

58  {
59  List<List<IParticipation>> data = new ArrayList<>();
60  List<String> headers = new ArrayList<>();
61  List<IParticipation> loading = null;
62 
63  String group = null;
64 
65  for(IParticipation ia : ParticipationCatchers.getParticipations(entityPath)) {
66  String current = ia.getCatcher().getDescription();
67  if(!(current.equals(group))) {
68  group = current;
69  headers.add(group);
70  loading = new ArrayList<>();
71  data.add(loading);
72  }
73  if(loading != null) {
74  loading.add(ia);
75  }
76  }
77 
78  return new SimpleGroupsModel<>(data, headers);
79  }
Here is the call graph for this function:

◆ init()

void org.turro.activity.ParticipationVM.init ( @ExecutionArgParam("entityPath") String  entityPath)

Definition at line 41 of file ParticipationVM.java.

41  {
42  if(entityPath != null) this.entityPath = entityPath;
43  if(this.entityPath == null) {
44  this.entityPath = (String) Executions.getCurrent().getAttribute("entityPath");
45  }
46  }

◆ setEntityPath()

void org.turro.activity.ParticipationVM.setEntityPath ( @BindingParam("entityPath") String  entityPath)

Definition at line 54 of file ParticipationVM.java.

54  {
55  this.entityPath = entityPath;
56  }

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