Annotation Interface CometPreviewResultProperties


@Inherited @Documented @Retention(RUNTIME) @Target(METHOD) public @interface CometPreviewResultProperties

The CometPreviewResultProperties annotation defines properties to set for preview statement results when using the standard mapping.

The standard mapping is used, when no other mapping or processing instructions are defined via a CometPreviewProcessingProperties annotation.

For examples please refer to the DemoPreviewStatement Plugin delivered with the PublishingServer developer stack.

  • Element Details

    • linkScriptLabel

      String linkScriptLabel

      The label of a CometPreviewLinkScript.

      When using standard mappings for the results of a preview method call, the ID of this script is used for all result objects.
      If a script with this label does not exist or isn't a CometPreviewLinkScript, an exception will be raised.

      Returns:
      label of a CometPreviewLinkScript
      Default:
      ""
    • linkScriptId

      int linkScriptId

      ID of a CometPreviewLinkScript.

      When using standard mapping for the results of a preview method call, the ID of this script is used for all result objects.

      Returns:
      ID of a CometPreviewLinkScript
      Default:
      0
    • useMediaProxy

      boolean useMediaProxy

      Use proxy for MediaAsset data.

      If set to true, media preview and data will be requested from PubServer. This requires, that the media files are accessible on the server file system

      The naming "media proxy" may be a little bit misleading. Setting this flag to true just causes, that files accessible on the server file system are piped through the SOAP web service so they can also be accessed from InDesign Plug-Ins or PDF renderer. No further service, such as session handling, authentication, download, caching etc. is provided. (please do not mix up with the media proxy PublishingServer component).

      Default is false, i.e.: do not use proxy.

      Returns:
      true, if proxy should be used, false otherwise.
      Default:
      false
    • priceProperty

      Use this price property for result content

      When using standard mapping, this price property will be set as the content for result objects of type Price

      Returns:
      name of the property to use, default is LISTPRICE
      Default:
      LISTPRICE