|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.util.entity.AbstractNamableEntity
org.torweg.pulse.site.content.Content
org.torweg.pulse.site.content.AbstractBasicContent
org.torweg.pulse.component.cms.model.CMSContent
@Entity public class CMSContent
the CMSContent is the base content for the pulse content
management bundle.
A CMSContent is an entity representing an article in content
management Bundle. An article is composed of a set of attributes
(e.g. the name), a set of Pages with the contents and a set of
Attachments with related files.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.site.content.AbstractBasicContent |
|---|
DEFAULT_SUFFIX |
| Constructor Summary | |
|---|---|
CMSContent()
Deprecated. |
|
CMSContent(java.util.Locale locale, Bundle bundle)
creates a new CMSContent with the given Locale and
Bundle. |
|
| Method Summary | |
|---|---|
void |
add(int i, Page page)
adds the given Page to the CMSContent's pages at the
given index. |
void |
addPage(Page page)
adds the given Page to the CMSContent's pages. |
CMSContent |
createCopy(java.util.Locale l, User user)
creates and returns a non-persistent (therefore id = null) copy of the current CMSContent with a given Locale. |
org.jdom.Element |
deserializeToJDOM()
a CMSContent deserialised to XML. |
org.jdom.Element |
deserializeToJDOM(ServiceRequest r)
a CMSContent deserialised to XML. |
java.lang.StringBuilder |
getFullTextValue()
returns the full text value of AbstractBasicContent plus the text
value of all Pages. |
java.util.Set<ILinkCorrectableElement> |
getLinkCorrectables()
a set with the Elements to be corrected. |
int |
getNumberOfPages()
returns the number of Pages belonging to the CMSContent. |
Page |
getPage(int index)
get the Page with the given index. |
Page |
getPageById(long l)
returns a Page of the current CMSContent specified by a
given id. |
java.util.List<Page> |
getPages()
|
void |
initLazyFields()
initialises the lazy fields for display. |
boolean |
isGroup()
returns false. |
void |
onVirtualFileSystemChange(VirtualFile file)
updates the CMSContents HTML, if associated VirtualFiles
have been moved in the VirtualFileSystem. |
void |
removePage(int index)
removes the Page with the given index from the CMSContent
's pages. |
void |
removePage(Page page)
removes the given Page from the CMSContent's pages. |
Page |
removePageById(long l)
removes the Page with the id from the CMSContent's pages. |
void |
setPage(int index, Page page)
sets the Page with the given index to the given Page. |
void |
setPages(java.util.List<Page> orderedPages)
sets the Pages for the CMSContent. |
void |
updateAssociatedVirtualFiles()
is called by the editors upon save actions to update the list of associated VirtualFiles. |
| Methods inherited from class org.torweg.pulse.site.content.AbstractBasicContent |
|---|
getKeywords, getMetaDescription, getMetaKeywords, getSuffix, getSummary, getSummaryElement, getTitle, setKeywords, setMetaDescription, setMetaKeywords, setSuffix, setSummary, setTitle |
| Methods inherited from class org.torweg.pulse.site.content.Content |
|---|
compareTo, equals, getAssociatedViews, getAssociatedVirtualFiles, getAttachments, getBundle, getCreated, getCreatedMillis, getCreator, getLastModified, getLastModifier, getLocale, getLocalizationMap, getLocalizationMapJAXB, getReferenceDuration, getViewTypes, hashCode, hasReferenceDuration, initLazyImageGroups, initLazyVariants, processHTML, removeReferenceDuration, setAssociatedVirtualFiles, setAttachments, setBundle, setCreator, setLastModifier, setLocale, setLocalizationMap, setReferenceDuration, toString, updateHTML, updateLocalizationMap |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity |
|---|
setName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity |
|---|
getName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, getFullQualifiedClassNameJAXB, getId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.util.INameable |
|---|
setName |
| Methods inherited from interface org.torweg.pulse.util.INamed |
|---|
getName |
| Constructor Detail |
|---|
@Deprecated public CMSContent()
public CMSContent(java.util.Locale locale, Bundle bundle)
CMSContent with the given Locale and
Bundle.
locale - the Localebundle - the Bundle| Method Detail |
|---|
public final java.util.List<Page> getPages()
public final Page getPage(int index)
Page with the given index.
index - the "number" of the Page, starting from 0
Page with the given indexpublic final Page getPageById(long l)
Page of the current CMSContent specified by a
given id.
l - the id
Page if the CMSContent contains a
Page by the given id, null otherwisepublic final void setPage(int index, Page page)
Page with the given index to the given Page.
index - the "number" of the Page, starting from 0page - the Page to be setpublic final void setPages(java.util.List<Page> orderedPages)
Pages for the CMSContent.
orderedPages - the Pagespublic final void addPage(Page page)
Page to the CMSContent's pages.
page - the Page to be addedpublic final void add(int i, Page page)
Page to the CMSContent's pages at the
given index.
i - the indexpage - the Page to be addedpublic final void removePage(Page page)
Page from the CMSContent's pages.
page - the Page to be removedpublic final void removePage(int index)
Page with the given index from the CMSContent
's pages.
index - the "number" of the Page to be removed, starting from
0public final Page removePageById(long l)
Page with the id from the CMSContent's pages.
l - the id of the Page to be removed
Page or null, if no such Page could
be removedpublic final int getNumberOfPages()
Pages belonging to the CMSContent.
Pages belonging to the CMSContentpublic org.jdom.Element deserializeToJDOM()
CMSContent deserialised to XML.
deserializeToJDOM in interface JDOMabledeserializeToJDOM in class AbstractBasicContent<Content/>JDOMable.deserializeToJDOM()public org.jdom.Element deserializeToJDOM(ServiceRequest r)
CMSContent deserialised to XML.
deserializeToJDOM in interface ExtendedJDOMabledeserializeToJDOM in class AbstractBasicContentr - the request
<Content/>ExtendedJDOMable.deserializeToJDOM(org.torweg.pulse.service.request.ServiceRequest)public java.lang.StringBuilder getFullTextValue()
AbstractBasicContent plus the text
value of all Pages.
getFullTextValue in class AbstractBasicContentAbstractBasicContent plus the text
value of all Pages.public void onVirtualFileSystemChange(VirtualFile file)
CMSContents HTML, if associated VirtualFiles
have been moved in the VirtualFileSystem.
This method is executed by the VirtualFileSystem
onVirtualFileSystemChange in class Contentfile - the moved filespublic void updateAssociatedVirtualFiles()
VirtualFiles.
updateAssociatedVirtualFiles in class Contentpublic final boolean isGroup()
false.
isGroup in class Contentfalse.Content.isGroup()public java.util.Set<ILinkCorrectableElement> getLinkCorrectables()
ILinkCorretableElements to be corrected.
getLinkCorrectables in interface ILinkCorretablegetLinkCorrectables in class AbstractBasicContentILinkCorrectableElementsAbstractBasicContent.getLinkCorrectables()public CMSContent createCopy(java.util.Locale l, User user)
CMSContent with a given Locale.
createCopy in class AbstractBasicContentl - the Locale to use for the the copyuser - the user to be used as creator and last modifier
CMSContentpublic void initLazyFields()
initLazyFields in class ContentContent.initLazyFields()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||