Class LayoutStoreImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.forms.layout.core.service.LayoutStoreImpl
- All Implemented Interfaces:
Serializable
,LayoutStore
,Adaptable
,Component
,Extensible
,TimestampedService
- Since:
- 5.5
- Author:
- Anahide Tchertchian
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected final Map<String,
LayoutConverterRegistry> static final String
protected final Map<String,
LayoutDefinitionRegistry> protected final Map<String,
LayoutTypeDefinitionRegistry> static final String
static final String
protected final Map<String,
WidgetConverterRegistry> static final String
protected final Map<String,
WidgetDefinitionRegistry> protected final Map<String,
WidgetTypeDefinitionRegistry> protected final Map<String,
WidgetTypeRegistry> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns categories of layout and widgets definitions and instances held by this service.getLayoutConverters
(String category) getLayoutDefinition
(String category, String layoutName) Returns the registered layout definition for this name.getLayoutDefinitionNames
(String category) Returns the names of all the registered layout definitionsgetLayoutTypeDefinition
(String category, String typeName) getLayoutTypeDefinitions
(String category) getWidgetConverters
(String category) getWidgetDefinition
(String category, String widgetName) Returns the registered widget definition for this name.getWidgetType
(String category, String typeName) Returns the registered widget type for this type name.getWidgetTypeDefinition
(String category, String typeName) Returns the widget type definition with given name, or null if no widget type with this name is found.getWidgetTypeDefinitions
(String category) Returns the widget type definitions for all the registered widget types.void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
registerLayout
(String category, LayoutDefinition layoutDef) void
registerLayoutConverter
(String category, LayoutConverterDescriptor layoutConverter) void
registerLayoutType
(String category, LayoutTypeDefinition layoutTypeDef) void
registerWidget
(String category, WidgetDefinition widgetDef) void
registerWidgetConverter
(String category, WidgetConverterDescriptor widgetConverter) void
registerWidgetType
(String category, WidgetTypeDefinition desc) void
unregisterContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
unregisterLayout
(String category, LayoutDefinition layoutDef) void
unregisterLayoutConverter
(String category, LayoutConverterDescriptor layoutConverter) void
unregisterLayoutType
(String category, LayoutTypeDefinition layoutTypeDef) void
unregisterWidget
(String category, WidgetDefinition widgetDef) void
unregisterWidgetConverter
(String category, WidgetConverterDescriptor widgetConverter) void
unregisterWidgetType
(String category, WidgetTypeDefinition desc) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
WIDGET_TYPES_EP_NAME
- See Also:
-
LAYOUT_TYPES_EP_NAME
- Since:
- 6.0
- See Also:
-
WIDGETS_EP_NAME
- See Also:
-
LAYOUTS_EP_NAME
- See Also:
-
LAYOUT_CONVERTERS_EP_NAME
- See Also:
-
WIDGET_CONVERTERS_EP_NAME
- See Also:
-
widgetTypesByCat
-
widgetTypeDefsByCat
-
layoutTypeDefsByCat
-
layoutsByCat
-
widgetsByCat
-
widgetConvertersByCat
-
layoutConvertersByCat
-
-
Constructor Details
-
LayoutStoreImpl
public LayoutStoreImpl()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
getCategories
Description copied from interface:LayoutStore
Returns categories of layout and widgets definitions and instances held by this service.- Specified by:
getCategories
in interfaceLayoutStore
-
registerWidgetType
- Specified by:
registerWidgetType
in interfaceLayoutStore
-
unregisterWidgetType
- Specified by:
unregisterWidgetType
in interfaceLayoutStore
-
registerLayoutType
- Specified by:
registerLayoutType
in interfaceLayoutStore
-
unregisterLayoutType
- Specified by:
unregisterLayoutType
in interfaceLayoutStore
-
registerLayout
- Specified by:
registerLayout
in interfaceLayoutStore
-
unregisterLayout
- Specified by:
unregisterLayout
in interfaceLayoutStore
-
registerWidget
- Specified by:
registerWidget
in interfaceLayoutStore
-
unregisterWidget
- Specified by:
unregisterWidget
in interfaceLayoutStore
-
registerLayoutConverter
-
unregisterLayoutConverter
-
registerWidgetConverter
-
unregisterWidgetConverter
-
getWidgetType
Description copied from interface:LayoutStore
Returns the registered widget type for this type name.If the no widget type is found with this name, return null.
- Specified by:
getWidgetType
in interfaceLayoutStore
-
getWidgetTypeDefinition
Description copied from interface:LayoutStore
Returns the widget type definition with given name, or null if no widget type with this name is found.- Specified by:
getWidgetTypeDefinition
in interfaceLayoutStore
-
getWidgetTypeDefinitions
Description copied from interface:LayoutStore
Returns the widget type definitions for all the registered widget types.- Specified by:
getWidgetTypeDefinitions
in interfaceLayoutStore
-
getLayoutTypeDefinition
- Specified by:
getLayoutTypeDefinition
in interfaceLayoutStore
-
getLayoutTypeDefinitions
- Specified by:
getLayoutTypeDefinitions
in interfaceLayoutStore
-
getLayoutDefinition
Description copied from interface:LayoutStore
Returns the registered layout definition for this name.If the no definition is found with this name, return null.
- Specified by:
getLayoutDefinition
in interfaceLayoutStore
-
getLayoutDefinitionNames
Description copied from interface:LayoutStore
Returns the names of all the registered layout definitions- Specified by:
getLayoutDefinitionNames
in interfaceLayoutStore
-
getWidgetDefinition
Description copied from interface:LayoutStore
Returns the registered widget definition for this name.If the no definition is found with this name, return null.
- Specified by:
getWidgetDefinition
in interfaceLayoutStore
-
getLayoutConverters
- Specified by:
getLayoutConverters
in interfaceLayoutStore
-
getWidgetConverters
- Specified by:
getWidgetConverters
in interfaceLayoutStore
-