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

java.lang.Object
  extended by org.pentaho.platform.plugin.services.security.userrole.ldap.transform.ExtraRoles
All Implemented Interfaces:
org.apache.commons.collections.Transformer, org.springframework.beans.factory.InitializingBean

public class ExtraRoles
extends Object
implements org.apache.commons.collections.Transformer, org.springframework.beans.factory.InitializingBean

Adds the roles from extraRoles to the roles input into this transformer. The roles are added as strings so a subsequent transformer must convert them to GrantedAuthority instances.

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

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

Author:
mlowery

Constructor Summary
ExtraRoles()
           
 
Method Summary
 void afterPropertiesSet()
           
 Set getExtraRoles()
           
 void setExtraRoles(Set extraRoles)
           
 Object transform(Object obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtraRoles

public ExtraRoles()
Method Detail

transform

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

getExtraRoles

public Set getExtraRoles()

setExtraRoles

public void setExtraRoles(Set extraRoles)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception