/*
*  Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*  WSO2 Inc. licenses this file to you under the Apache License,
*  Version 2.0 (the "License"); you may not use this file except
*  in compliance with the License.
*  You may obtain a copy of the License at
*
*    http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.wso2.carbon.apimgt.api.model.policy;

public class PolicyConstants {

    public static final String IP_RANGE_TYPE = "IPRange";

    public static final String IP_SPECIFIC_TYPE ="IPSpecific";

    public static final String HEADER_TYPE = "Header";

    public static final String DATE_RANGE_TYPE = "DateRage";

    public static final String DATE_SPECIFIC_TYPE = "DateSpecific";

    public static final String JWT_CLAIMS_TYPE = "JWTClaims";

    public static final String HTTP_VERB_TYPE = "HTTPVerb";

    public static final String QUERY_PARAMETER_TYPE = "QueryParameterType";

    public static final String BANDWIDTH_TYPE = "Bandwidth";

    public static final String REQUEST_COUNT_TYPE = "RequestCount";

    public static final String DATE_QUERY = "date";

    public static final String IP_QUERY = "ip";

    public static final String HTTP_VERB_QUERY = "verb";

    public static final String OPEN_BRACKET = "(";

    public static final String CLOSE_BRACKET = ")";

    public static final String INVERT_CONDITION = "!";

    public static final String EQUAL = "==";

    public static final String AND = " AND ";

    public static final String GREATER_THAN = ">=";

    public static final String LESS_THAN = "<=";

    public static final String START_QUERY = "cast(map:get(properties,’";

    public static final String END_QUERY = "’),’string’)";

    public static final String PER_USER =  "per user";

    public static final String ACROSS_ALL = "across all";
}

@@ -2147,10 +2147,274 @@
 s all%22;%0A
+    %0A    public static final String POLICY_LEVEL_API = %22api%22;%0A    %0A    public static final String POLICY_LEVEL_SUB = %22sub%22;%0A    %0A    public static final String POLICY_LEVEL_GLOBAL = %22global%22;%0A    %0A    public static final String POLICY_LEVEL_APP = %22app%22;%0A    %0A    %0A
 %7D%0A

add new constants