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

java.lang.Object
  extended by org.pentaho.platform.plugin.services.security.userrole.ldap.transform.GrantedAuthorityToString

public class GrantedAuthorityToString
extends Object

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

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

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

Author:
mlowery

Constructor Summary
GrantedAuthorityToString()
           
 
Method Summary
 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

GrantedAuthorityToString

public GrantedAuthorityToString()
Method Detail

transform

public Object transform(Object obj)

setRolePrefix

public void setRolePrefix(String rolePrefix)