org.apache.portals.graffito.services.core.impl
Class ContentModelServiceImpl
java.lang.Object
org.apache.portals.graffito.services.core.impl.BaseContentServiceImpl
org.apache.portals.graffito.services.core.impl.ContentModelServiceImpl
- All Implemented Interfaces:
- org.apache.portals.graffito.services.core.ContentModelService
public class ContentModelServiceImpl
- extends BaseContentServiceImpl
- implements org.apache.portals.graffito.services.core.ContentModelService
Default implementation for ContentModelService
.
- 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 |
ContentModelServiceImpl(ContentPersistenceService persistenceService,
org.apache.portals.graffito.services.core.ContentVersionService contentVersionService)
Constructor : initialise with the persistenceService service & the search service. |
Method Summary |
void |
addContent(org.apache.portals.graffito.model.core.Content content)
|
void |
addFolder(org.apache.portals.graffito.model.core.Folder folder)
|
void |
addLink(org.apache.portals.graffito.model.core.Link link)
|
void |
addVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent content)
|
org.apache.portals.graffito.model.core.Content |
createContent()
|
org.apache.portals.graffito.model.core.Content |
createContent(java.lang.String contentName)
|
org.apache.portals.graffito.model.core.Folder |
createFolder()
|
org.apache.portals.graffito.model.core.Link |
createLink()
|
org.apache.portals.graffito.model.core.VersionnedContent |
createVersionnedContent()
|
org.apache.portals.graffito.model.core.VersionnedContent |
createVersionnedContent(java.lang.String contentName)
|
java.util.Collection |
getChildren(org.apache.portals.graffito.model.core.Folder folder)
|
java.util.Collection |
getChildren(java.lang.String parentUri)
|
org.apache.portals.graffito.model.core.CmsObject |
getCmsObject(java.lang.String uri)
|
org.apache.portals.graffito.model.core.Content |
getContent(java.lang.String uri)
|
java.util.Collection |
getContents(java.lang.String parentUri)
|
org.apache.portals.graffito.model.core.Folder |
getFolder(java.lang.String uri)
|
java.util.Collection |
getFolders(java.lang.String parentUri)
|
org.apache.portals.graffito.model.core.Link |
getLink(java.lang.String uri)
|
java.util.Collection |
getLinks(java.lang.String parentUri)
|
org.apache.portals.graffito.model.core.VersionnedContent |
getVersionnedContent(java.lang.String uri)
|
org.apache.portals.graffito.model.core.VersionnedContent |
getVersionnedContent(java.lang.String uri,
java.lang.String versionNumber)
|
void |
removeAll(java.lang.String[] uris)
|
void |
removeContent(org.apache.portals.graffito.model.core.Content content)
|
void |
removeFolder(org.apache.portals.graffito.model.core.Folder folder)
|
void |
removeLink(org.apache.portals.graffito.model.core.Link link)
|
void |
removeVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent versionnedContent)
|
void |
updateContent(org.apache.portals.graffito.model.core.Content content)
|
void |
updateFolder(org.apache.portals.graffito.model.core.Folder folder)
|
void |
updateLink(org.apache.portals.graffito.model.core.Link link)
|
void |
updateVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent versionnedContent)
|
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
ContentModelServiceImpl
public ContentModelServiceImpl(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
createFolder
public org.apache.portals.graffito.model.core.Folder createFolder()
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createFolder
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.createFolder()
addFolder
public void addFolder(org.apache.portals.graffito.model.core.Folder folder)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
addFolder
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.addFolder(Folder)
removeFolder
public void removeFolder(org.apache.portals.graffito.model.core.Folder folder)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
removeFolder
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.removeFolder(Folder)
removeAll
public void removeAll(java.lang.String[] uris)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
removeAll
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#removeAll(java.lang.String[])
getFolder
public org.apache.portals.graffito.model.core.Folder getFolder(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getFolder
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.getFolder(String)
updateFolder
public void updateFolder(org.apache.portals.graffito.model.core.Folder folder)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
updateFolder
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.updateFolder(Folder)
createLink
public org.apache.portals.graffito.model.core.Link createLink()
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createLink
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.createLink()
addLink
public void addLink(org.apache.portals.graffito.model.core.Link link)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
addLink
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.addLink(Link)
getLink
public org.apache.portals.graffito.model.core.Link getLink(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getLink
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.getLink(String)
removeLink
public void removeLink(org.apache.portals.graffito.model.core.Link link)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
removeLink
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.removeLink(Link)
updateLink
public void updateLink(org.apache.portals.graffito.model.core.Link link)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
updateLink
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.updateLink(Link)
addContent
public void addContent(org.apache.portals.graffito.model.core.Content content)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
addContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.addContent(org.apache.portals.graffito.model.core.Content)
createContent
public org.apache.portals.graffito.model.core.Content createContent()
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.createContent()
createContent
public org.apache.portals.graffito.model.core.Content createContent(java.lang.String contentName)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.createContent(java.lang.String)
getContent
public org.apache.portals.graffito.model.core.Content getContent(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.getContent(java.lang.String)
removeContent
public void removeContent(org.apache.portals.graffito.model.core.Content content)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
removeContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.removeContent(org.apache.portals.graffito.model.core.Content)
updateContent
public void updateContent(org.apache.portals.graffito.model.core.Content content)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
updateContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.updateContent(org.apache.portals.graffito.model.core.Content)
addVersionnedContent
public void addVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent content)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
addVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.addVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent)
createVersionnedContent
public org.apache.portals.graffito.model.core.VersionnedContent createVersionnedContent()
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.createVersionnedContent()
createVersionnedContent
public org.apache.portals.graffito.model.core.VersionnedContent createVersionnedContent(java.lang.String contentName)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
createVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService.createVersionnedContent(java.lang.String)
getVersionnedContent
public org.apache.portals.graffito.model.core.VersionnedContent getVersionnedContent(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService#getDocument(String uri)
getVersionnedContent
public org.apache.portals.graffito.model.core.VersionnedContent getVersionnedContent(java.lang.String uri,
java.lang.String versionNumber)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService#getDocument(String uri, String versionNumber)
removeVersionnedContent
public void removeVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent versionnedContent)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
removeVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService#removeDocument(Document document)
updateVersionnedContent
public void updateVersionnedContent(org.apache.portals.graffito.model.core.VersionnedContent versionnedContent)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
updateVersionnedContent
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
ContentModelService#updateDocument(Document document)
getChildren
public java.util.Collection getChildren(org.apache.portals.graffito.model.core.Folder folder)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getChildren
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#getChildren(org.apache.portals.graffito.model.Folder)
getChildren
public java.util.Collection getChildren(java.lang.String parentUri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getChildren
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#getChildren(String)
getContents
public java.util.Collection getContents(java.lang.String parentUri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getContents
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#getDocuments(java.lang.String)
getFolders
public java.util.Collection getFolders(java.lang.String parentUri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getFolders
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#getFolders(java.lang.String)
getLinks
public java.util.Collection getLinks(java.lang.String parentUri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getLinks
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#getLinks(java.lang.String)
getCmsObject
public org.apache.portals.graffito.model.core.CmsObject getCmsObject(java.lang.String uri)
throws org.apache.portals.graffito.exception.ContentManagementException
- Specified by:
getCmsObject
in interface org.apache.portals.graffito.services.core.ContentModelService
- Throws:
org.apache.portals.graffito.exception.ContentManagementException
- See Also:
org.apache.portals.graffito.ContentModelService#getCmsObject(java.lang.String)
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.