public class DefaultContentBlueprintManager extends AbstractAoManager<ContentBlueprint,ContentBlueprintAo> implements ContentBlueprintManager
ContentBlueprints.activeObjects, helperAoManager| Constructor and Description |
|---|
DefaultContentBlueprintManager(com.atlassian.activeobjects.external.ActiveObjects activeObjects,
com.atlassian.plugin.PluginAccessor pluginAccessor,
DefaultContentTemplateRefManager contentTemplateRefManager,
com.atlassian.confluence.util.i18n.I18NBeanFactory i18NBeanFactory,
com.atlassian.confluence.languages.LocaleManager localeManager,
LazyInsertExecutor lazyInsertExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected ContentBlueprint |
build(ContentBlueprintAo ao) |
List<ContentBlueprint> |
getAll(com.atlassian.confluence.spaces.Space space)
Gets all objects for this manager
|
ContentBlueprint |
getOrCreateCustomBlueprint(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey,
com.atlassian.confluence.spaces.Space space)
Returns the ContentBlueprint customised for the given space and having the specified module complete key.
|
ContentBlueprint |
getPluginBackedContentBlueprint(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey,
String spaceKey)
Returns a ContentBlueprint that originally came from a Plugin (and hence has a module complete key) but may have
a customised version for the given space.
|
ContentBlueprint |
getPluginBlueprint(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey)
Gets or creates a content blueprint clone in AO if its enabled, given its module complete moduleCompleteKey.
|
protected ContentBlueprintAo |
internalCreateAo(ContentBlueprint original) |
protected void |
internalDeleteAo(ContentBlueprintAo ao) |
protected ContentBlueprintAo |
internalUpdateAo(ContentBlueprint object) |
create, createAo, delete, delete, deleteAll, getAll, getAll, getAoById, getAosByModuleCompleteKey, getById, getCloneByModuleCompleteKey, getNonClonesByModuleCompleteKey, internalDeleteAllAo, internalGetAoById, internalGetAosByModuleCompleteKey, update, updateAoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createAo, delete, delete, deleteAll, getAll, getAoById, getById, getCloneByModuleCompleteKey, getNonClonesByModuleCompleteKey, update, updateAopublic DefaultContentBlueprintManager(@Nonnull com.atlassian.activeobjects.external.ActiveObjects activeObjects, @Nonnull com.atlassian.plugin.PluginAccessor pluginAccessor, @Nonnull DefaultContentTemplateRefManager contentTemplateRefManager, @Nonnull com.atlassian.confluence.util.i18n.I18NBeanFactory i18NBeanFactory, @Nonnull com.atlassian.confluence.languages.LocaleManager localeManager, @Nonnull LazyInsertExecutor lazyInsertExecutor)
@Nullable public ContentBlueprint getPluginBlueprint(@Nonnull com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey)
ContentBlueprintManagergetPluginBlueprint in interface ContentBlueprintManagermoduleCompleteKey - module complete key of the blueprint module@Nonnull public List<ContentBlueprint> getAll(com.atlassian.confluence.spaces.Space space)
ContentBlueprintManagergetAll in interface ContentBlueprintManager@Nullable public ContentBlueprint getPluginBackedContentBlueprint(com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey, String spaceKey)
ContentBlueprintManagergetPluginBackedContentBlueprint in interface ContentBlueprintManager@Nonnull protected ContentBlueprintAo internalCreateAo(@Nonnull ContentBlueprint original)
internalCreateAo in class AbstractAoManager<ContentBlueprint,ContentBlueprintAo>@Nonnull protected ContentBlueprintAo internalUpdateAo(@Nonnull ContentBlueprint object)
internalUpdateAo in class AbstractAoManager<ContentBlueprint,ContentBlueprintAo>@Nonnull public ContentBlueprint getOrCreateCustomBlueprint(@Nonnull com.atlassian.plugin.ModuleCompleteKey moduleCompleteKey, @Nullable com.atlassian.confluence.spaces.Space space)
ContentBlueprintManagergetOrCreateCustomBlueprint in interface ContentBlueprintManagermoduleCompleteKey - key of original plugin Blueprint to be customisedspace - space to look for overridden Blueprint - may be null for globalprotected void internalDeleteAo(@Nonnull ContentBlueprintAo ao)
internalDeleteAo in class AbstractAoManager<ContentBlueprint,ContentBlueprintAo>@Nonnull protected ContentBlueprint build(@Nonnull ContentBlueprintAo ao)
build in class AbstractAoManager<ContentBlueprint,ContentBlueprintAo>Copyright © 2017 Atlassian. All rights reserved.