Class PluginAllowlistConfigurator
java.lang.Object
com.atlassian.velocity.allowlist.impl.internal.PluginAllowlistConfigurator
- All Implemented Interfaces:
PluginAllowlist
Holds, and can check against, all methods, classes and packages allowlisted for use in Velocity templates.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.PluginAllowlistConfigurator(com.atlassian.plugin.PluginAccessor pluginAccessor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllowlistedClassPackage(Class<?> clazz) Only returnstrueif the actual class is allowlisted, irrespective of whether all methods declared in the class are individually allowlisted.booleanisAllowlistedMethod(Method method) Only returnstrueif the specific method is allowlisted, irrespective of whether its declaring class is allowlisted.voidreload()Reloads the allowlist from the plugin module descriptors.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.velocity.allowlist.api.internal.PluginAllowlist
isAllowlisted
-
Constructor Details
-
PluginAllowlistConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.since 6.1.0, usePluginAllowlistConfigurator(PluginAccessor)instead. -
PluginAllowlistConfigurator
public PluginAllowlistConfigurator(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Details
-
reload
public void reload()Description copied from interface:PluginAllowlistReloads the allowlist from the plugin module descriptors.- Specified by:
reloadin interfacePluginAllowlist
-
isAllowlistedClassPackage
Description copied from interface:PluginAllowlistOnly returnstrueif the actual class is allowlisted, irrespective of whether all methods declared in the class are individually allowlisted.- Specified by:
isAllowlistedClassPackagein interfacePluginAllowlist
-
isAllowlistedMethod
Description copied from interface:PluginAllowlistOnly returnstrueif the specific method is allowlisted, irrespective of whether its declaring class is allowlisted. CallPluginAllowlist.isAllowlisted(java.lang.reflect.Method)to consider both method and class/package allowlist configuration.- Specified by:
isAllowlistedMethodin interfacePluginAllowlist
-
PluginAllowlistConfigurator(PluginAccessor)instead.