Search in sources :

Example 1 with SecurityParameterProvider

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;
}
Also used : IParameterProvider(org.pentaho.platform.api.engine.IParameterProvider) HashMap(java.util.HashMap) JVMParameterProvider(org.pentaho.platform.util.JVMParameterProvider) SecurityParameterProvider(org.pentaho.platform.engine.security.SecurityParameterProvider)

Example 2 with SecurityParameterProvider

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;
}
Also used : IParameterProvider(org.pentaho.platform.api.engine.IParameterProvider) HashMap(java.util.HashMap) JVMParameterProvider(org.pentaho.platform.util.JVMParameterProvider) Matchers.anyString(org.mockito.Matchers.anyString) SecurityParameterProvider(org.pentaho.platform.engine.security.SecurityParameterProvider)

Example 3 with SecurityParameterProvider

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);
}
Also used : IParameterProvider(org.pentaho.platform.api.engine.IParameterProvider) JVMParameterProvider(org.pentaho.platform.util.JVMParameterProvider) SecurityParameterProvider(org.pentaho.platform.engine.security.SecurityParameterProvider)

Aggregations

IParameterProvider (org.pentaho.platform.api.engine.IParameterProvider)3 SecurityParameterProvider (org.pentaho.platform.engine.security.SecurityParameterProvider)3 JVMParameterProvider (org.pentaho.platform.util.JVMParameterProvider)3 HashMap (java.util.HashMap)2 Matchers.anyString (org.mockito.Matchers.anyString)1