|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.directory.internal.impl.GadgetSpecUrlRenderPermissionImpl
public class GadgetSpecUrlRenderPermissionImpl
Simple implementation that allows only syntactically valid URIs which are present in the directory.
Constructor Summary | |
---|---|
GadgetSpecUrlRenderPermissionImpl(Directory directory)
Constructor. |
Method Summary | |
---|---|
Vote |
voteOn(String gadgetSpecUri)
Returns the implementation's Vote on whether the specified gadget
spec should be allowed to render. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GadgetSpecUrlRenderPermissionImpl(Directory directory)
directory
- the Directory
implementation to check for
gadget specsMethod Detail |
---|
public Vote voteOn(String gadgetSpecUri)
GadgetSpecUrlRenderPermission
Returns the implementation's Vote
on whether the specified gadget
spec should be allowed to render.
If DENY
is returned, the gadget URI is explicitly forbidden to render, no matter what any other
implementations vote may be.
If ALLOW
is returned, the gadget URI is explicitly allowed to render unless another implementation
explicitly denies the rendering permission.
PASS
will be returned if the implementation has no opinion on whether the URI may render.
voteOn
in interface GadgetSpecUrlRenderPermission
gadgetSpecUri
- the gadget spec URI to evaluate
Vote
on whether to render the gadget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |