|
|
|
|
|
||||||||||
| 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.Attachment
@Entity public class Attachment
represents an Attachment to a Content, where
Attachments are entities for downloads.
| Constructor Summary | |
|---|---|
Attachment()
Deprecated. |
|
Attachment(VirtualFile vf,
java.lang.String n)
creates a new Attachment with the given virtual file and
name. |
|
Attachment(VirtualFile vf,
java.lang.String n,
org.jdom.Element desc)
creates a new Attachment with the given virtual file, name
and description. |
|
| Method Summary | |
|---|---|
org.jdom.Element |
deserializeToJDOM()
this will deserialize the state of the JDOMable as a JDOM
Element. |
org.jdom.Element |
getDescription()
get the description of the Attachment. |
java.lang.String |
getDescriptionText()
get the description of the Attachment as string. |
VirtualFile |
getVirtualFile()
returns the VirtualFile of the Attachment. |
void |
setDescription(org.jdom.Element desc)
sets the description of the Attachment. |
void |
setVirtualFile(VirtualFile f)
sets the VirtualFile of the Attachment. |
net.sf.json.JSONObject |
toJSON()
returns a JSON-representation of the Attachment. |
| 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, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, 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 Attachment()
public Attachment(VirtualFile vf,
java.lang.String n)
Attachment with the given virtual file and
name.
vf - the filen - the name
public Attachment(VirtualFile vf,
java.lang.String n,
org.jdom.Element desc)
Attachment with the given virtual file, name
and description.
vf - the filen - the namedesc - the description (may be null)| Method Detail |
|---|
public final VirtualFile getVirtualFile()
VirtualFile of the Attachment.
VirtualFile of the Attachmentpublic final void setVirtualFile(VirtualFile f)
VirtualFile of the Attachment.
f - the file to be setpublic final org.jdom.Element getDescription()
Attachment.
Attachmentpublic final java.lang.String getDescriptionText()
Attachment as string.
Attachmentpublic final void setDescription(org.jdom.Element desc)
Attachment.
desc - the descriptionpublic final org.jdom.Element deserializeToJDOM()
JDOMableJDOMable as a JDOM
Element.
deserializeToJDOM in interface JDOMableAttachmentJDOMablepublic final net.sf.json.JSONObject toJSON()
Attachment.
Attachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||