java.lang.Object | |
↳ | com.atlassian.confluence.util.ExcerptHelper |
Defines common functions that obtain excerpts of content (e.g. 'page children' and 'content by label' macros).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the body of an excerpt macro (including any xhtml tags).
| |||||||||||
Returns the first line of an excerpt macro as plain text (all xhtml tags will be stripped)
| |||||||||||
Gets the first
MacroDefinition in the supplied (@code contentEntityObject}. | |||||||||||
Returns the text from a fragment of XHTML content.
| |||||||||||
Returns the text from the tag in the content (such as a heading or paragraph), unless its to
short in which case text from the following tags are also included.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Returns the body of an excerpt macro (including any xhtml tags).
contentEntityObject | that contains the excerpt macro. |
---|
""
if there was no excerpt macro.
Returns the first line of an excerpt macro as plain text (all xhtml tags will be stripped)
contentEntityObject | that contains the excerpt macro. |
---|
""
if there was no excerpt macro.
Gets the first MacroDefinition
in the supplied (@code contentEntityObject}.
contentEntityObject | (normally a Page) in which to find the macro. |
---|---|
macroName | the name of the macro to find. |
Returns the text from a fragment of XHTML content.
content | the XHTML content. |
---|
Returns the text from the tag in the content (such as a heading or paragraph), unless its to short in which case text from the following tags are also included.
content | the XHTML content. |
---|---|
minLength | the minimum length (normally 1) character (if available). |
maxLength | the maximum length (normally 100) characters. |