Package org.alfresco.service.cmr.module
Interface ModuleService
- All Known Implementing Classes:
ModuleServiceImpl
@AlfrescoPublicApi
public interface ModuleService
A service to control and provide information about the currently-installed modules.
- Since:
- 2.0
- Author:
- Roy Wetherall, Derek Hulley
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of all the modules currently installed.Gets a list of the modules missing from the system.Gets the module details for a given module id.voidregisterComponent(ModuleComponent component) Register a component of a module for execution.voidvoidStart all the modules.
-
Method Details
-
getModule
Gets the module details for a given module id. If the module does not exist or is not installed then null is returned.- Parameters:
moduleId- a module id- Returns:
- the module details
-
getAllModules
List<ModuleDetails> getAllModules()Gets a list of all the modules currently installed.- Returns:
- module details of the currently installed modules.
-
getMissingModules
List<ModuleDetails> getMissingModules()Gets a list of the modules missing from the system.- Returns:
- module details of the modules missing from the system.
-
registerComponent
Register a component of a module for execution.- Parameters:
component- the module component.
-
startModules
void startModules()Start all the modules. For transaction purposes, each module should be regarded as a self-contained unit and started in its own transaction. Where inter-module dependencies exist, these will be pulled into the transaction. -
shutdownModules
void shutdownModules()
-