org.apache.portals.graffito.services.dm.impl
Class DocumentModelServiceImpl
java.lang.Object
org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
org.apache.portals.graffito.services.dm.impl.DocumentModelServiceImpl
- All Implemented Interfaces:
- org.apache.portals.graffito.services.dm.DocumentModelService
public class DocumentModelServiceImpl
- extends BaseContentServiceImpl
- implements org.apache.portals.graffito.services.dm.DocumentModelService
Default implementation for DocumentModelService
.
- Version:
- $Id: ContentModelServiceImpl.java,v 1.1 2004/12/22 20:37:00 christophe Exp $
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Constructor Summary |
DocumentModelServiceImpl(ContentPersistenceService persistenceService,
org.apache.portals.graffito.services.core.ContentVersionService contentVersionService)
Constructor : initialise with the persistenceService service & the search service. |
Method Summary |
void |
addDocument(org.apache.portals.graffito.model.dm.Document document)
|
org.apache.portals.graffito.model.dm.Document |
createDocument()
|
org.apache.portals.graffito.model.dm.Document |
getDocument(java.lang.String uri)
|
org.apache.portals.graffito.model.dm.Document |
getDocument(java.lang.String uri,
java.lang.String versionNumber)
|
void |
removeDocument(org.apache.portals.graffito.model.dm.Document document)
|
void |
updateDocument(org.apache.portals.graffito.model.dm.Document document)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
DocumentModelServiceImpl
public DocumentModelServiceImpl(ContentPersistenceService persistenceService,
org.apache.portals.graffito.services.core.ContentVersionService contentVersionService)
- Constructor : initialise with the persistenceService service & the search service.
- Parameters:
persistenceService
- The associated PersistenceServicecontentVersionService
- The associated version service
addDocument
public void addDocument(org.apache.portals.graffito.model.dm.Document document)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
addDocument
in interface org.apache.portals.graffito.services.dm.DocumentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
DocumentModelService.addDocument(org.apache.portals.graffito.model.dm.Document)
createDocument
public org.apache.portals.graffito.model.dm.Document createDocument()
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createDocument
in interface org.apache.portals.graffito.services.dm.DocumentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
DocumentModelService.createDocument()
getDocument
public org.apache.portals.graffito.model.dm.Document getDocument(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getDocument
in interface org.apache.portals.graffito.services.dm.DocumentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
DocumentModelService.getDocument(java.lang.String)
getDocument
public org.apache.portals.graffito.model.dm.Document getDocument(java.lang.String uri,
java.lang.String versionNumber)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getDocument
in interface org.apache.portals.graffito.services.dm.DocumentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
DocumentModelService.getDocument(java.lang.String, java.lang.String)
removeDocument
public void removeDocument(org.apache.portals.graffito.model.dm.Document document)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
removeDocument
in interface org.apache.portals.graffito.services.dm.DocumentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
DocumentModelService.removeDocument(org.apache.portals.graffito.model.dm.Document)
updateDocument
public void updateDocument(org.apache.portals.graffito.model.dm.Document document)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
updateDocument
in interface org.apache.portals.graffito.services.dm.DocumentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
DocumentModelService.updateDocument(org.apache.portals.graffito.model.dm.Document)
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.