public class WidgetsAdapterServiceImpl extends org.nuxeo.runtime.model.DefaultComponent implements WidgetsAdapterService
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WidgetsAdapterServiceImpl.DefaultPortalViewId |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADAPTER_EXT_PT |
| Constructor and Description |
|---|
WidgetsAdapterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.nuxeo.runtime.model.ComponentContext context) |
void |
addPortalViewId(String viewId)
Add a portal view id.
|
void |
addPortalViewsIds(String... viewIds)
Add list of portal views ids.
|
protected boolean |
canOverride(org.nuxeo.ecm.platform.forms.layout.api.Widget nxWidget) |
protected void |
fillMappings(WidgetMappingDescriptor[] mappings) |
protected void |
fillTypeMappings(WidgetMappingTypeDescriptor[] widgetsTypesMapping) |
int |
getApplicationStartedOrder() |
String |
getCurrentPortalView() |
List<String> |
getNxFields(String nxWidgetName) |
org.nuxeo.ecm.platform.forms.layout.api.Widget |
getPortalViewWidget(org.nuxeo.ecm.platform.forms.layout.api.Widget nxWidget)
Gives the mapped nuxeo widget for portalView.
|
List<String> |
getPvFields(String pvWidgetName) |
Map<String,String> |
getWidgetsMappings() |
boolean |
isInPortalViewContext() |
void |
registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor) |
protected static final String ADAPTER_EXT_PT
public int getApplicationStartedOrder()
getApplicationStartedOrder in interface org.nuxeo.runtime.model.ComponentgetApplicationStartedOrder in class org.nuxeo.runtime.model.DefaultComponentpublic void activate(org.nuxeo.runtime.model.ComponentContext context)
throws Exception
activate in interface org.nuxeo.runtime.model.Componentactivate in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic Map<String,String> getWidgetsMappings()
getWidgetsMappings in interface WidgetsAdapterServicepublic String getCurrentPortalView()
getCurrentPortalView in interface WidgetsAdapterServicepublic boolean isInPortalViewContext()
isInPortalViewContext in interface WidgetsAdapterServicepublic List<String> getNxFields(String nxWidgetName)
getNxFields in interface WidgetsAdapterServicepublic List<String> getPvFields(String pvWidgetName)
getPvFields in interface WidgetsAdapterServicepublic org.nuxeo.ecm.platform.forms.layout.api.Widget getPortalViewWidget(org.nuxeo.ecm.platform.forms.layout.api.Widget nxWidget)
throws Exception
getPortalViewWidget in interface WidgetsAdapterServiceExceptionprotected boolean canOverride(org.nuxeo.ecm.platform.forms.layout.api.Widget nxWidget)
nxWidget - public void registerContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor) throws Exception
registerContribution in class org.nuxeo.runtime.model.DefaultComponentExceptionprotected void fillTypeMappings(WidgetMappingTypeDescriptor[] widgetsTypesMapping)
protected void fillMappings(WidgetMappingDescriptor[] mappings)
public void addPortalViewId(String viewId)
WidgetsAdapterServiceaddPortalViewId in interface WidgetsAdapterServicepublic void addPortalViewsIds(String... viewIds)
WidgetsAdapterServiceaddPortalViewsIds in interface WidgetsAdapterServiceCopyright © 2020. All rights reserved.