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>> HasTransactionAttribute
,IConfigurable
,IConfigurationAware
,IForwardTarget
,INamedObject
,IPipe
,IScopeProvider
,IWithParameters
,EventThrowing
,HasStatistics
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
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:
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, notFoundForward
Fields inherited from class org.frankframework.pipes.AbstractPipe
parameterNamesMustBeUnique
Fields inherited from class org.frankframework.core.TransactionAttributes
log
Fields inherited from interface org.frankframework.core.IPipe
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checks for correct configuration of forwarddoPipeWithException
(Message message, PipeLineSession session) getCache()
boolean
searchObjectForMultiValuedAttribute
(String searchedDN) searchRecursivelyViaAttributes
(String searchedDN) void
optionalcache
definitionvoid
setRecursiveSearch
(boolean b) whentrue
, the memberOf attribute is also searched in all the found membersvoid
start()
Perform necessary action to start the pipe.void
stop()
Perform necessary actions to stop thePipe
.
For instance, closing JMS connections, DBMS connections etc.Methods inherited from class org.frankframework.ldap.AbstractLdapQueryPipe
doPipe, getAuthAlias, getBaseDN, getExceptionForwardName, getHost, getLdapProviderURL, getNotFoundForwardName, getPassword, getPort, getUsername, isUseSsl, retrieveUrl, setAuthAlias, setBaseDN, setExceptionForwardName, setHost, setLdapProviderURL, setNotFoundForwardName, setPassword, setPort, setUsername, setUseSsl
Methods inherited from class org.frankframework.pipes.FixedForwardPipe
getIfParam, getIfValue, getOnlyIfSessionKey, getOnlyIfValue, getParameterValue, getSuccessForward, getUnlessSessionKey, getUnlessValue, isSkipOnEmptyInput, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
Methods inherited from class org.frankframework.pipes.AbstractPipe
addForward, addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getApplicationContext, getChompCharSize, getConfigurationClassLoader, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getEventSourceName, getForwards, getGetInputFromFixedValue, getGetInputFromSessionKey, getHideRegex, getLocker, getLogIntermediaryResults, getMaxThreads, getName, getParameterList, getPipeLine, getSecLogSessionKeys, getStoreResultInSessionKey, hasRegisteredForward, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, registerEvent, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setEventPublisher, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPipeLine, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, sizeStatisticsEnabled, throwEvent
Methods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, getTransactionAttribute, getTransactionTimeout, getTxDef, isTransacted, isTransacted, setTransacted, setTransactionAttribute, setTransactionTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.core.IPipe
throwEvent
-
Constructor Details
-
LdapFindGroupMembershipsPipe
public LdapFindGroupMembershipsPipe()
-
-
Method Details
-
configure
Description copied from class:FixedForwardPipe
checks for correct configuration of forward- Specified by:
configure
in interfaceIConfigurable
- Specified by:
configure
in interfaceIPipe
- Overrides:
configure
in classAbstractLdapQueryPipe
- Throws:
ConfigurationException
-
start
Description copied from interface:IPipe
Perform necessary action to start the pipe. This method is executed after theIPipe.configure()
method, for each start and stop command of the adapter.- Specified by:
start
in interfaceIPipe
- Overrides:
start
in classAbstractPipe
- Throws:
PipeStartException
-
stop
public void stop()Description copied from interface:IPipe
Perform necessary actions to stop thePipe
.
For instance, closing JMS connections, DBMS connections etc.- Specified by:
stop
in interfaceIPipe
- Overrides:
stop
in classAbstractPipe
-
doPipeWithException
public PipeRunResult doPipeWithException(Message message, PipeLineSession session) throws PipeRunException - Specified by:
doPipeWithException
in classAbstractLdapQueryPipe
- Throws:
PipeRunException
-
searchRecursivelyViaAttributes
- Throws:
NamingException
-
searchObjectForMultiValuedAttribute
- Throws:
NamingException
-
setCache
Description copied from interface:ICacheEnabled
optionalcache
definition- Specified by:
setCache
in interfaceICacheEnabled<String,
Set<String>>
-
getCache
- Specified by:
getCache
in 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
-
isRecursiveSearch
public boolean isRecursiveSearch()
-