com.atlassian.jira.bc.whitelist
Interface WhitelistManager

All Known Implementing Classes:
DefaultWhitelistManager

Deprecated. Replaced by WhitelistService and OutboundWhitelist. Since v6.1.

@PublicApi
@Deprecated
public interface WhitelistManager

Manager to control whitelist rules currently used for allowing which http requests gadgets are allowed to make. This can be used in future to whitelist any http requests!

Since:
v4.3

Method Summary
 List<String> getRules()
          Deprecated. Replaced by WhitelistService.getAll(). Since v6.1.
 boolean isAllowed(URI uri)
          Deprecated. Replaced by Whitelist.isAllowed(java.net.URI). Since v6.1.
 boolean isDisabled()
          Deprecated. Replaced by WhitelistService.isWhitelistEnabled(). Since v6.1.
 List<String> updateRules(List<String> rules, boolean disabled)
          Deprecated. Replaced by WhitelistService.add(com.atlassian.plugins.whitelist.WhitelistRule), WhitelistService.remove(int), WhitelistService.disableWhitelist() and WhitelistService.enableWhitelist(). Since v6.1.
 

Method Detail

getRules

@Deprecated
List<String> getRules()
Deprecated. Replaced by WhitelistService.getAll(). Since v6.1.

Returns a list of rules that are currently allowed in the whitelist. The list will contain entries like:

Returns:
a list of allowed rules

updateRules

@Deprecated
List<String> updateRules(List<String> rules,
                                    boolean disabled)
Deprecated. Replaced by WhitelistService.add(com.atlassian.plugins.whitelist.WhitelistRule), WhitelistService.remove(int), WhitelistService.disableWhitelist() and WhitelistService.enableWhitelist(). Since v6.1.

Used to update the whitelist configuration. Takes a list of rules as well as a boolean flag that allows switching the whitelist off completely.

The method then returns the peristed rules

Parameters:
rules - List of rules to persist
disabled - True if the whitelist should be switched off
Returns:
A list of persisted rules

isAllowed

@Deprecated
boolean isAllowed(URI uri)
Deprecated. Replaced by Whitelist.isAllowed(java.net.URI). Since v6.1.

Checks if requests to the provided URI are allowed according to the current whitelist configuration

Parameters:
uri - The uri a http request is made to
Returns:
true if requests are allowed, false otherwise

isDisabled

@Deprecated
boolean isDisabled()
Deprecated. Replaced by WhitelistService.isWhitelistEnabled(). Since v6.1.

Returns true if the whitelist is currently disabled (meaning all requests are allowed).

Returns:
true if the whitelist is currently disabled (meaning all requests are allowed)


Copyright © 2002-2014 Atlassian. All Rights Reserved.