public class DefaultCreateButtonService extends Object implements CreateButtonService
| Constructor and Description |
|---|
DefaultCreateButtonService(com.atlassian.confluence.user.UserAccessor userAccessor,
com.atlassian.confluence.core.FormatSettingsManager formatSettingsManager,
com.atlassian.confluence.languages.LocaleManager localeManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
com.atlassian.confluence.renderer.template.TemplateRenderer templateRenderer,
com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.confluence.setup.settings.SettingsManager settingsManager,
BlueprintResolver blueprintResolver) |
| Modifier and Type | Method and Description |
|---|---|
String |
renderBlueprintButton(com.atlassian.confluence.spaces.Space space,
String contentBlueprintId,
String blueprintModuleCompleteKey,
String buttonLabelKey,
String newPageTitle)
Render a button that launches the Create dialog for a Blueprint.
|
String |
renderTemplateButton(com.atlassian.confluence.spaces.Space space,
long templateId,
String buttonLabelKey,
String newPageTitle)
Render a button that launches the Create dialog for a Template.
|
public DefaultCreateButtonService(com.atlassian.confluence.user.UserAccessor userAccessor,
com.atlassian.confluence.core.FormatSettingsManager formatSettingsManager,
com.atlassian.confluence.languages.LocaleManager localeManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
com.atlassian.confluence.renderer.template.TemplateRenderer templateRenderer,
com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.confluence.setup.settings.SettingsManager settingsManager,
BlueprintResolver blueprintResolver)
public String renderBlueprintButton(com.atlassian.confluence.spaces.Space space, String contentBlueprintId, String blueprintModuleCompleteKey, String buttonLabelKey, String newPageTitle)
CreateButtonServiceDepending on the Blueprint used, the contentBlueprintId or the blueprintModuleCompleteKey may be blank.
renderBlueprintButton in interface CreateButtonServicespace - the space the new page will be created incontentBlueprintId - the id of the Blueprint the new page will be created fromblueprintModuleCompleteKey - the plugin module key of the Blueprint the new page will be created frombuttonLabelKey - (optional) the i18n key of the label for the Create buttonnewPageTitle - (optional) the i18ned title of the new page that will be createdpublic String renderTemplateButton(com.atlassian.confluence.spaces.Space space, long templateId, String buttonLabelKey, String newPageTitle)
CreateButtonServicerenderTemplateButton in interface CreateButtonServicespace - the space the new page will be created intemplateId - the id of the PageTemplate the new page will be created frombuttonLabelKey - (optional) the i18n key of the label for the Create buttonnewPageTitle - (optional) the i18ned title of the new page that will be createdCopyright © 2017 Atlassian. All rights reserved.