Class XmlPluginAllowlistModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<XmlPluginAllowlistProvider>
com.atlassian.jira.security.serialization.XmlPluginAllowlistModuleDescriptor
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<XmlPluginAllowlistProvider>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware
public class XmlPluginAllowlistModuleDescriptor
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<XmlPluginAllowlistProvider>
Allows extension of the allowlist for xml -> java object deserialization.
In atlassian-plugin.xml file, it should look like this:
<xml-plugin-allowlist key="myModuleKey" class="com.my.company.MyXmlPluginAllowlistProvider"/>
'key' should be a unique string.
'class' should provide an implementation of com.atlassian.jira.security.serialization.XmlPluginAllowlistProvider.
- Since:
- 9.0
-
Field Summary
FieldsFields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources -
Constructor Summary
ConstructorsConstructorDescriptionXmlPluginAllowlistModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, disabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.plugin.ModuleDescriptor
getDisplayName
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
XmlPluginAllowlistModuleDescriptor
public XmlPluginAllowlistModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
init
public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull com.atlassian.plugin.module.Element element) - Specified by:
initin interfacecom.atlassian.plugin.ModuleDescriptor<XmlPluginAllowlistProvider>- Overrides:
initin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<XmlPluginAllowlistProvider>
-
enabled
public void enabled()- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<XmlPluginAllowlistProvider>
-
getModule
- Specified by:
getModulein interfacecom.atlassian.plugin.ModuleDescriptor<XmlPluginAllowlistProvider>- Specified by:
getModulein classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<XmlPluginAllowlistProvider>
-