/** * Creates an AND set of filters * * @param filters The inner filters * @return An AND filter */ public static SetOfFiltersFilter and( Filter... filters ) { return new SetOfFiltersFilter( FilterOperator.AND ).addAll( filters ); }
/** * Creates an Approximate Filter : ( <attribute> ~= <value> ) * * @param attribute The AttributeType * @param value The Value * @return An instance of the Approximate Filter */ public static AttributeValueAssertionFilter approximatelyEqual( String attribute, String value ) { return new AttributeValueAssertionFilter( attribute, value, FilterOperator.APPROXIMATELY_EQUAL ); }
/** * Constructs a NOT filter * * @return The constructed NOT Filter */ public static UnaryFilter not() { return new UnaryFilter(); }
/** * If set, the dn attributes will be included in the matching. * * @return This filter */ public MatchingRuleAssertionFilterBuilder useDnAttributes() { ( ( MatchingRuleAssertionFilter ) filter ).useDnAttributes(); return this; } }
/** * Creates an extensible match filter by calling * {@link #extensible(String, String) extensible(null, value)}. * * @param value The value to test for * @return A new MatchingRuleAssertionFilterBuilder */ public static MatchingRuleAssertionFilterBuilder extensible( String value ) { return new MatchingRuleAssertionFilterBuilder( null, value ); }
/** * Creates a new AttributeDescription * * @param attribute The attribute that must be present * @return The created PresenceFilter instance */ public static AttributeDescriptionFilter present( String attribute ) { return new AttributeDescriptionFilter( attribute ); }
/** * Creates an extensible filter * * @param attribute The attribute to test * @param value The value to test for * @return A new MatchingRuleAssertionFilter */ public static MatchingRuleAssertionFilter extensible( String attribute, String value ) { return new MatchingRuleAssertionFilter( attribute, value, FilterOperator.EXTENSIBLE_EQUAL ); }
/** * Constructs a NOT filter with the associated inner Filter * * @param filter The inner Filter * @return The constructed NOT Filter */ public static UnaryFilter not( Filter filter ) { UnaryFilter notFilter = not(); notFilter.filter = filter; return notFilter; }
/** * Creates a new instance of MatchingRuleAssertionFilterBuilder. * * @param attribute The attribute to test * @param value The value to test for */ /* No qualifier*/ MatchingRuleAssertionFilterBuilder( String attribute, String value ) { super( MatchingRuleAssertionFilter.extensible( attribute, value ) ); }
/** * Creates an AND set of filters * * @param filters The inner filters * @return An AND filter */ public static SetOfFiltersFilter and( Filter... filters ) { return new SetOfFiltersFilter( FilterOperator.AND ).addAll( filters ); }
/** * Creates an equal Filter : ( <attribute> = <value> ) * * @param attribute The AttributeType * @param value The Value * @return An instance of the Equal Filter */ public static AttributeValueAssertionFilter equal( String attribute, String value ) { return new AttributeValueAssertionFilter( attribute, value, FilterOperator.EQUAL ); }
/** * Constructs a NOT filter * * @return The constructed NOT Filter */ public static UnaryFilter not() { return new UnaryFilter(); }
/** * If set, the dn attributes will be included in the matching. * * @return This filter */ public MatchingRuleAssertionFilterBuilder useDnAttributes() { ( ( MatchingRuleAssertionFilter ) filter ).useDnAttributes(); return this; } }
/** * Creates an extensible match filter by calling * {@link #extensible(String, String) extensible(null, value)}. * * @param value The value to test for * @return A new MatchingRuleAssertionFilterBuilder */ public static MatchingRuleAssertionFilterBuilder extensible( String value ) { return new MatchingRuleAssertionFilterBuilder( null, value ); }
/** * Creates a new AttributeDescription * * @param attribute The attribute that must be present * @return The created PresenceFilter instance */ public static AttributeDescriptionFilter present( String attribute ) { return new AttributeDescriptionFilter( attribute ); }
/** * Creates an OR set of filters * * @param filters The inner filters * @return An OR filter */ public static SetOfFiltersFilter or( Filter... filters ) { return new SetOfFiltersFilter( FilterOperator.OR ).addAll( filters ); }
/** * Creates a Greater Than Or Equal Filter : ( <attribute> >= <value> ) * * @param attribute The AttributeType * @param value The Value * @return An instance of the Greater Than Or Equal Filter */ public static AttributeValueAssertionFilter greaterThanOrEqual( String attribute, String value ) { return new AttributeValueAssertionFilter( attribute, value, FilterOperator.GREATER_THAN_OR_EQUAL ); }
/** * Creates an Approximate Filter : ( <attribute> ~= <value> ) * * @param attribute The AttributeType * @param value The Value * @return An instance of the Approximate Filter */ public static AttributeValueAssertionFilter approximatelyEqual( String attribute, String value ) { return new AttributeValueAssertionFilter( attribute, value, FilterOperator.APPROXIMATELY_EQUAL ); }
/** * Creates an equal Filter : ( <attribute> = <value> ) * * @param attribute The AttributeType * @param value The Value * @return An instance of the Equal Filter */ public static AttributeValueAssertionFilter equal( String attribute, String value ) { return new AttributeValueAssertionFilter( attribute, value, FilterOperator.EQUAL ); }
/** * Creates a Greater Than Or Equal Filter : ( <attribute> >= <value> ) * * @param attribute The AttributeType * @param value The Value * @return An instance of the Greater Than Or Equal Filter */ public static AttributeValueAssertionFilter greaterThanOrEqual( String attribute, String value ) { return new AttributeValueAssertionFilter( attribute, value, FilterOperator.GREATER_THAN_OR_EQUAL ); }