Class TermRestriction<T>
java.lang.Object
com.atlassian.crowd.search.query.entity.restriction.TermRestriction<T>
- All Implemented Interfaces:
SearchRestriction,PropertyRestriction<T>
-
Constructor Summary
ConstructorsConstructorDescriptionTermRestriction(Property<T> property, MatchMode matchMode, T value) Constructs a restriction based on an entity property value and match mode.TermRestriction(Property<T> property, T value) -
Method Summary
-
Constructor Details
-
TermRestriction
Constructs a restriction based on an entity property value and match mode. The property should normally be one of the constants defined onUserTermKeysandGroupTermKeys.- Parameters:
property- the property to matchmatchMode- the method of matching (exact match, prefix, etc.)value- the value to match
-
TermRestriction
-
-
Method Details
-
getValue
Description copied from interface:PropertyRestrictionReturns the value to match against the property.- Specified by:
getValuein interfacePropertyRestriction<T>- Returns:
- value of type T to match against the property.
-
getProperty
Description copied from interface:PropertyRestrictionReturns the property to match on.- Specified by:
getPropertyin interfacePropertyRestriction<T>- Returns:
- Property object to match on.
-
getMatchMode
Description copied from interface:PropertyRestrictionReturns the mode to match a property.- Specified by:
getMatchModein interfacePropertyRestriction<T>- Returns:
- match mode
-
equals
-
hashCode
public int hashCode() -
toString
-