@PublicApi
public interface WhitelistService
| Modifier and Type | Method and Description |
|---|---|
WhitelistRule |
add(WhitelistRule whitelistRule)
Add a new whitelist rule.
|
void |
disableWhitelist()
Disable the whitelist in general.
|
void |
enableWhitelist()
Enable the whitelist in general.
|
WhitelistRule |
get(int id) |
Collection<WhitelistRule> |
getAll() |
boolean |
isWhitelistEnabled() |
void |
remove(int id)
Remove a whitelist rule referenced by id.
|
WhitelistRule |
update(WhitelistRule whitelistRule)
Update a given whitelist rule.
|
boolean isWhitelistEnabled()
true if the whitelist is enabled, false otherwisevoid enableWhitelist()
WhitelistEnabledEvent
after the modification has been finished.NotAuthorizedException - if the current user has not the required permissionvoid disableWhitelist()
WhitelistDisabledEvent
after the modification has been finished.NotAuthorizedException - if the current user has not the required permissionWhitelistRule add(WhitelistRule whitelistRule)
WhitelistRuleAddedEvent after
the modification has been finished.whitelistRule - the whitelist rule to be addedNotAuthorizedException - if the current user has not the required permissionWhitelistRule update(WhitelistRule whitelistRule)
WhitelistRuleChangedEvent
after the modification has been finished.whitelistRule - the updated information to be used with the whitelist ruleNotAuthorizedException - if the current user has not the required permissionvoid remove(int id)
WhitelistRuleRemovedEvent
after the modification has been finished.id - the id of the whitelist rule to be removedNotAuthorizedException - if the current user has not the required permissionCollection<WhitelistRule> getAll()
@Nullable WhitelistRule get(int id)
id - the id of the whitelist rulenull if not foundCopyright © 2023 Atlassian. All Rights Reserved.