org.pentaho.platform.plugin.services.security.userrole.ldap.transform
Class ExtraRoles
java.lang.Object
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
ExtraRoles
public ExtraRoles()
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