001/* 002 Licensed to the Apache Software Foundation (ASF) under one 003 or more contributor license agreements. See the NOTICE file 004 distributed with this work for additional information 005 regarding copyright ownership. The ASF licenses this file 006 to you under the Apache License, Version 2.0 (the 007 "License"); you may not use this file except in compliance 008 with the License. You may obtain a copy of the License at 009 010 http://www.apache.org/licenses/LICENSE-2.0 011 012 Unless required by applicable law or agreed to in writing, 013 software distributed under the License is distributed on an 014 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 KIND, either express or implied. See the License for the 016 specific language governing permissions and limitations 017 under the License. 018 */ 019package org.apache.wiki.ui; 020 021import org.apache.wiki.api.core.Command; 022 023 024/** 025 * Placeholder class for all Commands. 026 */ 027public interface AllCommands { 028 029 /** 030 * Returns a defensively-created array of all static Commands. 031 * 032 * @return the array of commands 033 */ 034 static Command[] get() { 035 return new Command[] { 036 GroupCommand.DELETE_GROUP, 037 GroupCommand.EDIT_GROUP, 038 GroupCommand.VIEW_GROUP, 039 PageCommand.ATTACH, 040 PageCommand.COMMENT, 041 PageCommand.CONFLICT, 042 PageCommand.DELETE, 043 PageCommand.DIFF, 044 PageCommand.EDIT, 045 PageCommand.INFO, 046 PageCommand.NONE, 047 PageCommand.OTHER, 048 PageCommand.PREVIEW, 049 PageCommand.RENAME, 050 PageCommand.RSS, 051 PageCommand.UPLOAD, 052 PageCommand.VIEW, 053 RedirectCommand.REDIRECT, 054 WikiCommand.CREATE_GROUP, 055 WikiCommand.ERROR, 056 WikiCommand.FIND, 057 WikiCommand.INSTALL, 058 WikiCommand.LOGIN, 059 WikiCommand.LOGOUT, 060 WikiCommand.MESSAGE, 061 WikiCommand.PREFS, 062 WikiCommand.WORKFLOW, 063 WikiCommand.ADMIN 064 }; 065 } 066 067}