|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentModelService
CMS Model Service Interface
This service maintains Folder, Content and Links. tied to the CMS that are stored in the repository and used to access the CMS.
| Method Summary | |
|---|---|
void |
addContent(Content content)
Adds a content to engine's persistent store. |
void |
addFolder(Folder folder)
Adds a new folder to engine's persistent store. |
void |
addLink(Link link)
Adds a Link to engine's persistent store. |
void |
addVersionnedContent(VersionnedContent versionnedContent)
Adds a versionned content to engine's persistent store. |
Content |
createContent()
Factory to create a new empty generic content object. |
Content |
createContent(java.lang.String contentName)
Factory to create a new empty content object. |
Folder |
createFolder()
Factory to create a new Folder object. |
Link |
createLink()
Factory to create a new Link object. |
VersionnedContent |
createVersionnedContent()
Factory to create a new empty generic versionned content object. |
VersionnedContent |
createVersionnedContent(java.lang.String contentName)
Factory to create a new empty versionned content object. |
java.util.Collection |
getChildren(Folder folder)
Get all folder children. |
java.util.Collection |
getChildren(java.lang.String parentUri)
Get all folder children (documents & folders). |
CmsObject |
getCmsObject(java.lang.String uri)
Get a CmsObject from the engine's persistent store. |
Content |
getContent(java.lang.String uri)
Get a content from the engine's persistent store by uri. |
java.util.Collection |
getContents(java.lang.String parentUri)
Get all contents found in a parent uri. |
Folder |
getFolder(java.lang.String uri)
Get a folder from the engine's persistent store. |
java.util.Collection |
getFolders(java.lang.String parentUri)
Get all folders found in a parent uri. |
Link |
getLink(java.lang.String uri)
Get a Link from the engine's persistent store. |
java.util.Collection |
getLinks(java.lang.String parentUri)
Get all links found in a parent uri. |
VersionnedContent |
getVersionnedContent(java.lang.String uri)
Get a versionned content from the engine's persistent store by uri. |
VersionnedContent |
getVersionnedContent(java.lang.String uri,
java.lang.String versionNum)
Get a versionned content from the engine's persistent store by uri. |
void |
removeAll(java.lang.String[] uris)
Remove many cms objects |
void |
removeContent(Content content)
Remove a content from the engine's persistent store. |
void |
removeFolder(Folder folder)
Remove a folder from the engine's persistent store. |
void |
removeLink(Link link)
Remove a Link from the engine's persistent store. |
void |
removeVersionnedContent(VersionnedContent versionnedContent)
Remove a versionned content from the engine's persistent store. |
void |
updateContent(Content content)
Update a content in the engine's persistent store. |
void |
updateFolder(Folder folder)
Update a folder in the engine's persistent store. |
void |
updateLink(Link link)
Update a link in the engine's persistent store. |
void |
updateVersionnedContent(VersionnedContent versionnedContent)
Update a versionned content in the engine's persistent store. |
| Method Detail |
|---|
Folder createFolder()
throws ContentManagementException
ContentManagementException
void addFolder(Folder folder)
throws ContentManagementException
folder - the folder to add.
ContentManagementException
void removeFolder(Folder folder)
throws ContentManagementException
folder - the folder to be removed.
ContentManagementException
void removeAll(java.lang.String[] uris)
throws ContentManagementException
uris - an Array of uri's matching to the Cms Object to remove
ContentManagementException
Folder getFolder(java.lang.String uri)
throws ContentManagementException
uri - the uri assigned to the folder to retrieve.
ContentManagementException
void updateFolder(Folder folder)
throws ContentManagementException
folder - the folder to be updated.
ContentManagementException
Link createLink()
throws ContentManagementException
ContentManagementException
void addLink(Link link)
throws ContentManagementException
link - the new Link to add.
ContentManagementException
Link getLink(java.lang.String uri)
throws ContentManagementException
uri - the uri assigned to the link to retrieve.
ContentManagementException
void removeLink(Link link)
throws ContentManagementException
link - the Link to remove.
ContentManagementException
void updateLink(Link link)
throws ContentManagementException
link - the link to be updated.
ContentManagementException
void addContent(Content content)
throws ContentManagementException
content - the new content
ContentManagementException
Content createContent()
throws ContentManagementException
ContentManagementException
Content createContent(java.lang.String contentName)
throws ContentManagementException
contentName - The content class name (News, Article, ...). This name is used by ht persistence service in order to instantiate the correct class
ContentManagementException
Content getContent(java.lang.String uri)
throws ContentManagementException
uri - uri assigned to the content.
ContentManagementException
void removeContent(Content content)
throws ContentManagementException
content - the content to remove.
ContentManagementException
void updateContent(Content content)
throws ContentManagementException
content - the content to update.
ContentManagementException
void addVersionnedContent(VersionnedContent versionnedContent)
throws ContentManagementException
versionnedContent - the new content
ContentManagementException
VersionnedContent createVersionnedContent()
throws ContentManagementException
ContentManagementException
VersionnedContent createVersionnedContent(java.lang.String contentName)
throws ContentManagementException
contentName - The content class name (News, Article, ...). This name is used by the persistence service in order to instantiate the correct class
ContentManagementException
VersionnedContent getVersionnedContent(java.lang.String uri)
throws ContentManagementException
uri - uri assigned to the content.
ContentManagementException
VersionnedContent getVersionnedContent(java.lang.String uri,
java.lang.String versionNum)
throws ContentManagementException
uri - uri assigned to the document.versionNum - the desired version number assigned to the content to retrieve
ContentManagementException
void removeVersionnedContent(VersionnedContent versionnedContent)
throws ContentManagementException
versionnedContent - the content to remove.
ContentManagementException
void updateVersionnedContent(VersionnedContent versionnedContent)
throws ContentManagementException
versionnedContent - the content to update.
ContentManagementException
java.util.Collection getChildren(Folder folder)
throws ContentManagementException
folder - the parent folder.
ContentManagementException
java.util.Collection getChildren(java.lang.String parentUri)
throws ContentManagementException
parentUri - the uri from which the children have to be retrieved. It can be an server scope or a folder uri.
ContentManagementException
java.util.Collection getContents(java.lang.String parentUri)
throws ContentManagementException
parentUri - The uri from which the documents have be retrieved. It can be an server scope or a folder uri.
Content
ContentManagementException
java.util.Collection getLinks(java.lang.String parentUri)
throws ContentManagementException
parentUri - The uri from which the links have be retrieved. It can be an server scope or a folder uri.
Link
ContentManagementException
java.util.Collection getFolders(java.lang.String parentUri)
throws ContentManagementException
parentUri - The uri from which the folders have be retrieved. It can be an server scope or a folder uri.
Folder
ContentManagementException
CmsObject getCmsObject(java.lang.String uri)
throws ContentManagementException
uri - the uri assigned to the cms object to retrieve.
ContentManagementException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||