Class WidgetTypeResource
java.lang.Object
org.nuxeo.ecm.platform.forms.layout.export.WidgetTypeResource
Exports and presents documentation about widget type definitions
- Since:
- 5.4
- Author:
- Anahide Tchertchian
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected LayoutStore
protected final List<WidgetTypeDefinition>
protected final Map<String,
List<WidgetTypeDefinition>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TemplateView
getTemplate
(String name, javax.ws.rs.core.UriInfo uriInfo) getTemplate
(javax.ws.rs.core.UriInfo uriInfo) getWidgetTypeCategories
(WidgetTypeDefinition wTypeDef) getWidgetTypeDefinition
(javax.servlet.http.HttpServletRequest request, String name) getWidgetTypeDefinitions
(javax.servlet.http.HttpServletRequest request, String categories, String version, Boolean all) Returns widget types definitions for given categoriesgetWidgetTypeDefinitionsForCategory
(javax.servlet.http.HttpServletRequest request, String category, String version, Boolean all) Returns widget types definitions for given category.getWidgetTypeDescription
(WidgetTypeDefinition wTypeDef) getWidgetTypeLabel
(WidgetTypeDefinition wTypeDef) protected Map<String,
List<WidgetTypeDefinition>> getWikiDocumentation
(javax.ws.rs.core.UriInfo uriInfo) protected boolean
isStriclyBeforeVersion
(String ref, String version)
-
Field Details
-
category
-
service
-
widgetTypes
-
widgetTypesByCat
-
-
Constructor Details
-
WidgetTypeResource
-
-
Method Details
-
getWidgetTypesByCategory
-
getWidgetTypeDefinitions
public Object getWidgetTypeDefinitions(@Context javax.servlet.http.HttpServletRequest request, String categories, String version, Boolean all) Returns widget types definitions for given categoriesIf the category is null, the filter does not check the category. Widget types without a configuration are included if boolean 'all' is set to true. Mutliple categories are extracted from the query parameter by splitting on the space character.
If not null, the version parameter will exclude all widget types that did not exist before this version.
-
isStriclyBeforeVersion
-
getWidgetTypeDefinitionsForCategory
public Object getWidgetTypeDefinitionsForCategory(@Context javax.servlet.http.HttpServletRequest request, String category, String version, Boolean all) Returns widget types definitions for given category.If the category is null, the filter does not check the category. Widget types without a configuration are included if boolean 'all' is set to true.
If not null, the version parameter will exclude all widget types that did not exist before this version.
-
getWidgetTypeDefinition
-
getTemplate
-
getWikiDocumentation
-
getNuxeoVersions
-
getStudioCategories
-
getTemplate
-
doGet
-
getWidgetTypeLabel
-
getWidgetTypeDescription
-
getWidgetTypeCategories
-
getWidgetTypeCategoriesAsString
-