public class DefaultPromotedTemplateService extends Object implements PromotedTemplateService
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PROMOTED_TEMPLATES |
| Constructor and Description |
|---|
DefaultPromotedTemplateService(com.atlassian.confluence.spaces.SpaceManager spaceManager,
com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.bandana.BandanaManager bandanaManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
demoteTemplate(long templateId,
String spaceKey)
Un-promote a user created template
|
List<Long> |
getPromotedTemplates(com.atlassian.confluence.spaces.Space space)
Gets all promoted templates for a space
|
void |
promoteTemplate(long templateId,
String spaceKey)
Promote a user created template
|
public static final String KEY_PROMOTED_TEMPLATES
public DefaultPromotedTemplateService(com.atlassian.confluence.spaces.SpaceManager spaceManager,
com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.bandana.BandanaManager bandanaManager)
public void promoteTemplate(long templateId,
@Nonnull
String spaceKey)
throws BlueprintIllegalArgumentException
PromotedTemplateServicepromoteTemplate in interface PromotedTemplateServicetemplateId - template idspaceKey - space in which the template is to be promoted or demotedBlueprintIllegalArgumentExceptionpublic void demoteTemplate(long templateId,
@Nonnull
String spaceKey)
throws BlueprintIllegalArgumentException
PromotedTemplateServicedemoteTemplate in interface PromotedTemplateServicetemplateId - template idspaceKey - space in which the template is to be promoted or demotedBlueprintIllegalArgumentExceptionpublic List<Long> getPromotedTemplates(@Nonnull com.atlassian.confluence.spaces.Space space)
PromotedTemplateServicegetPromotedTemplates in interface PromotedTemplateServicespace - space in which to get the promoted templatesCopyright © 2017 Atlassian. All rights reserved.