Class MaintenanceServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.plugins.maintenance.service.impl.MaintenanceServiceImpl
-
- All Implemented Interfaces:
MaintenanceService
@Component public class MaintenanceServiceImpl extends Object implements MaintenanceService
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.plugins.maintenance.service.MaintenanceService
READ_ONLY_ACCESS_MODE_COMPATIBLE
-
-
Constructor Summary
Constructors Constructor Description MaintenanceServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager, GlobalSettingsManager settingsManager, I18NBeanFactory i18NBeanFactory, LicenseService licenseService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaintenanceInfo
getMaintenanceInfo()
Get the banner message for maintenance modeList<Addon>
getUserInstalledAddons()
Get all user-installed add-ons so that the admin can know which add-on is incompatible with the read only access mode for example.void
updateMaintenanceInfo(MaintenanceInfo maintenanceInfo)
Update the maintenance info
-
-
-
Constructor Detail
-
MaintenanceServiceImpl
@Autowired public MaintenanceServiceImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager, GlobalSettingsManager settingsManager, I18NBeanFactory i18NBeanFactory, LicenseService licenseService)
-
-
Method Detail
-
getUserInstalledAddons
public List<Addon> getUserInstalledAddons()
Description copied from interface:MaintenanceService
Get all user-installed add-ons so that the admin can know which add-on is incompatible with the read only access mode for example.- Specified by:
getUserInstalledAddons
in interfaceMaintenanceService
- Returns:
- a list of user-installed add-ons
-
updateMaintenanceInfo
public void updateMaintenanceInfo(MaintenanceInfo maintenanceInfo) throws ServiceException
Description copied from interface:MaintenanceService
Update the maintenance info- Specified by:
updateMaintenanceInfo
in interfaceMaintenanceService
- Parameters:
maintenanceInfo
- the maintenance info to be updated- Throws:
ServiceException
-
getMaintenanceInfo
public MaintenanceInfo getMaintenanceInfo()
Description copied from interface:MaintenanceService
Get the banner message for maintenance mode- Specified by:
getMaintenanceInfo
in interfaceMaintenanceService
- Returns:
- the maintenance info
-
-