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

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

public class LDAPEntityQueryParser
extends java.lang.Object
implements EntityQueryParser


Field Summary
static java.lang.String AND
           
static java.lang.String CLOSE_PARAN
           
static java.lang.String EQ
           
static java.lang.String OPEN_PARAN
           
static java.lang.String OR
           
static java.lang.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.
 java.lang.StringBuffer parseQuery(BooleanQuery query)
           
 java.lang.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 java.lang.String OPEN_PARAN
See Also:
Constant Field Values

CLOSE_PARAN

public static final java.lang.String CLOSE_PARAN
See Also:
Constant Field Values

EQ

public static final java.lang.String EQ
See Also:
Constant Field Values

AND

public static final java.lang.String AND
See Also:
Constant Field Values

OR

public static final java.lang.String OR
See Also:
Constant Field Values

WILDCARD

public static final java.lang.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 java.lang.StringBuffer parseQuery(BooleanQuery query)
                                  throws EntityException
Throws:
EntityException

parseQuery

public java.lang.StringBuffer parseQuery(TermQuery q)
                                  throws EntityException
Throws:
EntityException


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