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

Static Public Member Functions

static ArrayList< IParticipationgetParticipations (String entityPath)
 
static void doDelete (Object entity)
 
static void doDelete (String entityPath)
 
static void onChange (Object entity)
 
static void onDelete (Object entity)
 

Detailed Description

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

Definition at line 31 of file ParticipationCatchers.java.

Member Function Documentation

◆ doDelete() [1/2]

static void org.turro.activity.ParticipationCatchers.doDelete ( Object  entity)
static

Definition at line 46 of file ParticipationCatchers.java.

46  {
47  doDelete(Entities.getController(entity).getPath());
48  }
Here is the call graph for this function:

◆ doDelete() [2/2]

static void org.turro.activity.ParticipationCatchers.doDelete ( String  entityPath)
static

Definition at line 50 of file ParticipationCatchers.java.

50  {
51  getParticipations(entityPath).forEach((iCatcher) -> {
52  iCatcher.doDelete();
53  });
54  }
static ArrayList< IParticipation > getParticipations(String entityPath)
Here is the call graph for this function:

◆ getParticipations()

static ArrayList<IParticipation> org.turro.activity.ParticipationCatchers.getParticipations ( String  entityPath)
static

Definition at line 35 of file ParticipationCatchers.java.

35  {
36  ArrayList<IParticipation> activities = new ArrayList<>();
37  if(!Strings.isBlank(entityPath)) {
38  Path path = new Path(entityPath);
39  Instances.cached().byAnnotation(ParticipationCatcher.class, IParticipationCatcher.class).forEach((iCatcher) -> {
40  activities.addAll(iCatcher.getParticipations(path));
41  });
42  }
43  return activities;
44  }
Here is the caller graph for this function:

◆ onChange()

static void org.turro.activity.ParticipationCatchers.onChange ( Object  entity)
static

Definition at line 56 of file ParticipationCatchers.java.

56  {
57  Instances.cached().byAnnotation(ParticipationCatcher.class, IParticipationCatcher.class).forEach((iCatcher) -> {
58  iCatcher.onChange(entity);
59  });
60  }
Here is the caller graph for this function:

◆ onDelete()

static void org.turro.activity.ParticipationCatchers.onDelete ( Object  entity)
static

Definition at line 62 of file ParticipationCatchers.java.

62  {
63  Instances.cached().byAnnotation(ParticipationCatcher.class, IParticipationCatcher.class).forEach((iCatcher) -> {
64  iCatcher.onDelete(entity);
65  });
66  }

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