|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.app.shared.Image
Image abstraction. This class is used to manage images and related meta data. It contains basic information about an image (represented in the DB table images) such as the base filename (without path and extension), the preview image filename and mimetype. Additional information is dependend on an embedded Format object. When this is set, the relative path and filename as well as the mimetype can be retrieved.
Constructor Summary | |
Image()
Create an empty Image. |
|
Image(java.sql.Connection con,
int id)
Load image with given id from the DB. |
|
Image(java.sql.Connection con,
java.lang.String filename,
int formatId)
Create a new image object. |
Method Summary | |
java.lang.String |
getBasename()
|
java.lang.String |
getBezeichnung()
|
int |
getContentgroup()
|
java.lang.String |
getDisplayname()
|
java.lang.String |
getFilename()
Return the filename. |
java.lang.String |
getFilePath()
Get the complete filename including path. |
Format.Detail |
getFormat()
|
int |
getId()
|
static org.jdom.Element |
getImageList(java.sql.Connection con,
int rolegroup)
Get a list of images for the given rolegroup. |
java.lang.String |
getKeywords()
|
java.lang.String |
getMimetype()
|
int |
getOrdering()
|
int |
getRolegroup()
|
java.lang.String |
getRolegroupname()
|
static org.jdom.Element |
listImages(java.sql.Connection con,
int contentgroup)
|
static void |
main(java.lang.String[] args)
|
void |
save(java.sql.Connection con,
javax.servlet.http.HttpServletRequest req,
SecurityManager securitymanager)
Save the image to the DB. |
void |
setArtikelnr(java.lang.String artikelnr)
|
void |
setBezeichnung(java.lang.String bezeichnung)
|
void |
setContentgroup(int contentgroup)
|
void |
setDisplayname(java.lang.String displayname)
|
void |
setFilename(java.lang.String filename)
|
void |
setFormat(Format.Detail format)
|
void |
setKeywords(java.lang.String keywords)
|
void |
setOrdering(int ordering)
|
void |
setRolegroup(int rolegroup)
|
void |
setRolegroupname(java.lang.String rolegroupname)
|
org.jdom.Element |
toElement(java.sql.Connection con)
Return this Image as a JDOM Element with name 'image' and attributes id, filename and rolegroup. |
org.jdom.Element |
toElement(java.sql.Connection con,
boolean htmlText)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Image(java.sql.Connection con, int id) throws XMLServException
public Image()
public Image(java.sql.Connection con, java.lang.String filename, int formatId) throws XMLServException
Method Detail |
public org.jdom.Element toElement(java.sql.Connection con) throws XMLServException
public org.jdom.Element toElement(java.sql.Connection con, boolean htmlText) throws XMLServException
public static org.jdom.Element getImageList(java.sql.Connection con, int rolegroup) throws XMLServException
con
- A Connection object.rolegroup
- The rolegroup. Set to 0 to get all images.public static org.jdom.Element listImages(java.sql.Connection con, int contentgroup) throws XMLServException
public void save(java.sql.Connection con, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager) throws XMLServException, java.sql.SQLException
public java.lang.String getFilePath()
public int getId()
public int getOrdering()
public void setOrdering(int ordering)
public void setArtikelnr(java.lang.String artikelnr)
public java.lang.String getBasename()
public java.lang.String getFilename()
public java.lang.String getMimetype()
public void setFilename(java.lang.String filename)
public java.lang.String getDisplayname()
public void setDisplayname(java.lang.String displayname)
public int getRolegroup()
public void setRolegroup(int rolegroup)
public java.lang.String getRolegroupname()
public void setRolegroupname(java.lang.String rolegroupname)
public int getContentgroup()
public void setContentgroup(int contentgroup)
public java.lang.String getBezeichnung()
public void setBezeichnung(java.lang.String bezeichnung)
public Format.Detail getFormat()
public void setFormat(Format.Detail format)
public java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |