public class LayoutStoreImpl extends DefaultComponent implements LayoutStore
Modifier and Type | Field and Description |
---|---|
static String |
LAYOUT_CONVERTERS_EP_NAME |
static String |
LAYOUT_TYPES_EP_NAME |
protected Map<String,LayoutConverterRegistry> |
layoutConvertersByCat |
static String |
LAYOUTS_EP_NAME |
protected Map<String,LayoutDefinitionRegistry> |
layoutsByCat |
protected Map<String,LayoutTypeDefinitionRegistry> |
layoutTypeDefsByCat |
static String |
WIDGET_CONVERTERS_EP_NAME |
static String |
WIDGET_TYPES_EP_NAME |
protected Map<String,WidgetConverterRegistry> |
widgetConvertersByCat |
static String |
WIDGETS_EP_NAME |
protected Map<String,WidgetDefinitionRegistry> |
widgetsByCat |
protected Map<String,WidgetTypeDefinitionRegistry> |
widgetTypeDefsByCat |
protected Map<String,WidgetTypeRegistry> |
widgetTypesByCat |
lastModified
Constructor and Description |
---|
LayoutStoreImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCategories()
Returns categories of layout and widgets definitions and instances held by this service.
|
List<LayoutDefinitionConverter> |
getLayoutConverters(String category) |
LayoutDefinition |
getLayoutDefinition(String category,
String layoutName)
Returns the registered layout definition for this name.
|
List<String> |
getLayoutDefinitionNames(String category)
Returns the names of all the registered layout definitions
|
LayoutTypeDefinition |
getLayoutTypeDefinition(String category,
String typeName) |
List<LayoutTypeDefinition> |
getLayoutTypeDefinitions(String category) |
List<WidgetDefinitionConverter> |
getWidgetConverters(String category) |
WidgetDefinition |
getWidgetDefinition(String category,
String widgetName)
Returns the registered widget definition for this name.
|
WidgetType |
getWidgetType(String category,
String typeName)
Returns the registered widget type for this type name.
|
WidgetTypeDefinition |
getWidgetTypeDefinition(String category,
String typeName)
Returns the widget type definition with given name, or null if no widget type with this name is found.
|
List<WidgetTypeDefinition> |
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) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
public static final String WIDGET_TYPES_EP_NAME
public static final String LAYOUT_TYPES_EP_NAME
public static final String WIDGETS_EP_NAME
public static final String LAYOUTS_EP_NAME
public static final String LAYOUT_CONVERTERS_EP_NAME
public static final String WIDGET_CONVERTERS_EP_NAME
protected final Map<String,WidgetTypeRegistry> widgetTypesByCat
protected final Map<String,WidgetTypeDefinitionRegistry> widgetTypeDefsByCat
protected final Map<String,LayoutTypeDefinitionRegistry> layoutTypeDefsByCat
protected final Map<String,LayoutDefinitionRegistry> layoutsByCat
protected final Map<String,WidgetDefinitionRegistry> widgetsByCat
protected final Map<String,WidgetConverterRegistry> widgetConvertersByCat
protected final Map<String,LayoutConverterRegistry> layoutConvertersByCat
public LayoutStoreImpl()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public List<String> getCategories()
LayoutStore
getCategories
in interface LayoutStore
public void registerWidgetType(String category, WidgetTypeDefinition desc)
registerWidgetType
in interface LayoutStore
public void unregisterWidgetType(String category, WidgetTypeDefinition desc)
unregisterWidgetType
in interface LayoutStore
public void registerLayoutType(String category, LayoutTypeDefinition layoutTypeDef)
registerLayoutType
in interface LayoutStore
public void unregisterLayoutType(String category, LayoutTypeDefinition layoutTypeDef)
unregisterLayoutType
in interface LayoutStore
public void registerLayout(String category, LayoutDefinition layoutDef)
registerLayout
in interface LayoutStore
public void unregisterLayout(String category, LayoutDefinition layoutDef)
unregisterLayout
in interface LayoutStore
public void registerWidget(String category, WidgetDefinition widgetDef)
registerWidget
in interface LayoutStore
public void unregisterWidget(String category, WidgetDefinition widgetDef)
unregisterWidget
in interface LayoutStore
public void registerLayoutConverter(String category, LayoutConverterDescriptor layoutConverter)
public void unregisterLayoutConverter(String category, LayoutConverterDescriptor layoutConverter)
public void registerWidgetConverter(String category, WidgetConverterDescriptor widgetConverter)
public void unregisterWidgetConverter(String category, WidgetConverterDescriptor widgetConverter)
public WidgetType getWidgetType(String category, String typeName)
LayoutStore
If the no widget type is found with this name, return null.
getWidgetType
in interface LayoutStore
public WidgetTypeDefinition getWidgetTypeDefinition(String category, String typeName)
LayoutStore
getWidgetTypeDefinition
in interface LayoutStore
public List<WidgetTypeDefinition> getWidgetTypeDefinitions(String category)
LayoutStore
getWidgetTypeDefinitions
in interface LayoutStore
public LayoutTypeDefinition getLayoutTypeDefinition(String category, String typeName)
getLayoutTypeDefinition
in interface LayoutStore
public List<LayoutTypeDefinition> getLayoutTypeDefinitions(String category)
getLayoutTypeDefinitions
in interface LayoutStore
public LayoutDefinition getLayoutDefinition(String category, String layoutName)
LayoutStore
If the no definition is found with this name, return null.
getLayoutDefinition
in interface LayoutStore
public List<String> getLayoutDefinitionNames(String category)
LayoutStore
getLayoutDefinitionNames
in interface LayoutStore
public WidgetDefinition getWidgetDefinition(String category, String widgetName)
LayoutStore
If the no definition is found with this name, return null.
getWidgetDefinition
in interface LayoutStore
public List<LayoutDefinitionConverter> getLayoutConverters(String category)
getLayoutConverters
in interface LayoutStore
public List<WidgetDefinitionConverter> getWidgetConverters(String category)
getWidgetConverters
in interface LayoutStore
Copyright © 2015 Nuxeo SA. All rights reserved.