|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.renderer.UserMacroConfig
public class UserMacroConfig
Defines a user macro. This gets serialized by Bandana, so don't put any complex objects in it.
Field Summary | |
---|---|
static String |
BODY_TYPE_ESCAPE_HTML
|
static String |
BODY_TYPE_NONE
|
static String |
BODY_TYPE_RAW
|
static String |
BODY_TYPE_RENDERED
|
static String |
OUTPUT_TYPE_HTML
Deprecated. since 4.0. There is only a single output type of HTML supported. |
static String |
OUTPUT_TYPE_WIKI
Deprecated. since 4.0. There is only a single output type of HTML supported beyond 4.0. |
Constructor Summary | |
---|---|
UserMacroConfig()
|
Method Summary | |
---|---|
static Macro.BodyType |
deriveBodyType(UserMacroConfig config)
|
String |
getBodyType()
|
Set<String> |
getCategories()
|
String |
getDescription()
|
String |
getDocumentationUrl()
|
String |
getIconLocation()
|
String |
getName()
|
String |
getOutputType()
Deprecated. since 4.0. There will be only one output type of HTML beyond 4.0. |
List<MacroParameter> |
getParameters()
|
String |
getTemplate()
|
String |
getTitle()
|
boolean |
isHasBody()
|
boolean |
isHidden()
|
void |
setBodyType(String bodyType)
|
void |
setCategories(Set<String> categories)
|
void |
setDescription(String description)
|
void |
setDocumentationUrl(String documentationUrl)
|
void |
setHasBody(boolean hasBody)
|
void |
setHidden(boolean hidden)
|
void |
setIconLocation(String iconLocation)
|
void |
setName(String name)
Sets the name of the macro, converting to lower-case first. |
void |
setOutputType(String outputType)
Deprecated. since 4.0. There will be only one output type of HTML beyond 4.0. |
void |
setParameters(List<MacroParameter> parameters)
|
void |
setTemplate(String template)
|
void |
setTitle(String title)
|
Macro |
toMacro()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final String OUTPUT_TYPE_HTML
@Deprecated public static final String OUTPUT_TYPE_WIKI
public static final String BODY_TYPE_RAW
public static final String BODY_TYPE_ESCAPE_HTML
public static final String BODY_TYPE_RENDERED
public static final String BODY_TYPE_NONE
Constructor Detail |
---|
public UserMacroConfig()
Method Detail |
---|
public String getName()
public void setName(String name)
public String getTemplate()
public void setTemplate(String template)
public boolean isHasBody()
public void setHasBody(boolean hasBody)
@Deprecated public String getOutputType()
@Deprecated public void setOutputType(String outputType)
outputType
- public String getBodyType()
public void setBodyType(String bodyType)
public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public Set<String> getCategories()
public void setCategories(Set<String> categories)
public String getIconLocation()
public void setIconLocation(String iconLocation)
public String getDocumentationUrl()
public void setDocumentationUrl(String documentationUrl)
public boolean isHidden()
public void setHidden(boolean hidden)
public List<MacroParameter> getParameters()
public void setParameters(List<MacroParameter> parameters)
public Macro toMacro()
public static Macro.BodyType deriveBodyType(UserMacroConfig config)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |