BrightSide Workbench Full Report + Source Code
org.turro.skills.tags.SkillCloud Class Reference

Static Public Member Functions

static SkillSet getSkills (IConstructor constructor, String root, boolean user)
 
static void toggleSkills (IConstructor constructor, String root, boolean user)
 
static void resetContext (IConstructor constructor, String root)
 
static List< String > getIdentifiers (IConstructor constructor, String root, boolean user)
 
static List< Long > getIdentifiersAsLong (IConstructor constructor, String root, boolean user)
 
static boolean hasSelected (IConstructor constructor, String root, boolean user)
 

Detailed Description

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

Definition at line 32 of file SkillCloud.java.

Member Function Documentation

◆ getIdentifiers()

static List<String> org.turro.skills.tags.SkillCloud.getIdentifiers ( IConstructor  constructor,
String  root,
boolean  user 
)
static

Definition at line 61 of file SkillCloud.java.

61  {
62  SkillSet set = getSkillSet(constructor, root, user);
63  if(set != null) {
64  return set.getIdentifiers(root);
65  }
66  return Collections.EMPTY_LIST;
67  }
Here is the caller graph for this function:

◆ getIdentifiersAsLong()

static List<Long> org.turro.skills.tags.SkillCloud.getIdentifiersAsLong ( IConstructor  constructor,
String  root,
boolean  user 
)
static

Definition at line 69 of file SkillCloud.java.

69  {
70  return getIdentifiers(constructor, root, user).stream().map(s -> Long.valueOf(s)).collect(Collectors.toList());
71  }
static List< String > getIdentifiers(IConstructor constructor, String root, boolean user)
Definition: SkillCloud.java:61
Here is the call graph for this function:

◆ getSkills()

static SkillSet org.turro.skills.tags.SkillCloud.getSkills ( IConstructor  constructor,
String  root,
boolean  user 
)
static

Definition at line 36 of file SkillCloud.java.

36  {
37  SkillSet skills = getSkillSet(constructor, root, user);
38  if(skills == null) {
39  skills = SkillTags.getAvailables(root, user);
40  constructor.setSessionAttribute(getContextName(constructor, root, user), skills);
41  }
42  return skills;
43  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasSelected()

static boolean org.turro.skills.tags.SkillCloud.hasSelected ( IConstructor  constructor,
String  root,
boolean  user 
)
static

Definition at line 73 of file SkillCloud.java.

73  {
74  SkillSet set = getSkillSet(constructor, root, user);
75  if(set != null) {
76  return !(set.getSelected().isEmpty());
77  }
78  return false;
79  }

◆ resetContext()

static void org.turro.skills.tags.SkillCloud.resetContext ( IConstructor  constructor,
String  root 
)
static

Definition at line 56 of file SkillCloud.java.

56  {
57  constructor.removeSessionAttribute(getContextName(constructor, root, true));
58  constructor.removeSessionAttribute(getContextName(constructor, root, false));
59  }
Here is the call graph for this function:

◆ toggleSkills()

static void org.turro.skills.tags.SkillCloud.toggleSkills ( IConstructor  constructor,
String  root,
boolean  user 
)
static

Definition at line 45 of file SkillCloud.java.

45  {
46  KeyValueMap kvm = MarkerHelper.getObfuscatedParameters();
47  if(kvm != null && kvm.containsKey("skill")) {
48  SkillSet set = getSkillSet(constructor, root, user);
49  if(set != null) {
50  set.toggle(kvm.get("skill"));
51  set.markSiblingsFromSelection(root);
52  }
53  }
54  }
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: