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 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(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(URI uri)
Specified by:
isAllowedGadgetUri in interface GadgetWhiteListManager


Copyright © 2003-2011 Atlassian. All Rights Reserved.