com.atlassian.user.impl.ldap.search.query
Class LDAPEntityQueryParser

java.lang.Object
  extended by com.atlassian.user.impl.ldap.search.query.LDAPEntityQueryParser
All Implemented Interfaces:
EntityQueryParser

public class LDAPEntityQueryParser
extends Object
implements EntityQueryParser


Field Summary
static String AND
           
static String CLOSE_PARAN
           
static String EQ
           
static String OPEN_PARAN
           
static String OR
           
static String WILDCARD
           
 
Constructor Summary
LDAPEntityQueryParser(LdapContextFactory repository, LDAPGroupAdaptor groupAdaptor, RepositoryIdentifier repositoryIdentifier, LDAPUserFactory userFactory, LdapSearchProperties searchProperties, LdapMembershipProperties membershipProperties, LdapFilterFactory filterFactory)
           
 
Method Summary
 SearchResult findGroups(Query query)
          Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..
 SearchResult findGroups(Query query, QueryContext context)
          Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.
 SearchResult findUsers(Query query)
          Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..
 SearchResult findUsers(Query query, QueryContext context)
          Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.
 StringBuffer parseQuery(BooleanQuery query)
           
 StringBuffer parseQuery(TermQuery q)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_PARAN

public static final String OPEN_PARAN
See Also:
Constant Field Values

CLOSE_PARAN

public static final String CLOSE_PARAN
See Also:
Constant Field Values

EQ

public static final String EQ
See Also:
Constant Field Values

AND

public static final String AND
See Also:
Constant Field Values

OR

public static final String OR
See Also:
Constant Field Values

WILDCARD

public static final String WILDCARD
See Also:
Constant Field Values
Constructor Detail

LDAPEntityQueryParser

public LDAPEntityQueryParser(LdapContextFactory repository,
                             LDAPGroupAdaptor groupAdaptor,
                             RepositoryIdentifier repositoryIdentifier,
                             LDAPUserFactory userFactory,
                             LdapSearchProperties searchProperties,
                             LdapMembershipProperties membershipProperties,
                             LdapFilterFactory filterFactory)
Method Detail

findUsers

public SearchResult findUsers(Query query)
                       throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..

Specified by:
findUsers in interface EntityQueryParser
Throws:
EntityException

findGroups

public SearchResult findGroups(Query query)
                        throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the the entityQueryParser can access..

Specified by:
findGroups in interface EntityQueryParser
Throws:
EntityException

findUsers

public SearchResult findUsers(Query query,
                              QueryContext context)
                       throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.

Specified by:
findUsers in interface EntityQueryParser
Returns:
returns the search result or null if this entity query parser is out of scope of the context
Throws:
EntityException

findGroups

public SearchResult findGroups(Query query,
                               QueryContext context)
                        throws EntityException
Description copied from interface: EntityQueryParser
Generates a SearchResult object holding results for each RepositoryIdentifier the entityQueryParser has been instructed, via a QueryContext to search.

Specified by:
findGroups in interface EntityQueryParser
Throws:
EntityException

parseQuery

public StringBuffer parseQuery(BooleanQuery query)
                        throws EntityException
Throws:
EntityException

parseQuery

public StringBuffer parseQuery(TermQuery q)
                        throws EntityException
Throws:
EntityException


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.