|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.Permissions
public final class Permissions
| Field Summary | |
|---|---|
static String |
ALL_PERMISSIONS
Represents all the permissions in one. |
static String |
CREATE_SYSTEM_MODULES
A permission to create system modules. |
static String |
EXECUTE_JAVA
A permission to execute java code. |
static String |
GENERATE_ANY_HTML
A permission to generate arbitrary HTML. |
| Method Summary | |
|---|---|
static Plugin |
addPermission(Plugin plugin,
String permission,
InstallationMode mode)
|
static Set<String> |
getRequiredPermissions(Class<?> type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ALL_PERMISSIONS
Represents all the permissions in one. This is useful for plugins before version 3 which by default require all permissions.
It is not a good idea to use this as a plugin developer, as this is a way internally to define permissions for legacy plugins.
public static final String EXECUTE_JAVA
public static final String CREATE_SYSTEM_MODULES
public static final String GENERATE_ANY_HTML
A permission to generate arbitrary HTML.
Generating arbitrary HTML can be a security threat hence why it would require such permission.
| Method Detail |
|---|
public static Set<String> getRequiredPermissions(Class<?> type)
public static Plugin addPermission(Plugin plugin,
String permission,
InstallationMode mode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||