|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ComponentRole public interface GadgetSource
Reads the gadgets for the dashboard macro which is being executed.
| Method Summary | |
|---|---|
java.util.List<Block> |
getDashboardSourceMetadata(java.lang.String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Get the metadata about this dashboard source, such as source document fullname, gadget add url, gadget remove url, etc, to pass to the client. |
java.util.List<Gadget> |
getGadgets(java.lang.String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Reads the gadgets for the passed macro transformation context. |
boolean |
isEditing()
|
| Method Detail |
|---|
java.util.List<Gadget> getGadgets(java.lang.String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
throws java.lang.Exception
source - the source to read dashboard gadgets from (a document serialized reference)context - the dashboard macro transformation context
java.lang.Exception - in case anything goes wrong reading data, the exception should be translated by the dashboard
macro caller into a macro execution exception
java.util.List<Block> getDashboardSourceMetadata(java.lang.String source,
org.xwiki.rendering.transformation.MacroTransformationContext context)
source - the source to read dashboard gadgets from (a document serialized reference)context - the dashboard macro transformation context
boolean isEditing()
true if the the current context is in edit mode (gadgets can be edited -- positions, parameters,
adding gadgets etc), false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||