org.nuxeo.opensocial.container.server.webcontent.abs
Class AbstractWebContentDAO<T extends WebContentData>
java.lang.Object
org.nuxeo.opensocial.container.server.webcontent.abs.AbstractWebContentDAO<T>
- All Implemented Interfaces:
- WebContentDAO<T>
- Direct Known Subclasses:
- HTMLDAO, OpenSocialDAO, PictureDAO
public abstract class AbstractWebContentDAO<T extends WebContentData>
- extends Object
- implements WebContentDAO<T>
- Author:
- Stéphane Fourrier
Method Summary |
T |
create(T data,
String parentId,
org.nuxeo.ecm.core.api.CoreSession session)
|
void |
delete(T webContent,
org.nuxeo.ecm.core.api.CoreSession session)
|
T |
read(org.nuxeo.ecm.core.api.DocumentModel doc,
org.nuxeo.ecm.core.api.CoreSession session)
|
T |
update(T webContent,
org.nuxeo.ecm.core.api.CoreSession session)
|
AbstractWebContentDAO
public AbstractWebContentDAO()
create
public T create(T data,
String parentId,
org.nuxeo.ecm.core.api.CoreSession session)
throws Exception
- Specified by:
create
in interface WebContentDAO<T extends WebContentData>
- Throws:
Exception
read
public T read(org.nuxeo.ecm.core.api.DocumentModel doc,
org.nuxeo.ecm.core.api.CoreSession session)
throws org.nuxeo.ecm.core.api.ClientException
- Specified by:
read
in interface WebContentDAO<T extends WebContentData>
- Throws:
org.nuxeo.ecm.core.api.ClientException
update
public T update(T webContent,
org.nuxeo.ecm.core.api.CoreSession session)
throws org.nuxeo.ecm.core.api.ClientException
- Specified by:
update
in interface WebContentDAO<T extends WebContentData>
- Throws:
org.nuxeo.ecm.core.api.ClientException
delete
public void delete(T webContent,
org.nuxeo.ecm.core.api.CoreSession session)
throws org.nuxeo.ecm.core.api.ClientException
- Specified by:
delete
in interface WebContentDAO<T extends WebContentData>
- Throws:
org.nuxeo.ecm.core.api.ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.