@@ -0,0 +1,1229 @@
+/*%0A * Permission.java%0A *%0A * Copyright (c) 2014. Graham Howden %3Cgraham_howden1 at yahoo.co.uk%3E.%0A *%0A * This file is part of PluginFramework.%0A *%0A * PluginFramework is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * PluginFramework is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with PluginFramework.  If not, see %3Chttp ://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.publicuhc.pluginframework.routing;%0A%0Aimport java.lang.annotation.*;%0A%0A@Retention(RetentionPolicy.RUNTIME)%0A@Target(%7BElementType.METHOD%7D)%0A@Documented%0Apublic @interface Permission%0A%7B%0A    /**%0A     * List of permissions to check for the method to run%0A     */%0A    String%5B%5D permissions() default %7B%7D;%0A%0A    /**%0A     * Whether the method needs all permissions to pass or just one%0A     */%0A    boolean needsAll() default true;%0A%7D%0A

make a generic permission annotation that can define a list of required permissions