Package com.hybris.cockpitng.modules
Interface CockpitModuleConnector
-
- All Known Implementing Classes:
AbstractCockpitModuleConnector,EmptyCockpitModuleConnector
public interface CockpitModuleConnectorConnector for cockpit modules, used byCockpitModuleComponentDefinitionServiceandXmlModuleAwarePersistenceServiceto access remote widgets and mashups.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>getCockpitModuleUrls()java.util.List<java.lang.String>getCustomModuleUrls()java.util.List<ModuleEntry>getDefaultModules()Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useCockpitApplicationContext.getLoadedModulesNames()LibraryHandlergetLibraryHandler(java.lang.String moduleUrl)CockpitModuleInfogetModuleInfo(java.lang.String moduleUrl)java.lang.StringgetWidgetTreeContent(java.lang.String moduleUrl)booleanisCustomModulesPermitted()voidsetCustomModuleUrls(java.util.List<java.lang.String> customModuleUrls)voidsetDefaultModules(java.util.List<ModuleEntry> defaultModules)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, not available anymoredefault voidupdateApplicationContextUri(ModuleInfo moduleInfo, java.lang.String contextUri)Updates specified modules application context extension uri.default voidupdateWidgetsExtension(ModuleInfo moduleInfo, java.lang.String widgetsExtension)Updates specified modules widget's mesh-up extension.
-
-
-
Method Detail
-
getCockpitModuleUrls
java.util.List<java.lang.String> getCockpitModuleUrls()
- Returns:
- All module urls currently defined in the system.
-
getModuleInfo
CockpitModuleInfo getModuleInfo(java.lang.String moduleUrl)
- Returns:
- The module info registered for the give moduleUrl.
-
getLibraryHandler
LibraryHandler getLibraryHandler(java.lang.String moduleUrl)
- Returns:
- The library handler for the given moduleUrl, which is responsible for loading the widget module library.
-
getWidgetTreeContent
java.lang.String getWidgetTreeContent(java.lang.String moduleUrl)
- Returns:
- The additional widget mashup provided by the the module with the given moduleUrl.
-
getDefaultModules
@Deprecated(since="1808", forRemoval=true) java.util.List<ModuleEntry> getDefaultModules()Deprecated, for removal: This API element is subject to removal in a future version.since 1808, useCockpitApplicationContext.getLoadedModulesNames()- Returns:
- Default cockpit modules. They are usually provided by the host of the cockpit ng webapp.
-
getCustomModuleUrls
java.util.List<java.lang.String> getCustomModuleUrls()
- Returns:
- URLs for custom cockpit modules. They can be added during runtime by a cockpit admininstrator.
-
isCustomModulesPermitted
boolean isCustomModulesPermitted()
- Returns:
- True, if administrator is allowed to add custom modules during runtime.
-
setDefaultModules
@Deprecated(since="1808", forRemoval=true) void setDefaultModules(java.util.List<ModuleEntry> defaultModules)Deprecated, for removal: This API element is subject to removal in a future version.since 1808, not available anymoreSeegetDefaultModules().
-
setCustomModuleUrls
void setCustomModuleUrls(java.util.List<java.lang.String> customModuleUrls)
-
updateWidgetsExtension
default void updateWidgetsExtension(ModuleInfo moduleInfo, java.lang.String widgetsExtension)
Updates specified modules widget's mesh-up extension.- Parameters:
moduleInfo- module info to be updatedwidgetsExtension- widget's mesh-up extension- See Also:
ModuleInfo.getWidgetsExtension()
-
updateApplicationContextUri
default void updateApplicationContextUri(ModuleInfo moduleInfo, java.lang.String contextUri)
Updates specified modules application context extension uri.- Parameters:
moduleInfo- module info to be updatedcontextUri- uri to application context extension- See Also:
ModuleInfo.getApplicationContextUri()
-
-