use of org.pentaho.platform.engine.security.SecurityParameterProvider in project pentaho-platform by pentaho.
the class MessageFormatterTest method makeParameterProviders.
private Map<String, IParameterProvider> makeParameterProviders(final IPentahoSession session) {
final Map<String, IParameterProvider> res = new HashMap<>();
res.put("jvm", new JVMParameterProvider());
res.put(SecurityParameterProvider.SCOPE_SECURITY, new SecurityParameterProvider(session));
return res;
}
use of org.pentaho.platform.engine.security.SecurityParameterProvider in project pentaho-platform by pentaho.
the class RuntimeContextTest method makeParameterProviders.
private Map<String, IParameterProvider> makeParameterProviders(final IPentahoSession session) {
final Map<String, IParameterProvider> res = new HashMap<>();
res.put("jvm", new JVMParameterProvider());
res.put(SecurityParameterProvider.SCOPE_SECURITY, new SecurityParameterProvider(session));
return res;
}
use of org.pentaho.platform.engine.security.SecurityParameterProvider in project pentaho-platform by pentaho.
the class SolutionEngine method init.
public void init(final IPentahoSession pSession) {
parameterProviders = new HashMap<String, IParameterProvider>();
this.session = pSession;
this.setParameterProvider(SolutionEngine.JVM_PARAMETER_PROVIDER, new JVMParameterProvider());
setForcePrompt(false);
// Provide the security parameter provider to the parameter provider map in the super class
SecurityParameterProvider provider = new SecurityParameterProvider(pSession);
this.setParameterProvider(SecurityParameterProvider.SCOPE_SECURITY, provider);
}
Aggregations