001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2015 ForgeRock AS. 015 */ 016package org.forgerock.util.query; 017 018/** 019 * QueryFilter constants. 020 */ 021public final class QueryFilterOperators { 022 /** the "and" operator. */ 023 public static final String AND = "and"; 024 /** the "or" operator. */ 025 public static final String NOT = "!"; 026 /** the "not" operator. */ 027 public static final String OR = "or"; 028 /** a literal "true". */ 029 public static final String TRUE = "true"; 030 /** a literal "false. */ 031 public static final String FALSE = "false"; 032 /** the "present" operator. */ 033 public static final String PRESENT = "pr"; 034 /** the "equals" operator. */ 035 public static final String EQUALS = "eq"; 036 /** the "greater-than" operator. */ 037 public static final String GREATER_THAN = "gt"; 038 /** the "greater-than-or-equal" operator. */ 039 public static final String GREATER_EQUAL = "ge"; 040 /** the "less-than" operator. */ 041 public static final String LESS_THAN = "lt"; 042 /** the "less-than-or-equal" operator. */ 043 public static final String LESS_EQUAL = "le"; 044 /** the "contains" operator". */ 045 public static final String CONTAINS = "co"; 046 /** the "starts-with" operator. */ 047 public static final String STARTS_WITH = "sw"; 048 049 private QueryFilterOperators() { 050 // prevent construction 051 } 052}