com.atlassian.crowd.search.builder
Class Restriction.RestrictionWithProperty<T>

java.lang.Object
  extended by com.atlassian.crowd.search.builder.Restriction.RestrictionWithProperty<T>
Enclosing class:
Restriction

public static class Restriction.RestrictionWithProperty<T>
extends Object


Constructor Summary
Restriction.RestrictionWithProperty(Property<T> property)
           
 
Method Summary
 PropertyRestriction<T> containing(T value)
          Returns a property restriction that is only satisfied if the value of the property contains the given value.
 PropertyRestriction<T> exactlyMatching(T value)
          Returns a property restriction that is only satisfied if the value of the property exactly matches the given value.
 PropertyRestriction<T> greaterThan(T value)
          Returns a property restriction that is only satisfied if the value of the property is greater than the given value.
 PropertyRestriction<T> isNull()
          Returns a property restriction that is only satisfied if the value of the property is null.
 PropertyRestriction<T> lessThan(T value)
          Returns a property restriction that is only satisfied if the value of the property is less than the given value.
 PropertyRestriction<T> startingWith(T value)
          Returns a property restriction that is only satisfied if the value of the property starts with the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Restriction.RestrictionWithProperty

public Restriction.RestrictionWithProperty(Property<T> property)
Method Detail

exactlyMatching

public PropertyRestriction<T> exactlyMatching(T value)
Returns a property restriction that is only satisfied if the value of the property exactly matches the given value.

Parameters:
value - value to exactly match
Returns:
property restriction that is only satisfied if the value of the property exactly matches the given value.

startingWith

public PropertyRestriction<T> startingWith(T value)
Returns a property restriction that is only satisfied if the value of the property starts with the given value.

Parameters:
value - prefix value
Returns:
property restriction that is only satisfied if the value of the property exactly matches the given value.

containing

public PropertyRestriction<T> containing(T value)
Returns a property restriction that is only satisfied if the value of the property contains the given value.

Parameters:
value - value to contain
Returns:
property restriction that is only satisfied if the value of the property contains the given value

lessThan

public PropertyRestriction<T> lessThan(T value)
Returns a property restriction that is only satisfied if the value of the property is less than the given value.

Parameters:
value - value to be less than
Returns:
property restriction that is only satisfied if the value of the property is less than the given value

greaterThan

public PropertyRestriction<T> greaterThan(T value)
Returns a property restriction that is only satisfied if the value of the property is greater than the given value.

Parameters:
value - value to be greater than
Returns:
property restriction that is only satisfied if the value of the property is greater than the given value

isNull

public PropertyRestriction<T> isNull()
Returns a property restriction that is only satisfied if the value of the property is null.

Returns:
property restriction that is only satisfied if the value of the property is null


Copyright © 2012 Atlassian. All Rights Reserved.