public class ExtractUserGroupTranslator extends CollectionValueTranslator
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
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtractUserGroupTranslator.Modifiers |
static class |
ExtractUserGroupTranslator.UserGroupTranslator |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
groupid |
| Constructor and Description |
|---|
ExtractUserGroupTranslator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
importValue(java.lang.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, wasUnresolvedpublic void init(StandardColumnDescriptor columnDescriptor)
AbstractValueTranslatorinit in class CollectionValueTranslatorcolumnDescriptor - descriptor where the value to translate belongs topublic java.lang.Object importValue(java.lang.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 © 2018 SAP SE. All Rights Reserved.