com.atlassian.jira.jql.resolver
Class UserIndexInfoResolver

java.lang.Object
  extended by com.atlassian.jira.jql.resolver.UserIndexInfoResolver
All Implemented Interfaces:
IndexInfoResolver<com.opensymphony.user.User>

public class UserIndexInfoResolver
extends java.lang.Object
implements IndexInfoResolver<com.opensymphony.user.User>

Index resolver that can find the index values for users.

Since:
v4.0

Constructor Summary
UserIndexInfoResolver(NameResolver<com.opensymphony.user.User> userResolver)
           
 
Method Summary
 java.lang.String getIndexedValue(com.opensymphony.user.User user)
          Gets an indexed value from a domain object.
 java.util.List<java.lang.String> getIndexedValues(java.lang.Long rawValue)
          Provides the values in the index for the single value operand with the given Long value.
 java.util.List<java.lang.String> getIndexedValues(java.lang.String rawValue)
          Provides the values in the index for the operand with the given String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserIndexInfoResolver

public UserIndexInfoResolver(NameResolver<com.opensymphony.user.User> userResolver)
Method Detail

getIndexedValues

public java.util.List<java.lang.String> getIndexedValues(java.lang.String rawValue)
Description copied from interface: IndexInfoResolver
Provides the values in the index for the operand with the given String value.

Specified by:
getIndexedValues in interface IndexInfoResolver<com.opensymphony.user.User>
Parameters:
rawValue - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValues

public java.util.List<java.lang.String> getIndexedValues(java.lang.Long rawValue)
Description copied from interface: IndexInfoResolver
Provides the values in the index for the single value operand with the given Long value.

Specified by:
getIndexedValues in interface IndexInfoResolver<com.opensymphony.user.User>
Parameters:
rawValue - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValue

public java.lang.String getIndexedValue(com.opensymphony.user.User user)
Description copied from interface: IndexInfoResolver
Gets an indexed value from a domain object.

Specified by:
getIndexedValue in interface IndexInfoResolver<com.opensymphony.user.User>
Parameters:
user - the domain object. Does not accept null.
Returns:
the indexed value.


Copyright © 2002-2011 Atlassian. All Rights Reserved.