|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.macro.browser.beans.MacroMetadata
public class MacroMetadata
A Bean that encapsulates the 'metadata' of the macro.
Its purpose is to provide an overview of the macro for the Macro Browser's list of available macros, and to
include information about how the macro should be displayed in the list (e.g. "hidden").
More detailed macro metadata including parameter details is encapsulated by the MacroFormDetails
class.
Constructor Summary | |
---|---|
MacroMetadata(java.lang.String macroName,
java.lang.String pluginKey,
java.lang.String title,
MacroIcon icon,
boolean isAlwaysShowConfig,
java.lang.String description,
java.util.Set<java.lang.String> aliases,
java.util.Set<java.lang.String> categories,
boolean isBodyDeprecated,
boolean hidden,
MacroFormDetails formDetails,
java.lang.String alternateId,
java.util.List<MacroPropertyPanelButton> buttons)
|
|
MacroMetadata(java.lang.String macroName,
java.lang.String pluginKey,
java.lang.String title,
MacroIcon icon,
java.lang.String description,
java.util.Set<java.lang.String> aliases,
java.util.Set<java.lang.String> categories,
boolean isBodyDeprecated,
boolean hidden,
MacroFormDetails formDetails,
java.lang.String alternateId,
java.util.List<MacroPropertyPanelButton> buttons)
|
Method Summary | |
---|---|
MacroSummary |
extractMacroSummary()
|
java.util.Set<java.lang.String> |
getAliases()
Returns aliases for this macro. |
java.lang.String |
getAlternateId()
Returns an alternative id for the macro. |
java.util.List<MacroPropertyPanelButton> |
getButtons()
|
java.util.Set<java.lang.String> |
getCategories()
Returns categories this macro should be displayed within in the Macro Browser. |
Message |
getDescription()
|
MacroFormDetails |
getFormDetails()
|
MacroIcon |
getIcon()
|
java.lang.String |
getMacroName()
|
java.lang.String |
getPluginKey()
|
Message |
getTitle()
|
boolean |
isBodyDeprecated()
|
boolean |
isHidden()
|
static MacroMetadata |
makeFreeformSummary(java.lang.String macroName,
java.lang.String pluginKey,
java.lang.String title,
java.lang.String description,
MacroFormDetails formDetails)
Deprecated. Since 4.0. Freeform macros are no longer supported. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MacroMetadata(java.lang.String macroName, java.lang.String pluginKey, java.lang.String title, MacroIcon icon, java.lang.String description, java.util.Set<java.lang.String> aliases, java.util.Set<java.lang.String> categories, boolean isBodyDeprecated, boolean hidden, MacroFormDetails formDetails, java.lang.String alternateId, java.util.List<MacroPropertyPanelButton> buttons)
public MacroMetadata(java.lang.String macroName, java.lang.String pluginKey, java.lang.String title, MacroIcon icon, boolean isAlwaysShowConfig, java.lang.String description, java.util.Set<java.lang.String> aliases, java.util.Set<java.lang.String> categories, boolean isBodyDeprecated, boolean hidden, MacroFormDetails formDetails, java.lang.String alternateId, java.util.List<MacroPropertyPanelButton> buttons)
Method Detail |
---|
@Deprecated public static MacroMetadata makeFreeformSummary(java.lang.String macroName, java.lang.String pluginKey, java.lang.String title, java.lang.String description, MacroFormDetails formDetails)
public java.lang.String getMacroName()
public java.lang.String getPluginKey()
public MacroIcon getIcon()
MacroIcon
, containing the url string to the macro icon and whether or not the URL is
relative. Can return null.public Message getTitle()
public Message getDescription()
public java.util.Set<java.lang.String> getAliases()
public java.util.Set<java.lang.String> getCategories()
public boolean isBodyDeprecated()
Macro.hasBody()
implementation.public boolean isHidden()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAlternateId()
public MacroFormDetails getFormDetails()
public java.util.List<MacroPropertyPanelButton> getButtons()
public MacroSummary extractMacroSummary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |