Package com.atlassian.crowd.search.ldap
Class ActiveDirectoryQueryTranslaterImpl
java.lang.Object
com.atlassian.crowd.search.ldap.LDAPQueryTranslaterImpl
com.atlassian.crowd.search.ldap.ActiveDirectoryQueryTranslaterImpl
- All Implemented Interfaces:
LDAPQueryTranslater
An specialisation of
LDAPQueryTranslaterImpl that can translate Active Directory
enabled/disabled user queries.- Since:
- v2.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.ldap.filter.FilterbooleanTermRestrictionAsFilter(EntityDescriptor entityDescriptor, PropertyRestriction<Boolean> termRestriction, LDAPPropertiesMapper ldapPropertiesMapper) protected org.springframework.ldap.filter.FiltergetStringTermEqualityFilter(String propertyName, PropertyRestriction<String> termRestriction) Returns a filter that applies byte String encoding to value when creating filter for ExternalId property.Methods inherited from class com.atlassian.crowd.search.ldap.LDAPQueryTranslaterImpl
asLDAPFilter
-
Constructor Details
-
ActiveDirectoryQueryTranslaterImpl
public ActiveDirectoryQueryTranslaterImpl()
-
-
Method Details
-
booleanTermRestrictionAsFilter
protected org.springframework.ldap.filter.Filter booleanTermRestrictionAsFilter(EntityDescriptor entityDescriptor, PropertyRestriction<Boolean> termRestriction, LDAPPropertiesMapper ldapPropertiesMapper) - Overrides:
booleanTermRestrictionAsFilterin classLDAPQueryTranslaterImpl
-
getStringTermEqualityFilter
protected org.springframework.ldap.filter.Filter getStringTermEqualityFilter(String propertyName, PropertyRestriction<String> termRestriction) Returns a filter that applies byte String encoding to value when creating filter for ExternalId property. When searching by ObjectGUID the ActiveDirectory expects the value to be in 'Byte String' form, without any additional encoding. In this case it's required to pass the PropertyRestriction containing String value of ObjectGUID. For every other property it returns a filter with regular encoding (delegates to superclass).- Overrides:
getStringTermEqualityFilterin classLDAPQueryTranslaterImpl- Parameters:
propertyName- attribute name to be queried in ADtermRestriction- PropertyRestriction containing the value that will be searched for- Returns:
- filter to be used in AD search
- See Also:
-