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