Class ExtractUserGroupTranslator


public class ExtractUserGroupTranslator extends CollectionValueTranslator
This translator adds the current user to a principalgroup, which will be defined by the distinguishedname of this group!

Schematic query: SELECT {PK} FROM {PrincipalGroup} WHERE {dn} = ?value // CAUTION: The parmeter {dn} could be replaced by using the modifier grouid="foo"

The value of '?value' will be generated from the 'dn' of the current user !!!

Sample 'configuration.xml' entry:

Employee organizationalPerson ... memberOf groups (dn)[translator=de.hybris.platform.ldap.impex.ExtractUserGroupTranslator, groupid=dn] ...

  • Field Details

    • groupid

      protected static String groupid
  • Constructor Details

    • ExtractUserGroupTranslator

      public ExtractUserGroupTranslator()
  • Method Details