19 package org.turro.jobboard;
21 import java.util.Arrays;
22 import java.util.List;
23 import org.turro.string.Strings;
24 import org.turro.elephant.context.ElephantProperties;
25 import org.turro.elephant.context.IConstructor;
37 public String
getAttribute(String attribute, String defaultValue) {
43 private static final String PRACTICAL_WORK_CONTEXT =
"practicalwork-context";
59 return (Strings.isBlank(newRoles) ?
false : constructor.
isInRole(newRoles));
64 return (Strings.isBlank(questionRoles) ?
false : constructor.
isInRole(questionRoles));
69 return Arrays.asList(recipients.split(
"\\s*,\\s*"));
static List< String > getContextPrefixedProperties(String context, String prefix)
static String getContextProperty(String context, String property)
static String getPracticalWorkContextAttribute(String attribute, String defaultValue)
static boolean getAllowSingle()
String getAttribute(String attribute)
static boolean getAllowNew(IConstructor constructor)
String getAttribute(String attribute, String defaultValue)
static List< String > getPracticalWorkTypeList()
static boolean getAllowQuestion(IConstructor constructor)
static List< String > getRecipients(IConstructor constructor)
boolean isInRole(String role)