001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2003-2005 Julian Hyde 008// Copyright (C) 2005-2012 Pentaho and others 009// All Rights Reserved. 010*/ 011package mondrian.olap; 012 013/** 014 * <code>Access</code> enumerates the allowable access rights. 015 * 016 * @author jhyde 017 * @since Feb 21, 2003 018 */ 019public enum Access { 020 /** No access to an object and its children. */ 021 NONE, 022 /** 023 * A grant that covers none of the children 024 * unless explicitly granted. 025 */ 026 CUSTOM, 027 /** 028 * Grant that covers all children except those denied. 029 * (internal use only) 030 */ 031 RESTRICTED, 032 /** Access to all shared dimensions (applies to schema grant). */ 033 ALL_DIMENSIONS, 034 /** All access to an object and its children. */ 035 ALL; 036 public String toString() { 037 return this.name(); 038 }; 039} 040 041// End Access.java