Class MacroFormDetails
java.lang.Object
com.atlassian.confluence.macro.browser.beans.MacroFormDetails
A Bean that encapsulates the detailed metadata of a macro.
This includes the macro parameter information, documentation links and notation help guide contents.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
getBody()
Deprecated.since 5.5.Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.int
boolean
boolean
boolean
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.boolean
void
renderForDisplay
(org.apache.velocity.context.Context context) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.void
toString()
-
Method Details
-
builder
-
getMacroName
-
renderForDisplay
@Deprecated(since="9.0", forRemoval=true) public void renderForDisplay(org.apache.velocity.context.Context context) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0. No replacementThis method should be called to render macro details before passing to the front end for display.- Parameters:
context
- the velocity context to render with
-
getNotationHelp
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0. No replacement- Returns:
- the notation help as raw HTML. The
renderForDisplay(Context)
method must be called before this.
-
getDocumentationUrl
Deprecated.since 5.5. UsegetDocumentationLink()
instead.- Returns:
- the url to the macro's documentation, if available. Otherwise, null is returned.
-
getDocumentationLink
- Returns:
- the url to the macro's documentation, if available. Otherwise, null is returned.
-
isCommentable
public boolean isCommentable()- Returns:
- true if the Macro implementation allows comments
-
setBody
-
getBody
- Returns:
- true if the macro implementation of hasBody() returns true.
- See Also:
-
isFreeform
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0. No replacement- Returns:
- true if the macro parameter information is not available.
-
isShowDefaultParamInPlaceholder
public boolean isShowDefaultParamInPlaceholder() -
getParameters
- Returns:
- a list of macro paramaters.
-
hasRequiredParameters
public boolean hasRequiredParameters() -
getSchemaVersion
public int getSchemaVersion() -
getExcludedSchemaMigrationPoints
- Returns:
- points where
MacroMigration
s should not be run.
-
toString
-