public class EditableWindowServiceImpl extends org.nuxeo.runtime.model.DefaultComponent implements EditableWindowService
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA
Main nuxeo schema shared by all fragments
|
| Constructor and Description |
|---|
EditableWindowServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map.Entry<EwDescriptor,EditableWindow> |
findByCode(String code)
Get an EW by code
|
Map.Entry<EwDescriptor,EditableWindow> |
getEwEntry(org.nuxeo.ecm.core.api.DocumentModel doc,
String uri)
Get descriptor and instance of an EW
|
String |
prepareCreation(org.nuxeo.ecm.core.api.DocumentModel doc,
EditableWindow specific,
String category,
String region,
String belowUri,
String code2)
Initialize a default entry in the main EW schema
|
void |
registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor) |
public static String SCHEMA
public void registerContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor) throws Exception
registerContribution in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor) throws Exception
unregisterContribution in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic Map.Entry<EwDescriptor,EditableWindow> findByCode(String code) throws EwServiceException
EditableWindowServicefindByCode in interface EditableWindowServiceEwServiceExceptionpublic Map.Entry<EwDescriptor,EditableWindow> getEwEntry(org.nuxeo.ecm.core.api.DocumentModel doc, String uri) throws EwServiceException
EditableWindowServicegetEwEntry in interface EditableWindowServicedoc - nuxeo documenturi - id of the EWEwServiceExceptionpublic String prepareCreation(org.nuxeo.ecm.core.api.DocumentModel doc, EditableWindow specific, String category, String region, String belowUri, String code2) throws EwServiceException
prepareCreation in interface EditableWindowServicedoc - the current simplepageregion - the cms regionbelowUri - the position where the fragment goescode2 - EwServiceExceptionCopyright © 2018. All rights reserved.