Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.container.server.service
Class WebContentSaverServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.opensocial.container.server.service.WebContentSaverServiceImpl
All Implemented Interfaces:
WebContentSaverService, org.nuxeo.runtime.model.Adaptable, org.nuxeo.runtime.model.Component, org.nuxeo.runtime.model.Extensible

public class WebContentSaverServiceImpl
extends org.nuxeo.runtime.model.DefaultComponent
implements WebContentSaverService

Author:
Stéphane Fourrier

Field Summary
static org.nuxeo.runtime.model.ComponentName NAME
           
 
Constructor Summary
WebContentSaverServiceImpl()
           
 
Method Summary
 void activate(org.nuxeo.runtime.model.ComponentContext context)
           
 WebContentData create(WebContentData data, String parentId, org.nuxeo.ecm.core.api.CoreSession session)
           
 void deactivate(org.nuxeo.runtime.model.ComponentContext context)
           
 void delete(WebContentData data, org.nuxeo.ecm.core.api.CoreSession session)
           
 String getDocTypeFor(WebContentData data)
           
 Class<?> getWebContentAdapterFor(org.nuxeo.ecm.core.api.DocumentModel doc)
           
 Class<?> getWebContentDAOFor(org.nuxeo.ecm.core.api.DocumentModel doc)
           
 WebContentData read(org.nuxeo.ecm.core.api.DocumentModel doc, org.nuxeo.ecm.core.api.CoreSession session)
           
 void registerContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor)
           
 void unregisterContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor)
           
 WebContentData update(WebContentData data, org.nuxeo.ecm.core.api.CoreSession session)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
applicationStarted, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final org.nuxeo.runtime.model.ComponentName NAME
Constructor Detail

WebContentSaverServiceImpl

public WebContentSaverServiceImpl()
Method Detail

create

public WebContentData create(WebContentData data,
                             String parentId,
                             org.nuxeo.ecm.core.api.CoreSession session)
                      throws Exception
Specified by:
create in interface WebContentSaverService
Throws:
Exception

read

public WebContentData read(org.nuxeo.ecm.core.api.DocumentModel doc,
                           org.nuxeo.ecm.core.api.CoreSession session)
                    throws Exception
Specified by:
read in interface WebContentSaverService
Throws:
Exception

update

public WebContentData update(WebContentData data,
                             org.nuxeo.ecm.core.api.CoreSession session)
                      throws Exception
Specified by:
update in interface WebContentSaverService
Throws:
Exception

delete

public void delete(WebContentData data,
                   org.nuxeo.ecm.core.api.CoreSession session)
            throws Exception
Specified by:
delete in interface WebContentSaverService
Throws:
Exception

getWebContentAdapterFor

public Class<?> getWebContentAdapterFor(org.nuxeo.ecm.core.api.DocumentModel doc)
Specified by:
getWebContentAdapterFor in interface WebContentSaverService

getWebContentDAOFor

public Class<?> getWebContentDAOFor(org.nuxeo.ecm.core.api.DocumentModel doc)
Specified by:
getWebContentDAOFor in interface WebContentSaverService

getDocTypeFor

public String getDocTypeFor(WebContentData data)
Specified by:
getDocTypeFor in interface WebContentSaverService

activate

public void activate(org.nuxeo.runtime.model.ComponentContext context)
Specified by:
activate in interface org.nuxeo.runtime.model.Component
Overrides:
activate in class org.nuxeo.runtime.model.DefaultComponent

deactivate

public void deactivate(org.nuxeo.runtime.model.ComponentContext context)
Specified by:
deactivate in interface org.nuxeo.runtime.model.Component
Overrides:
deactivate in class org.nuxeo.runtime.model.DefaultComponent

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 org.nuxeo.runtime.model.ComponentInstance contributor)
Overrides:
registerContribution in class org.nuxeo.runtime.model.DefaultComponent

unregisterContribution

public void unregisterContribution(Object contribution,
                                   String extensionPoint,
                                   org.nuxeo.runtime.model.ComponentInstance contributor)
Overrides:
unregisterContribution in class org.nuxeo.runtime.model.DefaultComponent

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.