001/* 002 * This library is part of OpenCms - 003 * the Open Source Content Management System 004 * 005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * For further information about Alkacon Software, please see the 018 * company website: http://www.alkacon.com 019 * 020 * For further information about OpenCms, please see the 021 * project website: http://www.opencms.org 022 * 023 * You should have received a copy of the GNU Lesser General Public 024 * License along with this library; if not, write to the Free Software 025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 026 */ 027 028package org.opencms.ui.contextmenu; 029 030/** 031 * Flag to control which visibility checks should be performed by CmsStandardVisibilityCheck.<p> 032 */ 033public enum CmsVisibilityCheckFlag { 034 /** Check that we have control permission. */ 035 controlpermission, 036 037 /** Check that resource is a defaultfile. */ 038 defaultfile, 039 040 /** Checks if resource is deleted. */ 041 deleted, 042 043 /** Check that the resource is a file. */ 044 file, 045 046 /** Check that the resource is a folder. */ 047 folder, 048 049 /** Checks if an editor is available. */ 050 haseditor, 051 052 /** Checks if a sourcecode editor is available. */ 053 hassourcecodeeditor, 054 055 /** Check that the resource is in the current project. */ 056 inproject, 057 058 /** Checks if resource is locked by current user. */ 059 mylock, 060 061 /** Checks that lock is not inherited. */ 062 noinheritedlock, 063 064 /** Checks if resource is not locked by different user. */ 065 nootherlock, 066 067 /** Checks if resource is not deleted. */ 068 notdeleted, 069 070 /** Checks that the resource is not in the current project. */ 071 notinproject, 072 073 /** Checks that the resource is not new. */ 074 notnew, 075 076 /** Check that we are in an Offline project. */ 077 notonline, 078 079 /** Checks if resource is not a pointer. */ 080 notpointer, 081 082 /** Checks that the resource is a file which is not unchanged. */ 083 notunchangedfile, 084 085 /** Checks if resource is locked by different user. */ 086 otherlock, 087 088 /** Folder with container page default file. */ 089 pagefolder, 090 091 /** Checks if resource is a pointer. */ 092 pointer, 093 094 /** Checks if user has publish permissions. */ 095 publishpermission, 096 097 /** Checks that replace operations are valid for the type. */ 098 replacable, 099 100 /** Check root administrator rule. */ 101 rolerootadmin, 102 103 /** Check editor rule. */ 104 roleeditor, 105 106 /** Check element author role.*/ 107 roleelementauthor, 108 109 /** Check VFS manager role. */ 110 rolevfsmanager, 111 112 /** Check workplace user role. */ 113 rolewpuser, 114 115 /** Checks if resource is unlocked. */ 116 unlocked, 117 118 /** Check that we have write permission. */ 119 writepermisssion, 120 121 /** Checks if resource is xml content. */ 122 xml, 123 124 /** Checks if the file shouldn't be edited by the current user (used for sitemap config). */ 125 restrictedconfig, 126 127 /** If resource is an XML content, check if unmarshalling succeeds. */ 128 xmlunmarshal; 129}