public class DefaultPromotedBlueprintService extends Object implements PromotedBlueprintService
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PROMOTED_BPS |
| Constructor and Description |
|---|
DefaultPromotedBlueprintService(ContentBlueprintManager contentBlueprintManager,
com.atlassian.bandana.BandanaManager bandanaManager,
com.atlassian.confluence.spaces.SpaceManager spaceManager,
com.atlassian.confluence.security.PermissionManager permissionManager,
BlueprintResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
demoteBlueprint(String blueprintId,
String spaceKey)
Unpromote a blueprint
|
Collection<ContentBlueprint> |
getPromotedBlueprints(Collection<ContentBlueprint> contentBlueprints,
com.atlassian.confluence.spaces.Space space)
Takes in a list of blueprints and returns the ones that are promoted in the specified space.
|
boolean |
promoteBlueprint(String blueprintId,
String spaceKey)
Promote a blueprint.
|
void |
promoteBlueprints(List<String> blueprintIds,
com.atlassian.confluence.spaces.Space space)
Promote a list of blueprints
|
public static final String KEY_PROMOTED_BPS
public DefaultPromotedBlueprintService(ContentBlueprintManager contentBlueprintManager, com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.confluence.spaces.SpaceManager spaceManager, com.atlassian.confluence.security.PermissionManager permissionManager, BlueprintResolver resolver)
@Nonnull public Collection<ContentBlueprint> getPromotedBlueprints(@Nonnull Collection<ContentBlueprint> contentBlueprints, @Nullable com.atlassian.confluence.spaces.Space space)
PromotedBlueprintServiceFiltering out enabled and disabled <blueprint>s are a separate concern.
getPromotedBlueprints in interface PromotedBlueprintServicepublic boolean promoteBlueprint(@Nonnull String blueprintId, @Nonnull String spaceKey) throws BlueprintIllegalArgumentException
PromotedBlueprintServicepromoteBlueprint in interface PromotedBlueprintServiceblueprintId - blueprint UUID stringspaceKey - space in which the blueprint is to be promoted or demotedBlueprintIllegalArgumentExceptionpublic boolean demoteBlueprint(@Nonnull String blueprintId, @Nonnull String spaceKey) throws BlueprintIllegalArgumentException
PromotedBlueprintServicedemoteBlueprint in interface PromotedBlueprintServiceblueprintId - blueprint UUID stringspaceKey - space in which the blueprint is to be promoted or demotedBlueprintIllegalArgumentExceptionpublic void promoteBlueprints(@Nonnull List<String> blueprintIds, @Nonnull com.atlassian.confluence.spaces.Space space)
PromotedBlueprintServicepromoteBlueprints in interface PromotedBlueprintServiceblueprintIds - List of blueprint UUID stringsspace - space in which the blueprints are to be promotedCopyright © 2017 Atlassian. All rights reserved.