com.atlassian.studio.confluence.common.services
Interface ConfluenceFlavourService

All Known Implementing Classes:
ConfluenceFlavourServiceImpl

public interface ConfluenceFlavourService

Toggles the Confluence Flavour between ALACARTE and STANDALONE based on license. Maintains the state of plugins that should be enabled or disabled for the new Confluence Flavour.

Uses the plugin accessor. Has a sister class in the confluence-studio-host-components package called the com.atlassian.studio.confluence.startup.OnDemandPluginMaintainerService. The difference is that this class is supposed to maintain the plugins while the instance is running and the OnDemandPluginMaintainerService is supposed to setup the plugin system before the plugin system is even started.


Method Summary
 void initialiseFlavourFromLicense(com.atlassian.ondemand.internal.api.license.OnDemandLicense onDemandLicense)
          Initialises the Confluence Flavour based on the supplied license.
 void setFlavourFromLicense(com.atlassian.ondemand.internal.api.license.OnDemandLicense onDemandLicense)
          Updates the Confluence Flavour based on the supplied license.
 

Method Detail

initialiseFlavourFromLicense

void initialiseFlavourFromLicense(com.atlassian.ondemand.internal.api.license.OnDemandLicense onDemandLicense)
Initialises the Confluence Flavour based on the supplied license. Intended for invocation during startup. Does not toggle plugins or fire events, since that can only be done safely once Confluence has started.


setFlavourFromLicense

void setFlavourFromLicense(com.atlassian.ondemand.internal.api.license.OnDemandLicense onDemandLicense)
Updates the Confluence Flavour based on the supplied license. Decides which plugins should be enabled and disabled. It will first disable all of the plugins that are not required and it will then enable all of the plugins that should be up in one big hit. It will not change the state of a plugin that does not need to be changed. Please note that this function must be implemented in a thread safe manner as multiple people may attempt to change the state of the confluence flavour at the same time.

Parameters:
onDemandLicense - the license from which to determine the flavour to set.


Copyright © 2003-2014 Atlassian. All Rights Reserved.