|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.whitelist.DefaultWhitelistManager
public class DefaultWhitelistManager
Default implementation that delegates to the WhitelistManager in jira-gadgets-plugin
Constructor Summary | |
---|---|
DefaultWhitelistManager()
|
Method Summary | |
---|---|
List<String> |
getRules()
Returns a list of rules that are currently allowed in the whitelist. |
boolean |
isAllowed(URI uri)
Checks if requests to the provided URI are allowed according to the current whitelist configuration |
boolean |
isDisabled()
Returns true if the whitelist is currently disabled (meaning all requests are allowed). |
List<String> |
updateRules(List<String> newRules,
boolean disabled)
Used to update the whitelist configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWhitelistManager()
Method Detail |
---|
public List<String> getRules()
WhitelistManager
getRules
in interface WhitelistManager
public boolean isDisabled()
WhitelistManager
isDisabled
in interface WhitelistManager
public List<String> updateRules(List<String> newRules, boolean disabled)
WhitelistManager
updateRules
in interface WhitelistManager
newRules
- List of rules to persistdisabled
- True if the whitelist should be switched off
public boolean isAllowed(URI uri)
WhitelistManager
isAllowed
in interface WhitelistManager
uri
- The uri a http request is made to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |