java.lang.Object | |
↳ | com.atlassian.jira.bc.whitelist.DefaultWhitelistService |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a list of rules that are currently allowed in the whitelist.
| |||||||||||
Checks if requests to the provided URI are allowed according to the current whitelist configuration
| |||||||||||
Returns true if the whitelist is currently disabled (meaning all requests are allowed).
| |||||||||||
Takes the validation result from
validateUpdateRules(com.atlassian.jira.bc.JiraServiceContext, java.util.List, boolean) and persists the new rules. | |||||||||||
Validates that the current user is allowed to update the whitelist by checking if they are a system
administrator.
|
Returns a list of rules that are currently allowed in the whitelist. The list will contain entries like:
context | The service context with the current user & error collection |
---|
Checks if requests to the provided URI are allowed according to the current whitelist configuration
uri | The uri a http request is made to |
---|
Returns true if the whitelist is currently disabled (meaning all requests are allowed).
Takes the validation result from validateUpdateRules(com.atlassian.jira.bc.JiraServiceContext, java.util.List, boolean)
and persists the new rules.
result | a validation result obtained by calling validateUpdateRules(com.atlassian.jira.bc.JiraServiceContext, java.util.List, boolean) |
---|
Validates that the current user is allowed to update the whitelist by checking if they are a system administrator.
context | The service context with the current user & error collection |
---|---|
rules | List of rule strings |
disabled | true if the whitelist should be turned off |