|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.gadgets.whitelist.DefaultWhitelistManager
public class DefaultWhitelistManager
Default implementation that delegates to the common whitelist
Constructor Summary | |
---|---|
DefaultWhitelistManager(com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.plugins.whitelist.WhitelistService whitelistService,
com.atlassian.plugins.whitelist.OutboundWhitelist whitelist)
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
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()
|
void |
onAddGadget(com.atlassian.gadgets.event.AddGadgetEvent addGadgetEvent)
|
void |
onAddGadgetFeed(com.atlassian.gadgets.event.AddGadgetFeedEvent addGadgetFeedEvent)
|
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(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.plugins.whitelist.WhitelistService whitelistService, com.atlassian.plugins.whitelist.OutboundWhitelist whitelist)
Method Detail |
---|
public List<String> getRules()
InternalWhitelistManager
getRules
in interface InternalWhitelistManager
public boolean isDisabled()
isDisabled
in interface InternalWhitelistManager
public List<String> updateRules(List<String> newRules, boolean disabled)
InternalWhitelistManager
updateRules
in interface InternalWhitelistManager
newRules
- List of rules to persistdisabled
- True if the whitelist should be switched off
public boolean isAllowed(URI uri)
InternalWhitelistManager
isAllowed
in interface InternalWhitelistManager
uri
- The uri a http request is made to
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
@EventListener public void onAddGadget(com.atlassian.gadgets.event.AddGadgetEvent addGadgetEvent)
@EventListener public void onAddGadgetFeed(com.atlassian.gadgets.event.AddGadgetFeedEvent addGadgetFeedEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |