001/* 002 * CDDL HEADER START 003 * 004 * The contents of this file are subject to the terms of the 005 * Common Development and Distribution License, Version 1.0 only 006 * (the "License"). You may not use this file except in compliance 007 * with the License. 008 * 009 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt 010 * or http://forgerock.org/license/CDDLv1.0.html. 011 * See the License for the specific language governing permissions 012 * and limitations under the License. 013 * 014 * When distributing Covered Code, include this CDDL HEADER in each 015 * file and include the License file at legal-notices/CDDLv1_0.txt. 016 * If applicable, add the following below this CDDL HEADER, with the 017 * fields enclosed by brackets "[]" replaced with your own identifying 018 * information: 019 * Portions Copyright [yyyy] [name of copyright owner] 020 * 021 * CDDL HEADER END 022 * 023 * 024 * Copyright 2008 Sun Microsystems, Inc. 025 */ 026 027package org.opends.server.authorization.dseecompat; 028 029/** 030 * This class provides an enumeration of the reasons why an ACI evaluation 031 * returned a result from the AciHandler's testApplicableLists call. This class 032 * is used by a geteffectiverights aclRightsInfo attribute search to build 033 * a summary string. 034 */ 035 036public enum EnumEvalReason { 037 038 /** 039 * There are aren't any allow ACIs. 040 */ 041 NO_ALLOW_ACIS(0), 042 043 /** 044 * An deny ACI either evaluated to FAIL or to TRUE. 045 */ 046 EVALUATED_DENY_ACI(1), 047 048 /** 049 * An allow evaluated to true. 050 */ 051 EVALUATED_ALLOW_ACI(2), 052 053 /** 054 * None of the allow and deny ACIs evaluated to true. 055 */ 056 NO_MATCHED_ALLOWS_ACIS(3), 057 058 /** 059 * No specific reason could be determined. 060 */ 061 NO_REASON(4), 062 063 /** 064 * The authorization DN has bypass-acl privileges. 065 */ 066 SKIP_ACI(5); 067 068 /** 069 * Create a new enumeration type for the specified result value. 070 * @param v The value of the result. 071 */ 072 EnumEvalReason(int v) {} 073}