@ExperimentalApi public enum BlueprintContextKeys extends Enum<BlueprintContextKeys>
ContextProvider implementations.
These enum values should be used instead of Strings in the deprecated BlueprintConstants class, but if
possible you should have your ContextProvider implementation extend the AbstractBlueprintContextProvider
abstract class so that you can work with the BlueprintContext object and not the simple context map.
| Enum Constant and Description |
|---|
ANALYTICS_KEY
The label that will be used for tracking usage of a given Blueprint.
|
BLUEPRINT_ID
The UUID of the Blueprint used to create content.
|
BLUEPRINT_MODULE_KEY
The complete plugin-module key of the Blueprint used to create the content.
|
CONTENT_PAGE_TITLE
The title that the content (page, blog) should have.
|
CREATE_FROM_TEMPLATE_LABEL
If a Blueprint renders a "Create-from-Template" macro, this is the label for the macro's button.
|
CREATE_RESULT
The action to take after a Blueprint page is started from a template:
- 'edit' to create a draft and view it in the Editor
- 'view' to create the page and view it
|
NO_PAGE_TITLE_PREFIX
Set to true in the context for a Space Blueprint if pages created in a hierarchy should not be prefixed with
the Space home page's title.
|
SPACE_KEY
The key of the space the Blueprint content will be created in.
|
TEMPLATE_LABEL
The label that will be added to the Blueprint Content to identify it.
|
| Modifier and Type | Method and Description |
|---|---|
String |
key() |
static BlueprintContextKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlueprintContextKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlueprintContextKeys SPACE_KEY
public static final BlueprintContextKeys BLUEPRINT_MODULE_KEY
public static final BlueprintContextKeys BLUEPRINT_ID
public static final BlueprintContextKeys TEMPLATE_LABEL
public static final BlueprintContextKeys ANALYTICS_KEY
public static final BlueprintContextKeys CREATE_RESULT
public static final BlueprintContextKeys CREATE_FROM_TEMPLATE_LABEL
public static final BlueprintContextKeys CONTENT_PAGE_TITLE
Try to use BlueprintContext.setTitle(String) instead.
public static final BlueprintContextKeys NO_PAGE_TITLE_PREFIX
public static BlueprintContextKeys[] values()
for (BlueprintContextKeys c : BlueprintContextKeys.values()) System.out.println(c);
public static BlueprintContextKeys valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String key()
Copyright © 2017 Atlassian. All rights reserved.