19 package org.turro.contacts.service;
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 SERVICE_CONTEXT =
"service-context";
63 return constructor.
isInRole(
"marketplace:new") ||
64 (Strings.isBlank(marketRoles) ? false : constructor.
isInRole(marketRoles));
69 return constructor.
isInRole(
"marketplace:new") ||
70 (Strings.isBlank(questionRoles) ? false : constructor.
isInRole(questionRoles));
75 return Arrays.asList(recipients.split(
"\\s*,\\s*"));
static List< String > getServiceTypeList()
static boolean getAllowQuestion(IConstructor constructor)
static boolean getAllowSingle()
static List< String > getServiceThematicList()
static boolean getAllowNew(IConstructor constructor)
static String getServiceContextAttribute(String attribute, String defaultValue)
String getAttribute(String attribute, String defaultValue)
String getAttribute(String attribute)
static List< String > getRecipients(IConstructor constructor)
static List< String > getContextPrefixedProperties(String context, String prefix)
static String getContextProperty(String context, String property)
boolean isInRole(String role)