com.xmlserv.app.news
Class Edition

java.lang.Object
  |
  +--com.xmlserv.app.news.Edition

public class Edition
extends java.lang.Object

An edition is a collection of News articles. It has a date associated with it as well as a number of articles.


Constructor Summary
Edition(java.sql.Connection con, int id)
          Open an existing Edition.
Edition(int rolegroup)
          Create a new Edition.
 
Method Summary
 void add(int article)
           
 void clear()
           
 void del(int article)
           
 void delete(java.sql.Connection con)
          Delete this edition.
 java.lang.String getDatum()
           
 java.lang.String getDescription()
           
 int getId()
           
 java.lang.String getName()
           
 int getRolegroup()
           
static org.jdom.Element list(java.sql.Connection con, SecurityManager securityManager, SecurityManager.User user, boolean withContent)
           
 void save(java.sql.Connection con)
           
 void setDatum(java.lang.String datum)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 org.jdom.Element toElement(java.sql.Connection con, SecurityManager securityManager, SecurityManager.User user, boolean withContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edition

public Edition(int rolegroup)
        throws XMLServException
Create a new Edition.

Edition

public Edition(java.sql.Connection con,
               int id)
        throws XMLServException
Open an existing Edition.
Method Detail

save

public void save(java.sql.Connection con)
          throws XMLServException

delete

public void delete(java.sql.Connection con)
            throws XMLServException
Delete this edition.

toElement

public org.jdom.Element toElement(java.sql.Connection con,
                                  SecurityManager securityManager,
                                  SecurityManager.User user,
                                  boolean withContent)
                           throws XMLServException

list

public static org.jdom.Element list(java.sql.Connection con,
                                    SecurityManager securityManager,
                                    SecurityManager.User user,
                                    boolean withContent)
                             throws XMLServException

clear

public void clear()

add

public void add(int article)

del

public void del(int article)

getId

public int getId()

getRolegroup

public int getRolegroup()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getDatum

public java.lang.String getDatum()

setDatum

public void setDatum(java.lang.String datum)