Class SystemAdministratorUrlReadingCondition
- java.lang.Object
-
- com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions.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 Summary
Constructors Constructor Description SystemAdministratorUrlReadingCondition(PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToUrl(com.atlassian.plugin.webresource.url.UrlBuilder urlBuilder)
void
init(Map<String,String> stringStringMap)
boolean
shouldDisplay(com.atlassian.plugin.webresource.QueryParams queryParams)
-
-
-
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 interfacecom.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 interfacecom.atlassian.plugin.webresource.condition.UrlReadingCondition
-
shouldDisplay
public boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams queryParams)
- Specified by:
shouldDisplay
in interfacecom.atlassian.plugin.webresource.condition.UrlReadingCondition
-
-