public interface BlueprintStateController
Manages the state (enabled/disabled) of Content Blueprint content blueprint plugin modules on a per space basis.
This is similar to PluginController which manages this state on a global level.
| Modifier and Type | Method and Description |
|---|---|
void |
disableBlueprint(UUID blueprintId,
com.atlassian.confluence.spaces.Space space)
Disable a content blueprint plugin by its id for a particular space, or globally if space is null.
|
void |
disableBlueprints(Set<UUID> blueprintIds,
com.atlassian.confluence.spaces.Space space)
Disable a set of content blueprint plugin ids for a particular space, or globally if space is null.
|
void |
enableBlueprint(UUID blueprintId,
com.atlassian.confluence.spaces.Space space)
Enable a content blueprint plugin id for a particular space, or globally if space is null.
|
Map<UUID,BlueprintState> |
getAllContentBlueprintState(String section,
com.atlassian.confluence.user.ConfluenceUser user,
com.atlassian.confluence.spaces.Space space)
Returns a set of blueprint keys that are available to a user in a given space.
|
Set<UUID> |
getDisabledBlueprintIds(com.atlassian.confluence.spaces.Space space)
Returns a set of disabled blueprints UUIDs.
|
Set<String> |
getDisabledBlueprintModuleCompleteKeys(com.atlassian.confluence.spaces.Space space)
Returns a set of disabled blueprints module complete keys.
|
void enableBlueprint(UUID blueprintId, com.atlassian.confluence.spaces.Space space)
blueprintId - id of the blueprint to be enabledspace - the space to enable this module invoid disableBlueprint(UUID blueprintId, com.atlassian.confluence.spaces.Space space)
blueprintId - id of the blueprint to be disabledspace - the space to disable this module invoid disableBlueprints(Set<UUID> blueprintIds, com.atlassian.confluence.spaces.Space space)
blueprintIds - set of blueprint ids to be disabledspace - the space to disable this module inSet<UUID> getDisabledBlueprintIds(com.atlassian.confluence.spaces.Space space)
space - (required) the spaceSet<String> getDisabledBlueprintModuleCompleteKeys(com.atlassian.confluence.spaces.Space space)
space - (required) the spaceMap<UUID,BlueprintState> getAllContentBlueprintState(@Nonnull String section, @Nullable com.atlassian.confluence.user.ConfluenceUser user, @Nullable com.atlassian.confluence.spaces.Space space)
user - (optional) the user. null for anonymousspace - (optional) the space. If null is specified, disabled in space state will be false for all resultsCopyright © 2017 Atlassian. All rights reserved.