|
|
|
|
|
||||||||||
| 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.site.content.FileContent
@Entity public class FileContent
A FileContent is a Content that represents a
VirtualFile.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.site.content.AbstractBasicContent |
|---|
DEFAULT_SUFFIX |
| Constructor Summary | |
|---|---|
protected |
FileContent()
Default constructor. |
|
FileContent(java.util.Locale locale, Bundle bundle)
Creates a FileContent with the given Locale and
the given Bundle. |
|
FileContent(java.lang.String name,
java.util.Locale locale, Bundle bundle)
Creates a FileContent with the given Locale and
the given Bundle. |
| Method Summary | |
|---|---|
FileContent |
createCopy(java.util.Locale l, User u)
Creates a copy of the FileContent with the given
Locale. |
org.jdom.Element |
deserializeToJDOM()
Deserialises the state of the FileContent as a JDOM
Element. |
org.jdom.Element |
deserializeToJDOM(ServiceRequest request)
Deserialises the state of the FileContent as a JDOM
Element building access URLs based on the
current request. |
VirtualFile |
getFile()
Returns the VirtualFile of the FileContent. |
void |
initLazyFields()
initialises the content for display. |
boolean |
isGroup()
Determines whether the Content is a group. |
boolean |
isIndexFile()
Returns true if the file is indexed for search,
false otherwise. |
void |
onVirtualFileSystemChange(VirtualFile f)
Is called by the VirtualFileSystem, if any associated
VirtualFiles have been moved in the file system. |
void |
setFile(VirtualFile f)
Sets the VirtualFile for the FileContent. |
void |
setIndexFile(boolean index)
Sets the indexFile. |
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 |
|---|
getFullTextValue, getKeywords, getLinkCorrectables, 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 |
|---|
protected FileContent()
public FileContent(java.util.Locale locale, Bundle bundle)
FileContent with the given Locale and
the given Bundle.
locale - the Locale to be used for the copybundle - the Bundle
public FileContent(java.lang.String name,
java.util.Locale locale, Bundle bundle)
FileContent with the given Locale and
the given Bundle.
name - the namelocale - the Locale to be used for the copybundle - the Bundle| Method Detail |
|---|
public final void setFile(VirtualFile f)
VirtualFile for the FileContent.
f - the VirtualFile to setpublic final VirtualFile getFile()
VirtualFile of the FileContent.
VirtualFilepublic final void setIndexFile(boolean index)
index - the indexFile to setpublic final boolean isIndexFile()
true if the file is indexed for search,
false otherwise.
public final boolean isGroup()
ContentContent is a group.
A group is a Content generating its contents from its children in
the Sitemap.
isGroup in class Contentfalse alwaysContent.isGroup()public final void onVirtualFileSystemChange(VirtualFile f)
VirtualFileSystem, if any associated
VirtualFiles have been moved in the file system.
onVirtualFileSystemChange in class Contentf - the files that have been moved.Content.onVirtualFileSystemChange(VirtualFile)public final void updateAssociatedVirtualFiles()
VirtualFiles.
updateAssociatedVirtualFiles in class Contentpublic FileContent createCopy(java.util.Locale l, User u)
FileContent with the given
Locale.
createCopy in class AbstractBasicContentl - the Locale to be used for the copyu - the User to be used as the creator/last modifier
of the copied Content
FileContentpublic void initLazyFields()
Content
initLazyFields in class ContentContent.initLazyFields()public org.jdom.Element deserializeToJDOM()
FileContent as a JDOM
Element.
deserializeToJDOM in interface JDOMabledeserializeToJDOM in class AbstractBasicContentFileContent as a JDOM
Elementpublic org.jdom.Element deserializeToJDOM(ServiceRequest request)
FileContent as a JDOM
Element building access URLs based on the
current request.
deserializeToJDOM in interface ExtendedJDOMabledeserializeToJDOM in class AbstractBasicContentrequest - the current ServiceRequest
FileContent as a JDOM
Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||