Class SystemAdministratorUrlReadingCondition

  • All Implemented Interfaces:
    com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.webresource.condition.UrlReadingCondition

    public class SystemAdministratorUrlReadingCondition
    extends Object
    implements com.atlassian.plugin.webresource.condition.UrlReadingCondition
    Loads a web resource based on whether the user is a system administrator. Note that this condition isn't intended for authorisation, but instead to filter batch resources.
    Since:
    5.7
    • Constructor Detail

      • SystemAdministratorUrlReadingCondition

        public SystemAdministratorUrlReadingCondition​(PermissionManager permissionManager)
    • Method Detail

      • init

        public void init​(Map<String,​String> stringStringMap)
                  throws com.atlassian.plugin.PluginParseException
        Specified by:
        init in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
        Throws:
        com.atlassian.plugin.PluginParseException
      • addToUrl

        public void addToUrl​(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder)
        Specified by:
        addToUrl in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition
      • shouldDisplay

        public boolean shouldDisplay​(com.atlassian.plugin.webresource.QueryParams queryParams)
        Specified by:
        shouldDisplay in interface com.atlassian.plugin.webresource.condition.UrlReadingCondition