public class ActiveDirectoryGroupCollectionTranslator extends CollectionValueTranslator
PrincipalGroup, which will be defined by the
distinguishedname of this group!SELECT {PK} FROM {PrincipalGroup} WHERE {dn} = ?value // CAUTION: The parameter {dn}
could be replaced by using the modifier groupid="foo".
<code>Employee</code>
<objectclasses>
<objectclass>organizationalPerson</objectclass>
</objectclasses>
...
<attributes>
<attribute>
<ldap>memberOf</ldap>
<hybris>groups</hybris>
<impex>(dn)[translator=de.hybris.platform.ldap.impex.ActiveDirectoryGroupCollectionTranslator, groupid=dn]</impex>
</attribute>
...
| Modifier and Type | Class and Description |
|---|---|
static interface |
ActiveDirectoryGroupCollectionTranslator.Modifiers |
static class |
ActiveDirectoryGroupCollectionTranslator.PrincipalGroupTranslator |
| Constructor and Description |
|---|
ActiveDirectoryGroupCollectionTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getGroupId() |
Object |
importValue(String valueExpr,
Item forItem)
Translates a tokenized csv value for import usage.
|
void |
init(StandardColumnDescriptor columnDescriptor)
Called once per header creation to allow configuring this translator using column modifiers etc.
|
exportValue, getCollectionValueDelimiter, getElementTranslator, isDelimiter, isEmpty, joinAndEscape, processItem, processItems, splitAndUnescape, validateclearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, warn, wasEmpty, wasUnresolvedprotected static String groupid
public ActiveDirectoryGroupCollectionTranslator()
protected static String getGroupId()
public void init(StandardColumnDescriptor columnDescriptor)
AbstractValueTranslatorinit in class CollectionValueTranslatorcolumnDescriptor - descriptor where the value to translate belongs topublic Object importValue(String valueExpr, Item forItem) throws JaloInvalidParameterException
AbstractValueTranslatorimportValue in class CollectionValueTranslatorvalueExpr - expression to translateforItem - the target item in case it already exist, null otherwise (for partOf attributes!)JaloInvalidParameterException - value can not be translated with this translator or is invalidCopyright © 2017 SAP SE. All Rights Reserved.