com.arsdigita.cms.dispatcher
Class ContentSectionDispatcher

java.lang.Object
  extended bycom.arsdigita.cms.dispatcher.ContentSectionDispatcher
All Implemented Interfaces:
com.arsdigita.dispatcher.Dispatcher

public class ContentSectionDispatcher
extends Object
implements com.arsdigita.dispatcher.Dispatcher

Unsupported Refactored content section dispatcher (under development).

Version:
$Revision: #8 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Karl Goldstein (karlg@arsdigita.com)

Field Summary
static String versionId
           
 
Constructor Summary
ContentSectionDispatcher()
           
 
Method Summary
static boolean checkAdminAccess(javax.servlet.http.HttpServletRequest request, ContentSection section)
          Checks that the current user has permission to access the admin pages.
 void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext context)
           
static ContentItem getContentItem(javax.servlet.http.HttpServletRequest request)
          Fetches the content item from the request attributes.
static ContentSection getContentSection(javax.servlet.http.HttpServletRequest request)
          Fetches the content section from the request attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ContentSectionDispatcher

public ContentSectionDispatcher()
Method Detail

dispatch

public void dispatch(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     com.arsdigita.dispatcher.RequestContext context)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
dispatch in interface com.arsdigita.dispatcher.Dispatcher
Throws:
IOException
javax.servlet.ServletException

getContentSection

public static ContentSection getContentSection(javax.servlet.http.HttpServletRequest request)
Fetches the content section from the request attributes.

Parameters:
request - The HTTP request
Returns:
The content section

getContentItem

public static ContentItem getContentItem(javax.servlet.http.HttpServletRequest request)
Fetches the content item from the request attributes.

Parameters:
request - The HTTP request
Returns:
The content item

checkAdminAccess

public static boolean checkAdminAccess(javax.servlet.http.HttpServletRequest request,
                                       ContentSection section)
Checks that the current user has permission to access the admin pages.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC