19 package org.turro.skills.tags;
21 import java.util.Collections;
22 import java.util.List;
23 import java.util.stream.Collectors;
24 import org.turro.collections.KeyValueMap;
25 import org.turro.elephant.context.IConstructor;
26 import org.turro.marker.MarkerHelper;
34 private static final String SKILLS_CONTEXT =
"skill-cloud-ctx";
37 SkillSet skills = getSkillSet(constructor, root, user);
47 if(kvm !=
null && kvm.containsKey(
"skill")) {
48 SkillSet set = getSkillSet(constructor, root, user);
50 set.toggle(kvm.get(
"skill"));
51 set.markSiblingsFromSelection(root);
62 SkillSet set = getSkillSet(constructor, root, user);
64 return set.getIdentifiers(root);
66 return Collections.EMPTY_LIST;
70 return getIdentifiers(constructor, root, user).stream().map(s -> Long.valueOf(s)).collect(Collectors.toList());
74 SkillSet set = getSkillSet(constructor, root, user);
76 return !(
set.getSelected().isEmpty());
85 private static String getContextName(IConstructor constructor, String root,
boolean user) {
86 return SKILLS_CONTEXT +
"-" + root +
"-" + (user ?
"user" :
"company");
static KeyValueMap getObfuscatedParameters()
void setSessionAttribute(String key, Object value)
void removeSessionAttribute(String key)
Object getSessionAttribute(String key)