/** * Creates a new NOT search filter with the provided component. * * @param notComponent The filter component to include in this NOT filter. * It must not be {@code null}. * * @return The created NOT search filter. */ public static Filter createNOTFilter(final Filter notComponent) { ensureNotNull(notComponent); return new Filter(null, FILTER_TYPE_NOT, NO_FILTERS, notComponent, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new OR search filter with the provided components. * * @param orComponents The set of filter components to include in the OR * filter. It must not be {@code null}. * * @return The created OR search filter. */ public static Filter createORFilter(final Filter... orComponents) { ensureNotNull(orComponents); return new Filter(null, FILTER_TYPE_OR, orComponents, null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new AND search filter with the provided components. * * @param andComponents The set of filter components to include in the AND * filter. It must not be {@code null}. * * @return The created AND search filter. */ public static Filter createANDFilter(final Filter... andComponents) { ensureNotNull(andComponents); return new Filter(null, FILTER_TYPE_AND, andComponents, null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new presence search filter with the provided information. * * @param attributeName The attribute name for this presence filter. It * must not be {@code null}. * * @return The created presence search filter. */ public static Filter createPresenceFilter(final String attributeName) { ensureNotNull(attributeName); return new Filter(null, FILTER_TYPE_PRESENCE, NO_FILTERS, null, attributeName, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new OR search filter with the provided components. * * @param orComponents The set of filter components to include in the OR * filter. It must not be {@code null}. * * @return The created OR search filter. */ public static Filter createORFilter(final Filter... orComponents) { ensureNotNull(orComponents); return new Filter(null, FILTER_TYPE_OR, orComponents, null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new AND search filter with the provided components. * * @param andComponents The set of filter components to include in the AND * filter. It must not be {@code null}. * * @return The created AND search filter. */ public static Filter createANDFilter(final Filter... andComponents) { ensureNotNull(andComponents); return new Filter(null, FILTER_TYPE_AND, andComponents, null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new OR search filter with the provided components. * * @param orComponents The set of filter components to include in the OR * filter. It must not be {@code null}. * * @return The created OR search filter. */ public static Filter createORFilter(final List<Filter> orComponents) { ensureNotNull(orComponents); return new Filter(null, FILTER_TYPE_OR, orComponents.toArray(new Filter[orComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new OR search filter with the provided components. * * @param orComponents The set of filter components to include in the OR * filter. It must not be {@code null}. * * @return The created OR search filter. */ public static Filter createORFilter(final Collection<Filter> orComponents) { ensureNotNull(orComponents); return new Filter(null, FILTER_TYPE_OR, orComponents.toArray(new Filter[orComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new AND search filter with the provided components. * * @param andComponents The set of filter components to include in the AND * filter. It must not be {@code null}. * * @return The created AND search filter. */ public static Filter createANDFilter(final List<Filter> andComponents) { ensureNotNull(andComponents); return new Filter(null, FILTER_TYPE_AND, andComponents.toArray(new Filter[andComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new OR search filter with the provided components. * * @param orComponents The set of filter components to include in the OR * filter. It must not be {@code null}. * * @return The created OR search filter. */ public static Filter createORFilter(final Collection<Filter> orComponents) { ensureNotNull(orComponents); return new Filter(null, FILTER_TYPE_OR, orComponents.toArray(new Filter[orComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new AND search filter with the provided components. * * @param andComponents The set of filter components to include in the AND * filter. It must not be {@code null}. * * @return The created AND search filter. */ public static Filter createANDFilter(final List<Filter> andComponents) { ensureNotNull(andComponents); return new Filter(null, FILTER_TYPE_AND, andComponents.toArray(new Filter[andComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new NOT search filter with the provided component. * * @param notComponent The filter component to include in this NOT filter. * It must not be {@code null}. * * @return The created NOT search filter. */ public static Filter createNOTFilter(final Filter notComponent) { ensureNotNull(notComponent); return new Filter(null, FILTER_TYPE_NOT, NO_FILTERS, notComponent, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new presence search filter with the provided information. * * @param attributeName The attribute name for this presence filter. It * must not be {@code null}. * * @return The created presence search filter. */ public static Filter createPresenceFilter(final String attributeName) { ensureNotNull(attributeName); return new Filter(null, FILTER_TYPE_PRESENCE, NO_FILTERS, null, attributeName, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new AND search filter with the provided components. * * @param andComponents The set of filter components to include in the AND * filter. It must not be {@code null}. * * @return The created AND search filter. */ public static Filter createANDFilter(final Collection<Filter> andComponents) { ensureNotNull(andComponents); return new Filter(null, FILTER_TYPE_AND, andComponents.toArray(new Filter[andComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new OR search filter with the provided components. * * @param orComponents The set of filter components to include in the OR * filter. It must not be {@code null}. * * @return The created OR search filter. */ public static Filter createORFilter(final List<Filter> orComponents) { ensureNotNull(orComponents); return new Filter(null, FILTER_TYPE_OR, orComponents.toArray(new Filter[orComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new AND search filter with the provided components. * * @param andComponents The set of filter components to include in the AND * filter. It must not be {@code null}. * * @return The created AND search filter. */ public static Filter createANDFilter(final Collection<Filter> andComponents) { ensureNotNull(andComponents); return new Filter(null, FILTER_TYPE_AND, andComponents.toArray(new Filter[andComponents.size()]), null, null, null, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new less-or-equal search filter with the provided information. * * @param attributeName The attribute name for this less-or-equal * filter. It must not be {@code null}. * @param assertionValue The assertion value for this less-or-equal * filter. It must not be {@code null}. * * @return The created less-or-equal search filter. */ static Filter createLessOrEqualFilter(final String attributeName, final ASN1OctetString assertionValue) { ensureNotNull(attributeName, assertionValue); return new Filter(null, FILTER_TYPE_LESS_OR_EQUAL, NO_FILTERS, null, attributeName, assertionValue, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new greater-or-equal search filter with the provided information. * * @param attributeName The attribute name for this greater-or-equal * filter. It must not be {@code null}. * @param assertionValue The assertion value for this greater-or-equal * filter. It must not be {@code null}. * * @return The created greater-or-equal search filter. */ static Filter createGreaterOrEqualFilter(final String attributeName, final ASN1OctetString assertionValue) { ensureNotNull(attributeName, assertionValue); return new Filter(null, FILTER_TYPE_GREATER_OR_EQUAL, NO_FILTERS, null, attributeName, assertionValue, null, NO_SUB_ANY, null, null, false); }
/** * Creates a new greater-or-equal search filter with the provided information. * * @param attributeName The attribute name for this greater-or-equal * filter. It must not be {@code null}. * @param assertionValue The assertion value for this greater-or-equal * filter. It must not be {@code null}. * * @return The created greater-or-equal search filter. */ public static Filter createGreaterOrEqualFilter(final String attributeName, final byte[] assertionValue) { ensureNotNull(attributeName, assertionValue); return new Filter(null, FILTER_TYPE_GREATER_OR_EQUAL, NO_FILTERS, null, attributeName, new ASN1OctetString(assertionValue), null, NO_SUB_ANY, null, null, false); }
/** * Creates a new less-or-equal search filter with the provided information. * * @param attributeName The attribute name for this less-or-equal * filter. It must not be {@code null}. * @param assertionValue The assertion value for this less-or-equal * filter. It must not be {@code null}. * * @return The created less-or-equal search filter. */ public static Filter createLessOrEqualFilter(final String attributeName, final String assertionValue) { ensureNotNull(attributeName, assertionValue); return new Filter(null, FILTER_TYPE_LESS_OR_EQUAL, NO_FILTERS, null, attributeName, new ASN1OctetString(assertionValue), null, NO_SUB_ANY, null, null, false); }