org.pentaho.platform.plugin.services.security.userrole.ldap.transform
Class StringToGrantedAuthority

java.lang.Object
  extended by org.pentaho.platform.plugin.services.security.userrole.ldap.transform.StringToGrantedAuthority
All Implemented Interfaces:
org.apache.commons.collections.Transformer

public class StringToGrantedAuthority
extends Object
implements org.apache.commons.collections.Transformer

Transforms a String into a GrantedAuthority. Can handle either a single String or a collection (or array) of String instances. Always returns a collection or array if collection or array was the input.

Transformer input: String instance, Collection of String instances, or array of String instances.

Transformer output: GrantedAuthority instance, Collection of GrantedAuthority instances, or array of GrantedAuthority instances.

Author:
mlowery

Constructor Summary
StringToGrantedAuthority()
           
 
Method Summary
 void setConvertToUpperCase(boolean convertToUpperCase)
           
 void setRolePrefix(String rolePrefix)
           
 Object transform(Object obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToGrantedAuthority

public StringToGrantedAuthority()
Method Detail

transform

public Object transform(Object obj)
Specified by:
transform in interface org.apache.commons.collections.Transformer

setConvertToUpperCase

public void setConvertToUpperCase(boolean convertToUpperCase)

setRolePrefix

public void setRolePrefix(String rolePrefix)