|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.renderer.internal.GadgetSpecUrlCheckerImpl
public class GadgetSpecUrlCheckerImpl
Default implementation which uses GadgetSpecUrlRenderPermission
implementations provided by OSGi to see if gadgets may be rendered.
The permission handling scheme implemented here follows these rules:
DENY is cause for refusing to render the gadget.ALLOW the gadget to
render. If all permissions PASS on the decision, rendering
will be refused.DENY overrides any number of votes to ALLOW.
| Constructor Summary | |
|---|---|
GadgetSpecUrlCheckerImpl(Iterable<GadgetSpecUrlRenderPermission> permissions)
Constructor. |
|
| Method Summary | |
|---|---|
void |
assertRenderable(String gadgetSpecUri)
Returns normally if the specified gadget spec is permitted to render. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GadgetSpecUrlCheckerImpl(Iterable<GadgetSpecUrlRenderPermission> permissions)
permissions are permitted, but they must point to
instances or proxies when assertRenderable() is called. Null
permissions are an error.
permissions - an Iterable of permissions to use for accepting or
rejecting a request to render a gadget
NullPointerException - if permissions is null| Method Detail |
|---|
public void assertRenderable(String gadgetSpecUri)
GadgetSpecUrlChecker
assertRenderable in interface GadgetSpecUrlCheckergadgetSpecUri - the gadget spec to render
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||