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, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final ComponentName NAME
public WebContentData create(WebContentData data, String parentId, CoreSession session) throws Exception
create
in interface WebContentSaverService
Exception
public WebContentData read(DocumentModel doc, CoreSession session) throws Exception
read
in interface WebContentSaverService
Exception
public WebContentData update(WebContentData data, CoreSession session) throws Exception
update
in interface WebContentSaverService
Exception
public void delete(WebContentData data, CoreSession session) throws Exception
delete
in interface WebContentSaverService
Exception
public Class<?> getWebContentAdapterFor(DocumentModel doc)
getWebContentAdapterFor
in interface WebContentSaverService
public Class<?> getWebContentDAOFor(DocumentModel doc)
getWebContentDAOFor
in interface WebContentSaverService
public String getDocTypeFor(WebContentData data)
getDocTypeFor
in interface WebContentSaverService
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic 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
Copyright © 2015 Nuxeo SA. All rights reserved.