com.atlassian.crowd.search.ldap
Class LDAPQueryTranslaterImpl

java.lang.Object
  extended by com.atlassian.crowd.search.ldap.LDAPQueryTranslaterImpl
All Implemented Interfaces:
LDAPQueryTranslater
Direct Known Subclasses:
ActiveDirectoryQueryTranslaterImpl

public class LDAPQueryTranslaterImpl
extends Object
implements LDAPQueryTranslater

The LDAPQueryTranslater: - Does not support searching based on GroupTermKeys.GROUP_TYPE: this cannot exist as a search restriction. If it does, say hello to IllegalArgumentException. - Assumes that all groups and users are 'active' in the underlying directory implementation. Thus if a subsearch if made for an 'inactive' groups/users, that subsearch is returns nothing.


Constructor Summary
LDAPQueryTranslaterImpl()
           
 
Method Summary
 LDAPQuery asLDAPFilter(EntityQuery query, LDAPPropertiesMapper ldapPropertiesMapper)
           
protected  org.springframework.ldap.filter.Filter booleanTermRestrictionAsFilter(EntityDescriptor entityDescriptor, PropertyRestriction<Boolean> termRestriction, LDAPPropertiesMapper ldapPropertiesMapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPQueryTranslaterImpl

public LDAPQueryTranslaterImpl()
Method Detail

asLDAPFilter

public LDAPQuery asLDAPFilter(EntityQuery query,
                              LDAPPropertiesMapper ldapPropertiesMapper)
                       throws NullResultException
Specified by:
asLDAPFilter in interface LDAPQueryTranslater
Throws:
NullResultException

booleanTermRestrictionAsFilter

protected org.springframework.ldap.filter.Filter booleanTermRestrictionAsFilter(EntityDescriptor entityDescriptor,
                                                                                PropertyRestriction<Boolean> termRestriction,
                                                                                LDAPPropertiesMapper ldapPropertiesMapper)


Copyright © 2013 Atlassian. All Rights Reserved.