Annotation Interface CometPreviewStatementProperties
The CometPreviewStatementProperties annotation allows additional information for methods
tagged as PluginMethod.MethodType.PREVIEW_STATEMENT methods.
For examples please refer to the DemoPreviewStatement Plugin delivered with the PublishingServer developer stack.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDoes this statement require selection?The target for selection.booleanUse the parent bucket IDs to process this statement.
-
Element Details
-
needsSelection
boolean needsSelectionDoes this statement require selection?
Tells whether this statement requires selection (i.e. a selected placeholder or entry in the product panel) or not.
Default is true, which means, that this statement will only be executed, when an appropriate selection is available in the client application (panel or document).
- Returns:
- true, if the statement requires a selection, false otherwise
- Default:
- true
-
selectionTarget
CometPreviewStatementProperties.SelectionTarget selectionTargetThe target for selection.
Target can be or
SelectionTarget.PANELorSelectionTarget.BOTH. In this case, the Document selection takes precedence over the panel selection.- Returns:
- the selection target, default
SelectionTarget.BOTH
- Default:
- BOTH
-
useParent
boolean useParentUse the parent bucket IDs to process this statement.
Use the parent bucket IDs to process this statement. If set to true, the IDs of the parent bucket will be used rather than the entity IDs.
Default is false- Returns:
- true, if parent IDs should be used, false otherwise.
- Default:
- false
-