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 2008 Sun Microsystems, Inc.
015 */
016
017package org.opends.server.authorization.dseecompat;
018
019/**
020 * This class provides an enumeration of the reasons why an ACI evaluation
021 * returned a result from the AciHandler's testApplicableLists call. This class
022 * is used by a geteffectiverights aclRightsInfo attribute search to build
023 * a summary string.
024 */
025
026public enum EnumEvalReason {
027
028  /**
029   * There are aren't any allow ACIs.
030   */
031  NO_ALLOW_ACIS(0),
032
033  /**
034   * An deny ACI either evaluated to FAIL or to TRUE.
035   */
036  EVALUATED_DENY_ACI(1),
037
038  /**
039   * An allow  evaluated to true.
040   */
041  EVALUATED_ALLOW_ACI(2),
042
043  /**
044   * None of the allow and deny ACIs evaluated to true.
045   */
046  NO_MATCHED_ALLOWS_ACIS(3),
047
048  /**
049   * No specific reason could be determined.
050   */
051  NO_REASON(4),
052
053  /**
054   * The authorization DN has bypass-acl privileges.
055   */
056  SKIP_ACI(5);
057
058  /**
059   * Create a new enumeration type for the specified result value.
060   * @param v The value of the result.
061   */
062  EnumEvalReason(int v) {}
063}