BrightSide Workbench Full Report + Source Code
org.turro.web.funnel.model.FunnelVertices Class Reference

Public Member Functions

FunnelVertex current ()
 
FunnelVertex previous ()
 
Set< FunnelVertextargets ()
 
FunnelVertex currentTarget ()
 
Set< FunnelVertexsolutions ()
 
FunnelVertex currentSolution ()
 
Set< FunnelVertexservices ()
 
FunnelVertex currentService ()
 
Set< FunnelVertexnexts ()
 
Set< WebGoalgoals ()
 
Set< WebLinkexternals ()
 
FunnelVertex getVertex (String webTag)
 
WebGoal getGoal (String goalAction)
 
Set< FunnelVertexsiblings ()
 
FunnelVertices bySelection (boolean value)
 

Static Public Member Functions

static FunnelVertices load (IConstructor constructor)
 

Detailed Description

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

Definition at line 40 of file FunnelVertices.java.

Member Function Documentation

◆ bySelection()

FunnelVertices org.turro.web.funnel.model.FunnelVertices.bySelection ( boolean  value)

Definition at line 136 of file FunnelVertices.java.

136  {
137  useTags = value;
138  return this;
139  }
Here is the caller graph for this function:

◆ current()

FunnelVertex org.turro.web.funnel.model.FunnelVertices.current ( )

Definition at line 42 of file FunnelVertices.java.

42  {
43  return graph.getVertex(sessionTags.current());
44  }
FunnelVertex getVertex(String webTag)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentService()

FunnelVertex org.turro.web.funnel.model.FunnelVertices.currentService ( )

Definition at line 82 of file FunnelVertices.java.

82  {
83  return currentOf(WebItemType.SERVICE);
84  }
Here is the caller graph for this function:

◆ currentSolution()

FunnelVertex org.turro.web.funnel.model.FunnelVertices.currentSolution ( )

Definition at line 70 of file FunnelVertices.java.

70  {
71  return currentOf(WebItemType.SOLUTION);
72  }
Here is the caller graph for this function:

◆ currentTarget()

FunnelVertex org.turro.web.funnel.model.FunnelVertices.currentTarget ( )

Definition at line 58 of file FunnelVertices.java.

58  {
59  return currentOf(WebItemType.TARGET);
60  }
Here is the caller graph for this function:

◆ externals()

Set<WebLink> org.turro.web.funnel.model.FunnelVertices.externals ( )

Definition at line 102 of file FunnelVertices.java.

102  {
103  FunnelVertex vertex = current();
104  if(vertex != null) {
105  return current().getItem().getExternalLinks();
106  }
107  return null;
108  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGoal()

WebGoal org.turro.web.funnel.model.FunnelVertices.getGoal ( String  goalAction)

Definition at line 114 of file FunnelVertices.java.

114  {
115  return graph.getGoal(goalAction);
116  }
WebGoal getGoal(String goalAction)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVertex()

FunnelVertex org.turro.web.funnel.model.FunnelVertices.getVertex ( String  webTag)

Definition at line 110 of file FunnelVertices.java.

110  {
111  return graph.getVertex(webTag);
112  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ goals()

Set<WebGoal> org.turro.web.funnel.model.FunnelVertices.goals ( )

Definition at line 94 of file FunnelVertices.java.

94  {
95  FunnelVertex vertex = current();
96  if(vertex != null) {
97  return current().getItem().getGoals();
98  }
99  return null;
100  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

static FunnelVertices org.turro.web.funnel.model.FunnelVertices.load ( IConstructor  constructor)
static

Definition at line 155 of file FunnelVertices.java.

155  {
156  return new FunnelVertices(constructor);
157  }
Here is the caller graph for this function:

◆ nexts()

Set<FunnelVertex> org.turro.web.funnel.model.FunnelVertices.nexts ( )

Definition at line 86 of file FunnelVertices.java.

86  {
87  FunnelVertex vertex = current();
88  if(vertex != null) {
89  return current().getNexts();
90  }
91  return null;
92  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ previous()

FunnelVertex org.turro.web.funnel.model.FunnelVertices.previous ( )

Definition at line 46 of file FunnelVertices.java.

46  {
47  return graph.getVertex(sessionTags.previous());
48  }
Here is the call graph for this function:

◆ services()

Set<FunnelVertex> org.turro.web.funnel.model.FunnelVertices.services ( )

Definition at line 74 of file FunnelVertices.java.

74  {
75  if(useTags) {
76  return current().getServices();
77  } else {
78  return graph.getServices();
79  }
80  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ siblings()

Set<FunnelVertex> org.turro.web.funnel.model.FunnelVertices.siblings ( )

Definition at line 118 of file FunnelVertices.java.

118  {
119  final FunnelVertex vertex = current();
120  return switch(vertex.getActingType()) {
121  case TARGET -> targets().stream()
122  .filter(v -> !v.equals(vertex))
123  .collect(Collectors.toCollection(TreeSet::new));
124  case SOLUTION -> currentTarget().getSolutions().stream()
125  .filter(v -> !v.equals(vertex))
126  .collect(Collectors.toCollection(TreeSet::new));
127  case SERVICE -> currentSolution().getServices().stream()
128  .filter(v -> !v.equals(vertex))
129  .collect(Collectors.toCollection(TreeSet::new));
130  default -> Collections.EMPTY_SET;
131  };
132  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ solutions()

Set<FunnelVertex> org.turro.web.funnel.model.FunnelVertices.solutions ( )

Definition at line 62 of file FunnelVertices.java.

62  {
63  if(useTags) {
64  return current().getSolutions();
65  } else {
66  return graph.getSolutions();
67  }
68  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ targets()

Set<FunnelVertex> org.turro.web.funnel.model.FunnelVertices.targets ( )

Definition at line 50 of file FunnelVertices.java.

50  {
51  if(useTags) {
52  return current().getTargets();
53  } else {
54  return graph.getTargets();
55  }
56  }
Here is the call graph for this function:
Here is the caller graph for this function:

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