|
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) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file SkillCloud.java.
◆ 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.
62 SkillSet
set = getSkillSet(constructor, root, user);
64 return set.getIdentifiers(root);
66 return Collections.EMPTY_LIST;
◆ 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.
70 return getIdentifiers(constructor, root, user).stream().map(s -> Long.valueOf(s)).collect(Collectors.toList());
◆ getSkills()
static SkillSet org.turro.skills.tags.SkillCloud.getSkills |
( |
IConstructor |
constructor, |
|
|
String |
root, |
|
|
boolean |
user |
|
) |
| |
|
static |
Definition at line 36 of file SkillCloud.java.
37 SkillSet skills = getSkillSet(constructor, root, user);
39 skills = SkillTags.getAvailables(root, user);
40 constructor.setSessionAttribute(getContextName(constructor, root, user), skills);
◆ hasSelected()
static boolean org.turro.skills.tags.SkillCloud.hasSelected |
( |
IConstructor |
constructor, |
|
|
String |
root, |
|
|
boolean |
user |
|
) |
| |
|
static |
Definition at line 73 of file SkillCloud.java.
74 SkillSet
set = getSkillSet(constructor, root, user);
76 return !(
set.getSelected().isEmpty());
◆ resetContext()
static void org.turro.skills.tags.SkillCloud.resetContext |
( |
IConstructor |
constructor, |
|
|
String |
root |
|
) |
| |
|
static |
Definition at line 56 of file SkillCloud.java.
57 constructor.removeSessionAttribute(getContextName(constructor, root,
true));
58 constructor.removeSessionAttribute(getContextName(constructor, root,
false));
◆ toggleSkills()
static void org.turro.skills.tags.SkillCloud.toggleSkills |
( |
IConstructor |
constructor, |
|
|
String |
root, |
|
|
boolean |
user |
|
) |
| |
|
static |
Definition at line 45 of file SkillCloud.java.
46 KeyValueMap kvm = MarkerHelper.getObfuscatedParameters();
47 if(kvm !=
null && kvm.containsKey(
"skill")) {
48 SkillSet
set = getSkillSet(constructor, root, user);
50 set.toggle(kvm.get(
"skill"));
51 set.markSiblingsFromSelection(root);
The documentation for this class was generated from the following file: