org.apache.portals.graffito.services.core.impl
Class ContentVersionServiceImpl
java.lang.Object
org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
org.apache.portals.graffito.services.core.impl.ContentVersionServiceImpl
- All Implemented Interfaces:
- org.apache.portals.graffito.services.core.ContentVersionService
public class ContentVersionServiceImpl
- extends BaseContentServiceImpl
- implements org.apache.portals.graffito.services.core.ContentVersionService
Default implementation for ContentVersionService
.
- Version:
- $Id: ContentVersionServiceImpl.java,v 1.1 2004/12/22 20:36:59 christophe Exp $
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Method Summary |
void |
addInHistory(java.lang.String uri,
org.apache.portals.graffito.model.core.VersionnedContent previousContent,
org.apache.portals.graffito.model.core.VersionnedContent newContent)
|
org.apache.portals.graffito.model.core.VersionnedContent |
createMajorVersion(java.lang.String uri)
|
org.apache.portals.graffito.model.core.VersionnedContent |
createMinorVersion(java.lang.String uri)
|
org.apache.portals.graffito.model.core.HistoryElement |
getHistory(java.lang.String uri)
|
org.apache.portals.graffito.model.core.HistoryElement |
getHistory(org.apache.portals.graffito.model.core.VersionnedContent content)
|
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
ContentVersionServiceImpl
public ContentVersionServiceImpl(ContentPersistenceService persistenceService)
- Constructor : initialise with the persistenceService service
- Parameters:
persistenceService
- the associated PersistenceService
createMajorVersion
public org.apache.portals.graffito.model.core.VersionnedContent createMajorVersion(java.lang.String uri)
throws org.apache.portals.graffito.exception.CmsInstantiateException
- Specified by:
createMajorVersion
in interface org.apache.portals.graffito.services.core.ContentVersionService
- Throws:
org.apache.portals.graffito.exception.CmsInstantiateException
- See Also:
ContentVersionService.createMajorVersion(java.lang.String)
createMinorVersion
public org.apache.portals.graffito.model.core.VersionnedContent createMinorVersion(java.lang.String uri)
throws org.apache.portals.graffito.exception.CmsInstantiateException
- Specified by:
createMinorVersion
in interface org.apache.portals.graffito.services.core.ContentVersionService
- Throws:
org.apache.portals.graffito.exception.CmsInstantiateException
- See Also:
ContentVersionService.createMinorVersion(java.lang.String)
getHistory
public org.apache.portals.graffito.model.core.HistoryElement getHistory(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getHistory
in interface org.apache.portals.graffito.services.core.ContentVersionService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentVersionService.getHistory(java.lang.String)
getHistory
public org.apache.portals.graffito.model.core.HistoryElement getHistory(org.apache.portals.graffito.model.core.VersionnedContent content)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getHistory
in interface org.apache.portals.graffito.services.core.ContentVersionService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentVersionService.getHistory(org.apache.portals.graffito.model.core.VersionnedContent)
addInHistory
public void addInHistory(java.lang.String uri,
org.apache.portals.graffito.model.core.VersionnedContent previousContent,
org.apache.portals.graffito.model.core.VersionnedContent newContent)
throws org.apache.portals.graffito.exception.CmsInstantiateException
- Specified by:
addInHistory
in interface org.apache.portals.graffito.services.core.ContentVersionService
- Throws:
org.apache.portals.graffito.exception.CmsInstantiateException
- See Also:
ContentVersionService.addInHistory(java.lang.String, org.apache.portals.graffito.model.core.VersionnedContent, org.apache.portals.graffito.model.core.VersionnedContent)
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.