com.xmlserv.app.contentstructure
Class ContentGroup

java.lang.Object
  |
  +--com.xmlserv.app.contentstructure.ContentGroup

public class ContentGroup
extends java.lang.Object

ContentGroup abstraction.

Author:
Wolfram Saringer

Constructor Summary
ContentGroup(java.sql.Connection con, int id)
          Load the given ContentGroup.
ContentGroup(int rolegroup)
           
 
Method Summary
static org.jdom.Element getContentGroups(java.sql.Connection con, SecurityManager securitymanager, javax.servlet.http.HttpServletRequest req, java.lang.String access, int rolegroup, boolean addACL)
          Master method for recursive method getContentGroupsRec.
 java.lang.String getDescription()
           
 int getId()
           
 java.lang.String getName()
           
 int getOrdering()
           
 int getParent()
           
static java.lang.String getResourceName(java.sql.Connection con, int id)
           
 int getRolegroup()
           
static java.util.Vector listContentGroups(java.sql.Connection con, SecurityManager securitymanager, javax.servlet.http.HttpServletRequest req, int start, java.util.Vector output, java.lang.String access, int rolegroup)
          Return a list of contentgroups contained in the subtree under the given start contentgroup.
 void save(java.sql.Connection con)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setOrdering(int ordering)
           
 void setParent(int parent)
           
 void setRolegroup(int rolegroup)
           
 org.jdom.Element toElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentGroup

public ContentGroup(int rolegroup)

ContentGroup

public ContentGroup(java.sql.Connection con,
                    int id)
             throws XMLServException
Load the given ContentGroup.
Method Detail

save

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

toElement

public org.jdom.Element toElement()
                           throws XMLServException

getResourceName

public static java.lang.String getResourceName(java.sql.Connection con,
                                               int id)
                                        throws XMLServException

listContentGroups

public static java.util.Vector listContentGroups(java.sql.Connection con,
                                                 SecurityManager securitymanager,
                                                 javax.servlet.http.HttpServletRequest req,
                                                 int start,
                                                 java.util.Vector output,
                                                 java.lang.String access,
                                                 int rolegroup)
                                          throws java.sql.SQLException,
                                                 XMLServException
Return a list of contentgroups contained in the subtree under the given start contentgroup.
Parameters:
con - Connection to use.
securitymanager -  
req - The Servlet request.
start - The contentgroupid to start at. not included in the output list.
output - The Output vector. If null, a new vector is returned.
access - The access method (SecurityManager.*). Pass a null value to get the list of ContentGroups available in this RoleGroup.
rolegroup - The rolegroup to restrict the search to. Set to 0 to get all ContentGroup objects.

getContentGroups

public static org.jdom.Element getContentGroups(java.sql.Connection con,
                                                SecurityManager securitymanager,
                                                javax.servlet.http.HttpServletRequest req,
                                                java.lang.String access,
                                                int rolegroup,
                                                boolean addACL)
                                         throws java.sql.SQLException,
                                                XMLServException
Master method for recursive method getContentGroupsRec.
Parameters:
con - Connection to use.
securitymanager -  
req - The Servlet request.
access - The access method (SecurityManager.*). Pass a null value to get the list of ContentGroups available in this RoleGroup.
rolegroup - The rolegroup to restrict the search to. Set to 0 to get all ContentGroup objects.

getId

public int getId()

getOrdering

public int getOrdering()

setOrdering

public void setOrdering(int ordering)

getParent

public int getParent()

setParent

public void setParent(int parent)

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)

getRolegroup

public int getRolegroup()

setRolegroup

public void setRolegroup(int rolegroup)