com.atlassian.confluence.plugins.gadgets.whitelist
Class DefaultGadgetWhiteListManager

java.lang.Object
  extended by com.atlassian.confluence.plugins.gadgets.whitelist.DefaultGadgetWhiteListManager
All Implemented Interfaces:
GadgetWhiteListManager

public class DefaultGadgetWhiteListManager
extends java.lang.Object
implements GadgetWhiteListManager

Delegates to gadget spec url checker. If at least one url checker votes to allow this and none veto it, it will be allowed to render.


Constructor Summary
DefaultGadgetWhiteListManager()
           
 
Method Summary
 boolean isAllowedGadgetUri(java.net.URI uri)
           
 void setGadgetSpecUrlChecker(com.atlassian.gadgets.GadgetSpecUrlChecker gadgetSpecUrlChecker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGadgetWhiteListManager

public DefaultGadgetWhiteListManager()
Method Detail

setGadgetSpecUrlChecker

public void setGadgetSpecUrlChecker(com.atlassian.gadgets.GadgetSpecUrlChecker gadgetSpecUrlChecker)

isAllowedGadgetUri

public boolean isAllowedGadgetUri(java.net.URI uri)
Specified by:
isAllowedGadgetUri in interface GadgetWhiteListManager


Copyright © 2003-2014 Atlassian. All Rights Reserved.