Package org.frankframework.ldap
Class LdapFindMemberPipe
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.pipes.AbstractPipe
org.frankframework.pipes.FixedForwardPipe
org.frankframework.ldap.AbstractLdapQueryPipe
org.frankframework.ldap.LdapFindMemberPipe
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasTransactionAttribute,IConfigurable,IForwardTarget,IPipe,IScopeProvider,IWithParameters,NameAware,EventThrowing,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle
Pipe that checks if a specified dn exists as 'member' in another specified dn
in LDAP.
- Author:
- Peter Leeuwenburgh
-
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 TypeMethodDescriptiondoPipeWithException(Message message, PipeLineSession session) protected booleanfindMember(String host, int port, String dnSearchIn, boolean useSsl, String dnFind, boolean recursiveSearch) booleanvoidThe dn of the member to search for when the parameter dnFind is not setvoidsetDnSearchIn(String string) The dn of the group to search in when the parameter dnSearchIn is not setvoidsetRecursiveSearch(boolean b) whentrue, the member attribute is also searched in all the found membersMethods inherited from class org.frankframework.ldap.AbstractLdapQueryPipe
configure, 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, start, stop, 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
-
LdapFindMemberPipe
public LdapFindMemberPipe()
-
-
Method Details
-
doPipeWithException
public PipeRunResult doPipeWithException(Message message, PipeLineSession session) throws PipeRunException - Specified by:
doPipeWithExceptionin classAbstractLdapQueryPipe- Throws:
PipeRunException
-
findMember
protected boolean findMember(String host, int port, String dnSearchIn, boolean useSsl, String dnFind, boolean recursiveSearch) throws NamingException - Throws:
NamingException
-
setDnSearchIn
The dn of the group to search in when the parameter dnSearchIn is not set -
getDnSearchIn
-
setDnFind
The dn of the member to search for when the parameter dnFind is not set -
getDnFind
-
setRecursiveSearch
public void setRecursiveSearch(boolean b) whentrue, the member attribute is also searched in all the found members- Default value
- true
-
isRecursiveSearch
public boolean isRecursiveSearch()
-