public class WebContentSaverServiceImpl extends DefaultComponent implements WebContentSaverService
| Modifier and Type | Field and Description |
|---|---|
static ComponentName |
NAME |
| Constructor and Description |
|---|
WebContentSaverServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
WebContentData |
create(WebContentData data,
String parentId,
CoreSession session) |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
void |
delete(WebContentData data,
CoreSession session) |
String |
getDocTypeFor(WebContentData data) |
Class<?> |
getWebContentAdapterFor(DocumentModel doc) |
Class<?> |
getWebContentDAOFor(DocumentModel doc) |
WebContentData |
read(DocumentModel doc,
CoreSession session) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
WebContentData |
update(WebContentData data,
CoreSession session) |
applicationStarted, getAdapter, registerExtension, unregisterExtensionpublic static final ComponentName NAME
public WebContentData create(WebContentData data, String parentId, CoreSession session) throws Exception
create in interface WebContentSaverServiceExceptionpublic WebContentData read(DocumentModel doc, CoreSession session) throws Exception
read in interface WebContentSaverServiceExceptionpublic WebContentData update(WebContentData data, CoreSession session) throws Exception
update in interface WebContentSaverServiceExceptionpublic void delete(WebContentData data, CoreSession session) throws Exception
delete in interface WebContentSaverServiceExceptionpublic Class<?> getWebContentAdapterFor(DocumentModel doc)
getWebContentAdapterFor in interface WebContentSaverServicepublic Class<?> getWebContentDAOFor(DocumentModel doc)
getWebContentDAOFor in interface WebContentSaverServicepublic String getDocTypeFor(WebContentData data)
getDocTypeFor in interface WebContentSaverServicepublic void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentCopyright © 2011 Nuxeo SA. All Rights Reserved.