com.xmlserv.app.contentstructure
Class ContentGroupSave

java.lang.Object
  |
  +--com.xmlserv.main.XMLServBackendImpl
        |
        +--com.xmlserv.app.AppBase
              |
              +--com.xmlserv.app.contentstructure.ContentGroupSave
All Implemented Interfaces:
XMLServBackend

public class ContentGroupSave
extends AppBase

Save a ContentGroup. This involves the following steps:
If INSERT:

    Check for permission to INSERT on parent contentgroup (or the 'rolegroup--' resource in case of a new ContentGroup root element) Create the ContentGroup Create the named resource 'rolegroupid--contentgroupid' (with the correct numerical IDs) Create an ACL for the logged in user granting all rights on this resource
If UPDATE:
    Check for UPDATE permission on the resource If the parent is changed, check for DELETE permission on the current parent resource and INSERT permission on the new parent resource Update the ContentGroup

Version:
$Id: ContentGroupSave.java,v 1.16 2002/11/14 23:28:15 muecke Exp $
Author:
Wolfram Saringer

Constructor Summary
ContentGroupSave()
          Create empty object. init() must be called before this object can be used.
 
Method Summary
 void init()
          Initialize object.
 org.jdom.Document process(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager)
          .
 
Methods inherited from class com.xmlserv.app.AppBase
checkoutConn, destroy, errorPage, errorPage, getUrl, newElement, process, redirect, redirect, returnConn
 
Methods inherited from class com.xmlserv.main.XMLServBackendImpl
addParam, getParam, getReqCount, getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentGroupSave

public ContentGroupSave()
Create empty object. init() must be called before this object can be used.
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialize object.
Overrides:
init in class AppBase
Following copied from class: com.xmlserv.app.AppBase
Throws:
javax.servlet.ServletException - On any error.
See Also:
PGConnectionPool

process

public org.jdom.Document process(javax.servlet.ServletContext context,
                                 javax.servlet.http.HttpServletRequest req,
                                 SecurityManager securitymanager)
                          throws XMLServException,
                                 javax.servlet.ServletException,
                                 java.io.IOException
.
Overrides:
process in class AppBase
See Also:
XMLServBackendImpl.process(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, com.xmlserv.security.SecurityManager)