com.xmlserv.app.shared
Class DownloadImage

java.lang.Object
  |
  +--com.xmlserv.app.shared.Image
        |
        +--com.xmlserv.app.shared.DownloadImage

public class DownloadImage
extends Image

This subclass simply adds support for downloadid, the identifier used to generate download links.
It also sets the formats as read from the corresponding basket_content_formats table entry.


Constructor Summary
DownloadImage(java.sql.Connection con, int id)
          Load image with given id from the DB.
DownloadImage(java.sql.Connection con, int id, java.lang.String downloadid, java.lang.String basepath)
           
 
Method Summary
 java.lang.String getDownloadid()
           
 void setDownloadid(java.lang.String downloadid)
           
 org.jdom.Element toElement(java.sql.Connection con)
          Return this Image as a JDOM Element with name 'image' and attributes id, filename and rolegroup.
 
Methods inherited from class com.xmlserv.app.shared.Image
getBasename, getBezeichnung, getContentgroup, getDisplayname, getFilename, getFilePath, getFormat, getId, getImageList, getKeywords, getMimetype, getOrdering, getRolegroup, getRolegroupname, listImages, main, save, setArtikelnr, setBezeichnung, setContentgroup, setDisplayname, setFilename, setFormat, setKeywords, setOrdering, setRolegroup, setRolegroupname, toElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadImage

public DownloadImage(java.sql.Connection con,
                     int id)
              throws XMLServException
Load image with given id from the DB.

DownloadImage

public DownloadImage(java.sql.Connection con,
                     int id,
                     java.lang.String downloadid,
                     java.lang.String basepath)
              throws XMLServException
Method Detail

toElement

public org.jdom.Element toElement(java.sql.Connection con)
                           throws XMLServException
Return this Image as a JDOM Element with name 'image' and attributes id, filename and rolegroup.
Overrides:
toElement in class Image

getDownloadid

public java.lang.String getDownloadid()

setDownloadid

public void setDownloadid(java.lang.String downloadid)