PDA

View Full Version : Security options



tlev
11-15-2007, 12:36 PM
I know that you can overwrite the userDetails class to include other variables, but how do you go and call these other variables in an xaction? For example you can get the user name on an xaction by simply typing "user".

mlowery
11-16-2007, 10:59 AM
Here's one solution:

Since you're already modifying code, go ahead and modify or extend com.pentaho.security.SecurityParameterProvider. This class provides security-related settings that can be read in JavaScript rules. See the Pentaho wiki (http://wiki.pentaho.org/display/PentahoDoc/Using+Security+from+Action+Sequences) for more on this subject. Once you've exposed your organization-specific security fields in SecurityParameterProvider, you can access them in JavaScript rules.