Package org.nasutekds.server.protocols.ldap

Examples of org.nasutekds.server.protocols.ldap.LDAPFilter


        Message message = ERR_LDAPASSERT_NO_CONTROL_VALUE.get();
        throw new DirectoryException(ResultCode.PROTOCOL_ERROR, message);
      }

      ASN1Reader reader = ASN1.getReader(value);
      LDAPFilter filter;
      try
      {
        filter = LDAPFilter.decode(reader);
      }
      catch (LDAPException e)
View Full Code Here


   *
   * @return  The constructed raw filter.
   */
  public static RawFilter create(SearchFilter filter)
  {
    return new LDAPFilter(filter);
  }
View Full Code Here

   *          components.
   */
  public static LDAPFilter createANDFilter(ArrayList<RawFilter>
                                                filterComponents)
  {
    return new LDAPFilter(FilterType.AND, filterComponents, null,
                          null, null, null, null, null, null, false);
  }
View Full Code Here

   *          components.
   */
  public static LDAPFilter createORFilter(ArrayList<RawFilter>
                                               filterComponents)
  {
    return new LDAPFilter(FilterType.OR, filterComponents, null, null,
                          null, null, null, null, null, false);
  }
View Full Code Here

   * @return  The NOT search filter with the provided filter
   *          component.
   */
  public static LDAPFilter createNOTFilter(RawFilter notComponent)
  {
    return new LDAPFilter(FilterType.NOT, null, notComponent, null,
                          null, null, null, null, null, false);
  }
View Full Code Here

   * @return  The constructed equality search filter.
   */
  public static LDAPFilter createEqualityFilter(String attributeType,
                                ByteString assertionValue)
  {
    return new LDAPFilter(FilterType.EQUALITY, null, null,
                          attributeType, assertionValue, null, null,
                          null, null, false);
  }
View Full Code Here

  public static LDAPFilter createSubstringFilter(String attributeType,
                                ByteString subInitialElement,
                                ArrayList<ByteString> subAnyElements,
                                ByteString subFinalElement)
  {
    return new LDAPFilter(FilterType.SUBSTRING, null, null,
                          attributeType, null, subInitialElement,
                          subAnyElements, subFinalElement, null,
                          false);
  }
View Full Code Here

   */
  public static LDAPFilter createGreaterOrEqualFilter(
                                String attributeType,
                                ByteString assertionValue)
  {
    return new LDAPFilter(FilterType.GREATER_OR_EQUAL, null, null,
                          attributeType, assertionValue, null, null,
                          null, null, false);
  }
View Full Code Here

   */
  public static LDAPFilter createLessOrEqualFilter(
                                String attributeType,
                                ByteString assertionValue)
  {
    return new LDAPFilter(FilterType.LESS_OR_EQUAL, null, null,
                          attributeType, assertionValue, null, null,
                          null, null, false);
  }
View Full Code Here

   *
   * @return  The constructed presence search filter.
   */
  public static LDAPFilter createPresenceFilter(String attributeType)
  {
    return new LDAPFilter(FilterType.PRESENT, null, null,
                          attributeType, null, null, null, null, null,
                          false);
  }
View Full Code Here

TOP

Related Classes of org.nasutekds.server.protocols.ldap.LDAPFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.