19 package org.turro.students;
21 import java.util.List;
22 import org.turro.string.Strings;
23 import org.turro.elephant.context.ElephantProperties;
24 import org.turro.elephant.context.IConstructor;
25 import org.turro.sql.SqlClause;
26 import org.turro.students.db.StudentsPU;
27 import org.turro.students.entities.TalentCategory;
39 public String
getAttribute(String attribute, String defaultValue) {
45 private static final String CHALLENGE_CONTEXT =
"challenge-context";
53 return Strings.isBlank(challengeRoles) ? false : constructor.
isInRole(challengeRoles);
61 return SqlClause.select(
"tc").from(
"TalentCategory tc")
static String getContextProperty(String context, String property)
static String getAllowedRoots(IConstructor constructor)
static List< TalentCategory > getTalentCategories(IConstructor constructor)
String getAttribute(String attribute, String defaultValue)
static String getChallengeContextAttribute(String attribute, String defaultValue)
static String getDossierCategories(IConstructor constructor)
static boolean getAllowNew(IConstructor constructor)
String getAttribute(String attribute)
boolean isInRole(String role)