Available Velocity Context Objects in Exporters

Since the export functionality is not implemented as a Struts action, it does not inherit the default Velocity context used by Confluence actions. It creates its own context and populates it with a separate list of components.

All exporters have at least the items listed below. Some exporters may extend this with other objects.

変数

説明

クラス リファレンス

$generalUtil

A GeneralUtil object with several useful methods, including URL encoding.

GeneralUtil

$stringUtils

Common utilities for string manipulation.

StringUtils

$rendererBean

Mostly for internal use, but can also be used for manipulating page or space exports.

WikiExporter

$exportDate

A java.util.Date created when the export is actually performed.

日付

$exportContent

An ExportContext object which holds the context in which the export is performed, such as the user performing the export.

ExportContext

$dateFormatter

Provides a date and time formatter suitable for the exporting user's locale and environment.

DateFormatter

$baseUrl

The base URL of the Confluence installation (http://<server>:<port>/contextPath).

文字列

参考資料
最終更新日 2024 年 4 月 3 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.