Package org.frankframework.ldap
Class LdapFindGroupMembershipsPipe
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.pipes.AbstractPipe
org.frankframework.pipes.FixedForwardPipe
org.frankframework.ldap.AbstractLdapQueryPipe
org.frankframework.ldap.LdapFindGroupMembershipsPipe
- All Implemented Interfaces:
ICacheEnabled<String,,Set<String>> FrankElement,HasApplicationContext,HasName,HasTransactionAttribute,IConfigurable,IForwardTarget,IPipe,IScopeProvider,IWithParameters,NameAware,EventThrowing,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle
public class LdapFindGroupMembershipsPipe
extends AbstractLdapQueryPipe
implements ICacheEnabled<String,Set<String>>
Pipe that returns the memberships of a userDN. The input is a fullDn, of a user or a group.
Sample result:
<ldap>
<entry name="CN=xxyyzz,OU=Users,DC=domain,DC=ext">
<attributes>
<attribute>
<attribute name="memberOf" value="Extern"/>
<attribute name="departmentCode" value="358000"/>
<attribute name="organizationalHierarchy">
<item value="ou=zzyyxx"/>
<item value="ou=OPS&IT,ou=Group,ou=domain,o=ext"/>
</attribute>
<attribute name="givenName" value="Gerrit">
</attributes>
</entry>
<entry> .... </entry>
</ldap>
- Author:
- Gerrit van Brakel
-
Field Summary
Fields inherited from class org.frankframework.ldap.AbstractLdapQueryPipe
cf, exceptionForward, notFoundForwardFields inherited from class org.frankframework.pipes.AbstractPipe
parameterNamesMustBeUniqueFields inherited from class org.frankframework.core.TransactionAttributes
logFields inherited from interface org.frankframework.core.IPipe
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks for correct configuration of forward.doPipeWithException(Message message, PipeLineSession session) getCache()searchObjectForMultiValuedAttribute(String searchedDN) searchRecursivelyViaAttributes(String searchedDN) voidoptionalcachedefinitionvoidsetRecursiveSearch(boolean b) whentrue, the memberOf attribute is also searched in all the found membersvoidstart()Perform necessary action to start the pipe.voidstop()Perform necessary actions to stop thePipe.
For instance, closing JMS connections, DBMS connections etc.Methods inherited from class org.frankframework.ldap.AbstractLdapQueryPipe
doPipe, retrieveUrl, setAuthAlias, setBaseDN, setExceptionForwardName, setHost, setLdapProviderURL, setNotFoundForwardName, setPassword, setPort, setUsername, setUseSslMethods inherited from class org.frankframework.pipes.FixedForwardPipe
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipeMethods inherited from class org.frankframework.pipes.AbstractPipe
addForward, addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getParameterList, hasRegisteredForward, isRunning, registerEvent, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, sizeStatisticsEnabled, throwEventMethods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface org.frankframework.core.IForwardTarget
getNameMethods inherited from interface org.frankframework.core.IPipe
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getHideRegex, getLocker, getLogIntermediaryResults, getMaxThreads, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
-
Constructor Details
-
LdapFindGroupMembershipsPipe
public LdapFindGroupMembershipsPipe()
-
-
Method Details
-
configure
Description copied from class:FixedForwardPipeChecks for correct configuration of forward.- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classAbstractLdapQueryPipe- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:IPipePerform necessary action to start the pipe. This method is executed after theIConfigurable.configure()method, for each start and stop command of the adapter.- Specified by:
startin interfaceIPipe- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classAbstractPipe
-
stop
public void stop()Description copied from interface:IPipePerform necessary actions to stop thePipe.
For instance, closing JMS connections, DBMS connections etc.- Specified by:
stopin interfaceIPipe- Specified by:
stopin interfaceorg.springframework.context.Lifecycle- Overrides:
stopin classAbstractPipe
-
doPipeWithException
public PipeRunResult doPipeWithException(Message message, PipeLineSession session) throws PipeRunException - Specified by:
doPipeWithExceptionin classAbstractLdapQueryPipe- Throws:
PipeRunException
-
searchRecursivelyViaAttributes
- Throws:
NamingException
-
searchObjectForMultiValuedAttribute
- Throws:
NamingException
-
setCache
Description copied from interface:ICacheEnabledoptionalcachedefinition- Specified by:
setCachein interfaceICacheEnabled<String,Set<String>>
-
getCache
- Specified by:
getCachein interfaceICacheEnabled<String,Set<String>>
-
setRecursiveSearch
public void setRecursiveSearch(boolean b) whentrue, the memberOf attribute is also searched in all the found members- Default value
- true
-