com.atlassian.studio.confluence.common.services
Class ConfluenceFlavourServiceImpl

java.lang.Object
  extended by com.atlassian.studio.confluence.common.services.ConfluenceFlavourServiceImpl
All Implemented Interfaces:
ConfluenceFlavourService

public class ConfluenceFlavourServiceImpl
extends Object
implements ConfluenceFlavourService


Constructor Summary
ConfluenceFlavourServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.PluginController pluginController, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceFlavourServiceImpl

public ConfluenceFlavourServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                    com.atlassian.plugin.PluginController pluginController,
                                    com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

initialiseFlavourFromLicense

public void initialiseFlavourFromLicense(com.atlassian.ondemand.internal.api.license.OnDemandLicense onDemandLicense)
Description copied from interface: ConfluenceFlavourService
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.

Specified by:
initialiseFlavourFromLicense in interface ConfluenceFlavourService

setFlavourFromLicense

public void setFlavourFromLicense(com.atlassian.ondemand.internal.api.license.OnDemandLicense onDemandLicense)
Description copied from interface: ConfluenceFlavourService
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.

Specified by:
setFlavourFromLicense in interface ConfluenceFlavourService
Parameters:
onDemandLicense - the license from which to determine the flavour to set.


Copyright © 2003–2015 Atlassian. All rights reserved.