pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content
Class ContentGroup

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.util.entity.AbstractNamableEntity
              extended by org.torweg.pulse.site.content.Content
                  extended by org.torweg.pulse.site.content.AbstractBasicContent
                      extended by org.torweg.pulse.site.content.AbstractSummaryDescriptionContent
                          extended by org.torweg.pulse.site.content.AbstractContentGroup
                              extended by org.torweg.pulse.site.content.ContentGroup
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Content>, ExtendedJDOMable, JDOMable, ILinkCorretable, INameable, INamed

@Entity
public final class ContentGroup
extends AbstractContentGroup

Is used for displaying content-overview-pages (content-group).

Version:
$Revision: 1398 $
Author:
Christian Schatt, Daniel Dietz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.torweg.pulse.site.content.AbstractBasicContent
DEFAULT_SUFFIX
 
Constructor Summary
ContentGroup()
          Deprecated. 
ContentGroup(java.util.Locale locale, Bundle bundle)
          The Constructor that sets the Locale and the Bundle of the ContentGroup.
 
Method Summary
 ContentGroup createCopy(java.util.Locale l, User u)
          creates and returns a non-persistent (therefore id = null) copy of the current ContentGroup with a given Locale.
 void onVirtualFileSystemChange(VirtualFile file)
          method which gets called by the VirtualFileSystem, if any of the associated VirtualFiles has been moved in the file system.
 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.AbstractContentGroup
isGroup
 
Methods inherited from class org.torweg.pulse.site.content.AbstractSummaryDescriptionContent
deserializeToJDOM, deserializeToJDOM, getDescription, getDescriptionElement, getFullTextValue, getLinkCorrectables, setDescription
 
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, initLazyFields, 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.bundle.ExtendedJDOMable
deserializeToJDOM
 
Methods inherited from interface org.torweg.pulse.bundle.JDOMable
deserializeToJDOM
 
Methods inherited from interface org.torweg.pulse.util.INameable
setName
 
Methods inherited from interface org.torweg.pulse.util.INamed
getName
 

Constructor Detail

ContentGroup

@Deprecated
public ContentGroup()
Deprecated. 

used for HibernateTM.


ContentGroup

public ContentGroup(java.util.Locale locale, Bundle bundle)
The Constructor that sets the Locale and the Bundle of the ContentGroup.

Parameters:
bundle - the Bundle to be set
locale - the Locale to be set
Method Detail

onVirtualFileSystemChange

public void onVirtualFileSystemChange(VirtualFile file)
method which gets called by the VirtualFileSystem, if any of the associated VirtualFiles has been moved in the file system.

Specified by:
onVirtualFileSystemChange in class Content
Parameters:
file - the affected file

updateAssociatedVirtualFiles

public void updateAssociatedVirtualFiles()
is called by the editors upon save actions to update the list of associated VirtualFiles.

Specified by:
updateAssociatedVirtualFiles in class Content

createCopy

public ContentGroup createCopy(java.util.Locale l, User u)
creates and returns a non-persistent (therefore id = null) copy of the current ContentGroup with a given Locale.

Specified by:
createCopy in class AbstractBasicContent
Parameters:
l - the Locale to use for the the copy
u - the User to be used as the creator/last modifier of the copied Content
Returns:
a copy of this ContentGroup